• Resolved Joe

    (@webworksjoe)


    Hi thanks for your plugin and hard work.

    We’re seeing frequent errors stating:

    WordPress database error Table ‘DB_NAME.mp_options’ doesn’t exist for query DELETE FROM
    mp_options WHERE (option_name LIKE ‘%_rfqtk_wp_session_expires_%’ OR option_name LIKE CONCAT(‘_rfqtk_wp_session_’, replace(option_name,’_rfqtk_wp_session_expires_’, ”)))

    Seems this is coming from your delete_old_sessions function around line 100 in class-wp-session-utils.php.

    	public static function delete_old_sessions( $limit = RFQTK_WP_SESSION_CLEAN_LIMIT ) {
    
    ...
    
                $sql= "DELETE FROM 
            mp_options WHERE (option_name LIKE '%_rfqtk_wp_session_expires_%'  OR option_name LIKE  CONCAT('_rfqtk_wp_session_', replace(option_name,'_rfqtk_wp_session_expires_', ''))) 
            and option_value <=%d    LIMIT %d";
    
    ...
    }
    

    Thanks for taking a look.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Frequent error DB table does not exist’ is closed to new replies.