• Hello, i got many php errors related to the plugin… do you have any idea how to fix it ? Thank you very much !

    legabion.org [Wed Jan 15 20:51:43.220321 2025] [fastcgi:error] [pid 3692707:tid 140289444398848] [client xxx] FastCGI: server “/xxx/.config/apache/legabion.org/.fpm/php5.external” stderr: ty “ID” on int in /home/clients/c2122e1746cad9168816bfddd6bc4000/sites/legabion.org/wp-content/plugins/events-manager/em-events.php on line 302; PHP message: PHP Warning: Attempt to read property “ID” on int in /xxx/wp-content/plugins/events-manager/em-events.php on line 302; PHP message: PHP Warning: Attempt to read property “post_type” on int in /xxx/wp-content/plugins/events-manager/classes/em-event-post.php on line 207; PHP message: PHP Warning: Attempt to read property “ID” on int in /xxx/wp-content/plugins/events-manager/em-events.php on line 302; PHP message: PHP Warning: Attempt to read property “ID” on int in /xxx/wp-content/plugins/events-manager/em-events.php on line 302

    I’m on PHP 8.2.

    Thank you best regards,

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • To fix the problem, you could change line 300 of wp-content/plugins/events-manager/em-events.php from this:

    if( empty($post) ) return $data; //fix for any other plugins calling the_content outside the loop

    To this:

    if( empty($post) || !is_object($post) ) return $data; //fix for any other plugins calling the_content outside the loop
    Thread Starter Le Renard Pourpre

    (@swanzack)

    hello thank you for your help @joneiseman but i’m use to never change core or plugin files as i know it could be overwritten by updates…. What do you think about that and prevent that ? Thank you !

    I sent @msykes a request to fix the code to prevent this error so that it will be fixed in the next release.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.