StefanMischok Posted April 20, 2023 Posted April 20, 2023 Hi! I am getting this error when trying to launch the forum: Quote Fatal error: Uncaught Error: Attempt to assign property "timezone" on null in /home/killersi/public_html/community/system/Member/Member.php:206 Stack trace: #0 /home/killersi/public_html/community/system/Log/Log.php(107): IPS\_Member::loggedIn() #1 /home/killersi/public_html/community/init.php(1040): IPS\_Log::log('Error: Attempt ...', 'uncaught_except...') #2 [internal function]: IPS\IPS::exceptionHandler(Object(Error)) #3 {main} thrown in /home/killersi/public_html/community/system/Member/Member.php on line 206 I am running PHP8.0 Thanks!
StefanMischok Posted April 20, 2023 Author Posted April 20, 2023 This is a snapshot of my current PHP config:
Marc Posted April 20, 2023 Posted April 20, 2023 Check using the requirement checker here If you are then still having issues, please try recovery mode, which you can find more information about here
StefanMischok Posted April 20, 2023 Author Posted April 20, 2023 Hi Marc, Quote Check using the requirement checker here How do access that when the forum is offline? Thanks Stef Oops .. got it. Hold on.
StefanMischok Posted April 20, 2023 Author Posted April 20, 2023 Hi, I've added recovery mode and it still throws this error on the root of the forum: Fatal error: Uncaught Error: Attempt to assign property "timezone" on null in /home/killersi/public_html/community/system/Member/Member.php:206 Stack trace: #0 /home/killersi/public_html/community/system/Log/Log.php(107): IPS\_Member::loggedIn() #1 /home/killersi/public_html/community/init.php(1040): IPS\_Log::log('Error: Attempt ...', 'uncaught_except...') #2 [internal function]: IPS\IPS::exceptionHandler(Object(Error)) #3 {main} thrown in /home/killersi/public_html/community/system/Member/Member.php on line 206 Is there any particular URL I have to access? Stef
Nathan Explosion Posted April 20, 2023 Posted April 20, 2023 (edited) You should be looking at that fatal error - the mySQL database can't be accessed using the credentials that are in the conf_global.php file "Access denied" Fix that. Edited April 20, 2023 by Nathan Explosion
StefanMischok Posted April 20, 2023 Author Posted April 20, 2023 7 minutes ago, Nathan Explosion said: Look at the fatal error - the mySQL database can't be accessed using the credentials that are in the conf_global.php file I did and now show this, but the forum is still throwing this error on root: Fatal error: Uncaught Error: Attempt to assign property "timezone" on null in /home/killersi/public_html/community/system/Member/Member.php:206 Stack trace: #0 /home/killersi/public_html/community/system/Log/Log.php(107): IPS\_Member::loggedIn() #1 /home/killersi/public_html/community/init.php(1040): IPS\_Log::log('Error: Attempt ...', 'uncaught_except...') #2 [internal function]: IPS\IPS::exceptionHandler(Object(Error)) #3 {main} thrown in /home/killersi/public_html/community/system/Member/Member.php on line 206 What is interesting is that it is taking forever to load (30 seconds) when hitting the ips4.php page ..?
Nathan Explosion Posted April 20, 2023 Posted April 20, 2023 (edited) Now you've sorted that DB issue out, have you tried recovery mode again? Also, clear the /datastore folder contents. Report back. Edited April 20, 2023 by Nathan Explosion
StefanMischok Posted April 20, 2023 Author Posted April 20, 2023 Hi, To enable recovery mode, I opened up constants.php: <?php // PHP code goes here define('RECOVERY_MODE',True); define ( 'BULK_MAILS_PER_CYCLE', 25 ); ?> Then loaded the community root, and still get this error: Fatal error: Uncaught Error: Attempt to assign property "timezone" on null in /home/killersi/public_html/community/system/Member/Member.php:206 Stack trace: #0 /home/killersi/public_html/community/system/Log/Log.php(107): IPS\_Member::loggedIn() #1 /home/killersi/public_html/community/init.php(1040): IPS\_Log::log('Error: Attempt ...', 'uncaught_except...') #2 [internal function]: IPS\IPS::exceptionHandler(Object(Error)) #3 {main} thrown in /home/killersi/public_html/community/system/Member/Member.php on line 206 Just now, StefanMischok said: define ( 'BULK_MAILS_PER_CYCLE', 25 ); This was already in there. Could it be this was hacked?
Marc Posted April 20, 2023 Posted April 20, 2023 No, this is a valid line that can be added and not hacked code in any way. Remove the ?> from the end
StefanMischok Posted April 20, 2023 Author Posted April 20, 2023 Nice! We are in recovery mode. Seeing this: What's next? And thanks! Stef Does that suggest the theme was causing the problems? Stef
Marc Posted April 20, 2023 Posted April 20, 2023 Log into the admin comp as stated in the documentation. It will then disable all 3rd party items for you. You can then remove recovery mode
StefanMischok Posted April 20, 2023 Author Posted April 20, 2023 Ok. I just logged in and it is prompting me to update the constants.php file. Follow this? Finally, so some plugin caused the forum to fail this way? I am curious as to the cause? Thanks! S
StefanMischok Posted April 20, 2023 Author Posted April 20, 2023 I've set up the cron on CPANEL: Will the big red notification at the top of the page disappear once the maintenance tasks are complete? In other words, how does one know when that this is working? Gracias!
Nathan Explosion Posted April 20, 2023 Posted April 20, 2023 Just now, StefanMischok said: Will the big red notification at the top of the page disappear once the maintenance tasks are complete? No - click the X in the notification to close it. Just now, StefanMischok said: In other words, how does one know when that this is working? 2 ways...the message doesn't reappear, or you go to your Tasks listing (type tasks in the search bar) and check that tasks have been running since you put the cron in place. StefanMischok 1
StefanMischok Posted April 20, 2023 Author Posted April 20, 2023 Thanks Nathan. Last question, can you explain why this forum problem occurred ... I mean generally? Was it some plugin or something? I am curious because I've had zero problems for year. 🤔 Stef
Nathan Explosion Posted April 20, 2023 Posted April 20, 2023 It may have been an issue with a 3rd-party plugin. It may have been an issue with a 3rd-party application. It may have been an issue with a 3rd-party theme. It may have been an issue with a modification you made to your theme. Aliens. No idea.
Recommended Posts