• Trying to get property ‘ID’ of non-object15+wp-content/plugins/plugin-optimizer/admin/class-po-admin.php:894

Viewing 1 replies (of 1 total)
  • Thread Starter dbase66

    (@dbase66)

    PHP 8 Problem

    please solve it like this

    /wp-content/plugins/plugin-optimizer/admin/class-po-admin.php
    if (isset($post->ID)) {
    	if($row = $wpdb->get_row("SELECT * FROM {$wpdb->prefix}po_filtered_endpoints WHERE post_id = '{$post->ID}'")){
    		return array('PO Filtered');
    	}
     }
    
    //        parse_str( parse_url( $url, PHP_URL_QUERY ), $query_vars);
            wp_parse_str( parse_url( $url, PHP_URL_QUERY ), $query_vars);
    
    /wp-content/plugins/plugin-optimizer/admin/pages/page-overview.php
    if (isset($server_output->data)) {
          update_option('po_available_filters', $server_output->data->count);
          $available_count = $server_output->data->count;
    }
    
Viewing 1 replies (of 1 total)
  • The topic ‘Error in V6.1.1’ is closed to new replies.