• another bugfix from me for this abondened plugin :/

    i choosed the same issue title as turkm0trans to let him and others find this issue because the admin closed the previous topic

    this plugin is doing a checkup prio enqueueing the script in the file pj-news-ticker.php on line 207

    this checkup can fail if the returned page_id does not exist anymore for whatever reason, for me e.g. the plugin tried to load up the page_id 1 and this resulted to a php warning.

    this issue occured also to us after we upgraded php to 8.1 from 7.x

    instead i am setting this now to null to prevent this php warning, plugin is working again on pages where it is not even used, and of course on pages where the news ticker is active…

    $check = get_post( $page_id ) ? get_post( $page_id )->post_content : NULL;

  • The topic ‘PHP8.1 Attempt to read property “post_content” on null’ is closed to new replies.