Deprecated: Function create_function() is deprecated
-
Need to tweak my WP theme code to fix below debug errors. Would appreciate help on this if anyone of you know a workaround. I cannot add a custom link in the main menu, nothing happens when I click add. When I try using live preview mode, Same when trying to add a new page or new blog post.
I get an error.
“Looks like something’s gone wrong. Wait a couple seconds, and then try again.”
I disabled all plugins, tried again. Same issue. Very weird. I am using Cloudflare, even cleared all cache including CF and W3Cache.`
Backend:
Deprecated: Function create_function() is deprecated in /home/xxxxxxx/public_html/wp-content/themes/satria/inc/ThemeFilters.php on line 34 Notice: Constant COOKIE_DOMAIN already defined in /home/xxxxxxx/public_html/wp-config.php on line 119 Notice: Constant WP_DEBUG already defined in /home/xxxxxxx/public_html/wp-config.php on line 119Frontend:
Deprecated: Function create_function() is deprecated in /home/xxxxxxx/public_html/wp-content/themes/satria/inc/ThemeFilters.php on line 34 Notice: Constant COOKIE_DOMAIN already defined in /home/xxxxxxx/public_html/wp-config.php on line 119 Notice: Constant WP_DEBUG already defined in /home/xxxxxxx/public_html/wp-config.php on line 119 Notice: Undefined variable: bgimage in /home/xxxxxxx/public_html/wp-content/themes/satria/inc/walker/SatriaUikitMenuWalker.php on line 158<strong>This is the current line 34 in ThemeFilters.php</strong>
// Search Form add_filter( 'get_search_form', array($this, 'satria_search_form'), 10);This is the entire ThemeFilters.php file:
https://pastebin.com/eE17tkidThe page I need help with: [log in to see the link]
The topic ‘Deprecated: Function create_function() is deprecated’ is closed to new replies.