sound Posted May 22, 2022 Posted May 22, 2022 (edited) occasionally get the below error triggered it seems if no timezone is present in the users ipsTimezone cookie [22-May-2022 05:25:49 UTC] PHP Fatal error: Uncaught Error: Attempt to assign property "timezone" on null in /home/huh/html/system/Member/Member.php:183 Stack trace: #0 /home/huh/html/system/Log/Log.php(107): IPS\_Member::loggedIn() #1 /home/huh/html/init.php(1015): IPS\_Log::log() #2 [internal function]: IPS\IPS::exceptionHandler() #3 {main} thrown in /home/huh/html/system/Member/Member.php on line 183 looks like this is now causing the php error in Php 8.0 if ( !static::$loggedInMember->member_id and isset( \IPS\Request::i()->cookie['ipsTimezone'] ) ) { static::$loggedInMember->timezone = \IPS\Request::i()->cookie['ipsTimezone']; } Edited May 22, 2022 by sound
Jim M Posted May 22, 2022 Posted May 22, 2022 Please be advised I have tagged a developer to this topic so they can verify what is happening here.
Marc Posted May 23, 2022 Posted May 23, 2022 Where is it you are seeing these? Are you seeing them in our system logs or your php error logs?
sound Posted May 23, 2022 Author Posted May 23, 2022 27 minutes ago, Marc Stridgen said: Where is it you are seeing these? Are you seeing them in our system logs or your php error logs? our php error logs
Marc Posted May 23, 2022 Posted May 23, 2022 We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. We look forward to further assisting you.
sound Posted May 23, 2022 Author Posted May 23, 2022 15 minutes ago, Marc Stridgen said: We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. We look forward to further assisting you. hey Marc, some misunderstanding here am just informing you/invision of a possible bug with the software No real wish for any work/access on own live server Just letting you know
Marc Posted May 23, 2022 Posted May 23, 2022 We are not aware of any issues relating to this at present. I dont seem to be seeing it on my own environment either, in relation to PHP 8. This is why I had requested access there.
Management Matt Posted May 31, 2022 Management Posted May 31, 2022 I've raised an internal bug report for this, thanks for reporting.
peter.schaefer Posted October 2, 2022 Posted October 2, 2022 Are you going along with that? Here is an example of my update trial to php8.0 from my php logs: [Sun Oct 02 18:32:40.198311 2022] [proxy_fcgi:error] [pid 61137:tid 34386205184] [client **********:56899] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Error: Attempt to assign property "timezone" on null in /www/system/Member/Member.php:198\nStack trace:\n#0 /www/system/Log/Log.php(107): IPS\\_Member::loggedIn()\n#1 /www/init.php(1029): IPS\\_Log::log('Error: Call to ...', 'uncaught_except...')\n#2 [internal function]: IPS\\IPS::exceptionHandler(Object(Error))\n#3 {main}\n thrown in /www/system/Member/Member.php on line 198' Have blank page instead of the website by the way, haven´t figured out yet, what caused that. A default timezone is set in php.ini: Default timezone Europe/Berlin
peter.schaefer Posted October 2, 2022 Posted October 2, 2022 Missed some php modules -> filter, gmp and phar. My fault, blank page is gone.
peter.schaefer Posted October 2, 2022 Posted October 2, 2022 Interesting the php 8 timezone error seems gone too. Daniel F 1
MadMaxMangos Posted January 14, 2023 Posted January 14, 2023 On 5/31/2022 at 11:16 AM, Matt said: I've raised an internal bug report for this, thanks for reporting. Also seeing this after moving the website from cpanel to virtualmin. In my case opening the admin login page immediately told me a database table core_theme_settings_fields relating to was missing and somehow throwing this error exact message in the php error logs! So something to note as an indirect cause of that error message I guess. I've put the error log message below (that is now resolved), in case line 205 is another bug that needs fixing (or not). [14-Jan-2023 22:34:32 UTC] PHP Fatal error: Uncaught Error: Attempt to assign property "timezone" on null in /home/markstreeton/public_html/system/Member/Member.php:205 Stack trace: #0 /home/markstreeton/public_html/system/Log/Log.php(107): IPS\_Member::loggedIn() #1 /home/markstreeton/public_html/init.php(1034): IPS\_Log::log() #2 [internal function]: IPS\IPS::exceptionHandler() #3 {main} thrown in /home/markstreeton/public_html/system/Member/Member.php on line 205 Matt 1
Jyoti Rani Posted October 26, 2023 Posted October 26, 2023 On 3/27/2023 at 3:35 PM, Marc Stridgen said: Are you having issues after having moved server? Hello Marc, Did you able to find the solution for this issue?
Marc Posted October 26, 2023 Posted October 26, 2023 9 minutes ago, Jyoti Rani said: Hello Marc, Did you able to find the solution for this issue? Its actually a PHP bug. We have worked around this in the next upcoming release
Jyoti Rani Posted October 26, 2023 Posted October 26, 2023 (edited) 5 minutes ago, Marc Stridgen said: Its actually a PHP bug. We have worked around this in the next upcoming release Actually i got this while working at my local machine. As per the comments on the forum, I restarted my system and i am getting below issue. Can you please suggest something? My all the efforts for the hook and local setup gets wasted. Edited October 26, 2023 by Jyoti Rani
Stuart Silvester Posted October 26, 2023 Posted October 26, 2023 Marc is thinking of something else that came up recently due to a change in PHP. This issue typically occurs when there's an error that happens really early in the bootup process before the member object is fully available for logging. (this could be something like an error connecting to the database server)
Solution Marc Posted January 24 Solution Posted January 24 This issue has been resolved in the recently released 4.7.15 version. Please update your site if you are still experiencing the issue, and let us know if you see any reoccurrence. MadMaxMangos and SeNioR- 2
Recommended Posts