PHP Warning: Attempt to read property "class" on null

  • Udo
  • Udo's Avatar Offline Topic Author
  • New Member
  • New Member
  • Posts: 1
  • Thanks: 0

PHP Warning: Attempt to read property "class" on null was created by Udo

Posted 5 months 2 weeks ago #70142
Hi,
I just update to Joomla 4 and installed Easy Image Caption latest version (1.0.7)
Now the error_log shows a lot of these PHP warnings (PHP 8.1.25):
Code:
PHP Warning: Attempt to read property "class" on null in /XXXXXX/public_html/plugins/content/easyimagecaptionck/easyimagecaptionck.php on line 368

This is line 368:
Code:
if($e->parent()->class != 'easy_img_caption' AND $e->parent()->parent()->class != 'easy_img_caption') {

How do I get rid at those warnings?

Thanks,
Udo

 
by Udo

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic PHP Warning: Attempt to read property "class" on null

Posted 5 months 2 weeks ago #70143
Hi
thank you for your feedback, I will check that
for now go in your website config >> server >> php report >> set it to NONE
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.688 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 544 guests and no members online