The error I am getting is:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘wptexturize’ not found or invalid function name in /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/class-wp-hook.php on line 294
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘wptexturize’ not found or invalid function name in /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/class-wp-hook.php on line 294
Fatal error: Uncaught Error: Call to undefined function wptexturize() in /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/general-template.php:1240 Stack trace: #0 /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/general-template.php(1261): wp_get_document_title() #1 /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/class-wp-hook.php(292): _wp_render_title_tag(”) #2 /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array) #3 /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #4 /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/general-template.php(3009): do_action(‘wp_head’) #5 /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-content/themes/flatsome/header.php(10): wp_head() #6 /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/template.php(730): require_once(‘/home/ifd6vop3y…’) #7 /home/ifd6vop3yes7/public_html/thematchca in /home/ifd6vop3yes7/public_html/thematchcandleco.com/wp-includes/general-template.php on line 1240
It breaks the website. I have searched for days with no results and I am at my wit’s end.
I am a c# asp.net guy, not a PHP guy so I cannot for the life of me figure out what is going on. As long as my site is down I am not getting orders. I can do a backup to a version that works, but then I lose 50% of my woocommerce orders and I don’t want that obviously. Can someone tell me what the heck is going on?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
I did a rollback to WordPress 5.5.5 the hard way via FTP and running the upgrade and that seemed to fix it. I then did an immediate backup of the site so I can roll back to that if need be. I tried disabling all plugins and changing the theme in the database before downgrading and none of that worked so I can only figure it was something to do with WordPress core itself. My understanding is that ‘wptexturize’ is a WordPress function that converts single quotes into double-quotes for some reason but not completely sure about that which is what made me think it was something to do with WordPress Core. I will try and do a manual update to the latest version later since I spent all day doing this, lol.]
Method 2
You might want to look at disabling the use of wptexturize() – check out this WPDevSE post Safe to disable wptexturize? to see if it will help your situation.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0