• Resolved webmasterfreya

    (@webmasterfreya)


    wordpress 6.0, php 8.0.20
    Since the latest update to 2.3.46 these error messages appear.

    AH01071: Got error ‘PHP message: PHP Warning: Attempt to read property “ID” on null in [path]/wp-content/plugins/slide-anything/php/slide-anything-admin.php on line 2522
    PHP message: PHP Warning: Attempt to read property “ID” on null in [path]/wp-content/plugins/slide-anything/php/slide-anything-admin.php on line 2524

    PHP message: PHP Warning: Attempt to read property “ID” on null in [path]/wp-content/plugins/slide-anything/php/slide-anything-admin.php on line 2522

    PHP message: PHP Warning: Attempt to read property “ID” on null in [path]/wp-content/plugins/slide-anything/php/slide-anything-admin.php on line 2524’, referer: /wp-admin/post.php?post=45&action=edit`

    2520 `// ### REMOVE XSS ATTACK VULNERABILITY FROM SLIDER POST TITLES ###
    2521 global $wpdb;
    2522 $post_title = get_the_title($post->ID);
    2523 $sanitize_title = sanitize_text_field($post_title);
    2524 $where = array(‘ID’ => $post->ID);
    2525 $wpdb->update($wpdb->posts, array(‘post_title’ => $sanitize_title), $where);`

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Attempt to read property “ID” on null’ is closed to new replies.