Warning Messages on homepage

Avatar
  • Answered
I noticed a few days ago that my website has been showing some weird error messages in the background. I am not sure what to do to get rid of them. All of the content on my pages seem to be running fine. I am using Indexhibit also, so I am unsure if it is a problem there or with something in my cPanel. This is a portion of what I am seeing:


Warning: set_magic_quotes_runtime() [function.set-magic-quotes-runtime]: 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 'America/Los_Angeles' for 'PDT/-7.0/DST' instead in /home/marisa8/public_html/ndxz-studio/defaults.php on line 16

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/marisa8/public_html/ndxz-studio/defaults.php on line 16

Has anyone else had this problem?
Avatar
Arn
Hello Ritzarolli, Thanks for the question! The main issue circles around error reporting. The main error had to do with the timezone setting not set. I set it to Central time (based on your account) in the PHP.INI file. Here's an article that explains this issue: Setting the Timezone in PHP.INI. I added date.timezone="America/Louisville" in the PHP.INI file to set the timezone. After that, the remaining errors were as follows: Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/marisa8/public_html/ndxz-studio/defaults.php on line 16 Deprecated: Assigning the return value of new by reference is deprecated in /home/marisa8/public_html/ndxz-studio/common.php on line 73 Deprecated: Assigning the return value of new by reference is deprecated in /home/marisa8/public_html/ndxz-studio/common.php on line 93 Deprecation errors are non-fatal errors that basically indicate a function that will no longer be available in the next iteration of PHP (in this case). In order to remove these errors, you would need to go back into the PHP.INI, search for error handling, and simply change the setting so that you don't see those errors pop up. I have changed so that only fatal errors and user-generated errors will appear. So, at this time when you bring up your website, you should no longer see the error messages appearing! I hope this helps! Let us know if you require any further assistance! Regards, Arnel C.