Attempt to assign property 'ReadOnly' on null

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
bern_a3168
User
Posts: 58

Attempt to assign property 'ReadOnly' on null

Post 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,


sangnandar
User
Posts: 1031

Post by sangnandar »

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


arbei
User
Posts: 9785

Post 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.


bern_a3168
User
Posts: 58

Post by bern_a3168 »

Thank you both.
will try and come back.


Post Reply