PHP Fatal error: Uncaught TypeError: unserialize()
-
I got below error message. With this I show you the error:
$purge_varnish_action = get_option(‘purge_varnish_action’, ”);
print_r($purge_varnish_action);
result= Array ( [post_insert_update] => post_updated [post_status] => transition_post_status [post_trash] => wp_trash_post [comment_insert] => wp_insert_comment [comment_update] => edit_comment [navmenu_insert_update] => wp_update_nav_menu [theme_switch] => after_switch_theme )
unserialize() will not work here.
How to solve this issue?[27-Dec-2024 16:48:12 UTC] PHP Fatal error:
Uncaught TypeError: unserialize():
Argument #1 ($data) must be of type string, array given in C:\xampp\htdocs\bizz247\wp-content\plugins\purge-varnish\class_purge_varnish.php:968
Stack trace: 0 C:\xampp\htdocs\bizz247\wp-content\plugins\purge-varnish\class_purge_varnish.php(968): unserialize(Array) 1 C:\xampp\htdocs\bizz247\wp-settings.php(526): include_once(‘C:\xampp\htdocs…’) 2 C:\xampp\htdocs\bizz247\wp-config.php(88): require_once(‘C:\xampp\htdocs…’) 3 C:\xampp\htdocs\bizz247\wp-load.php(50): require_once(‘C:\xampp\htdocs…’) 4 C:\xampp\htdocs\bizz247\wp-admin\admin.php(34): require_once(‘C:\xampp\htdocs…’)The page I need help with: [log in to see the link]
The topic ‘PHP Fatal error: Uncaught TypeError: unserialize()’ is closed to new replies.