10-30-2018, 04:30 PM
@TrK, @Dynamo and @"Hidden Refuge" Thanks helping me regarding issue with PiratesHosting's post counter script.
I have found the error when i tried fresh script downloading from HMR's github.
Error is:
Line #79 code on img.php is:
What's the problem in line #79 ? it fresh's script code i didn't even touch anything except changing mybb forum url changing.
I have found the error when i tried fresh script downloading from HMR's github.
Error is:
Quote:[30-Oct-2018 12:07:49 UTC] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/pirates/public_html/forum/postcounter/MyBBPostCounter-master/img.php on line 79
Line #79 code on img.php is:
Code: (Select All)
if (substr($post->plaintext, 0, 3) === 'Yes' or substr($post->plaintext, 0, 3) === 'Tod' or substr($post->plaintext, 0, 3) === 'Les' or substr($post->plaintext, 3, 3) === 'min' or substr($post->plaintext, 2, 3) === 'min' or substr($post->plaintext, 2, 3) === 'hou' or substr($post->plaintext, 3, 3) === 'hou' or substr($post->plaintext, 0, 3) === date("m-") && substr($post->plaintext, 5, 5) === date("-Y")) {
$numberofpoststhismonth++;
}
What's the problem in line #79 ? it fresh's script code i didn't even touch anything except changing mybb forum url changing.