Hi @gizant
As a temporary workaround, you can do the following:
Step 1: Remove the Corrupted Option
The first step is to clean the corrupted option from your database. You can do this in one of two ways:
- If Your Site is Accessible:
Add the following snippet to your site and load it once to clean the corrupted option:
add_action( 'init', fn() => delete_option( 'tribe_pue_key_notices' ), 1 );
- If Your Site is Inaccessible:
Run the following SQL command directly in your database to remove the corrupted option:
DELETE FROM wp_options WHERE option_name='tribe_pue_key_notices';?
Important: Ensure you’re using the correct database table prefix (e.g., wp_
). Some sites use custom prefixes, so double-check this before running the query.
Step 2: Add a Temporary Snippet
To prevent the issue from recurring until a permanent fix is released, set up the following snippet:
add_action( 'tribe_pue_notices_save_notices', function ( $notices ) { foreach ( $notices as $key => &$plugin_lists ) { // Purge any elements that are not arrays if ( ! is_array( $plugin_lists ) ) { unset( $notices[ $key ] ); continue; } $plugin_lists = array_unique( $plugin_lists ); foreach ( $plugin_lists as $plugin => $data ) { $notices[ $key ][ $plugin ] = is_array( $data ) ? array_unique( $data ) : $data; } } update_option( 'tribe_pue_key_notices', $notices ); // move this out of the loop }, PHP_INT_MAX )
This ensures that the problematic option won’t get filled with duplicate data over time.
?
Step 3: Remove the Initial Snippet
If you used the snippet from Step 1 to clean the corrupted option, you can now safely remove it.?
If you’re not familiar with coding, you can use the Code Snippets plugin, which removes the need to add custom snippets to your theme’s functions.php file.
Feel free to let me know how it goes.