• Looks like this issue is ignored by developers.
    https://ww.wp.xz.cn/support/topic/errors-filling-my-log-file/

    Still generating PHP Warning: Attempt to read property “ID” on null lines in php logs. This is easy to fix. In file inc/functions/glg-functions.php, you can for example do something like this:

    function glg_post_page_hook( $content )
    {
    global $post;
    if ( trim( get_option( 'glg_gallery_active' ) ) != 'off' ) {

    to:

    function glg_post_page_hook( $content )
    {
    global $post;
    if ( $post !== null && trim( get_option( 'glg_gallery_active' ) ) != 'off' ) {

    Please fix this.

The topic ‘PHP Warnings’ is closed to new replies.