Page 1 of 1

Attempt to assign property 'ReadOnly' on null

Posted: Tue Sep 17, 2024 2:24 am
by bern_a3168

Hi Team,

Hope you're doing well.

I've recently upgraded to PHP 8.3.x, and overall, it's been smooth. However, I've encountered an issue with some projects I created back in 2020. When accessing these, I get an error: "Attempt to assign property 'ReadOnly' on null."

Before going through the code line by line, is there a more efficient way to resolve this?

Thanks and regards,


Re: Issue After PHP 8.3.x Upgrade

Posted: Tue Sep 17, 2024 7:29 am
by sangnandar

I use PHP 8.3.x too and never encounter such problem.
Check the necessary extensions as per documentation.


Re: Attempt to assign property 'ReadOnly' on null

Posted: Tue Sep 17, 2024 9:02 am
by arbei

The error meant you call $xxx->ReadOnly but $xxx is null. You should turn on Debug and see the stack trace. If it is originated from your server event, update your code. If not, you may post the complete error message for discussion.


Re: Attempt to assign property 'ReadOnly' on null

Posted: Thu Sep 19, 2024 7:00 pm
by bern_a3168

Thank you both.
will try and come back.