So, I felt like we had a theme issue or conflict that didn't work well with wp toolkit, but I've hit several sites now with different themes that all have the same issue with wp toolkit commands. I'm not 100% sure what the issue is but I tracked it down to a pathing problem in one of wp's core functions where it's not returning the correct info only on wp toolkit function calls.
Error :
Warning: require(/var/www/vhosts/browstobraziliansla.com/httpdocs/wp-content/themes//includes/settings-functions.php): Failed to open stream: No such file or directory in /var/www/vhosts/browstobraziliansla.com/httpdocs/wp-content/themes/hello-elementor/functions.php on line 193
PHP Fatal error: Uncaught Error: Failed opening required '/var/www/vhosts/browstobraziliansla.com/httpdocs/wp-content/themes//includes/settings-functions.php' (include_path='.:/opt/plesk/php/8.1/share/pear') in /var/www/vhosts/browstobraziliansla.com/httpdocs/wp-content/themes/hello-elementor/functions.php:193
It was tough to spot, but indeed the path is wrong. themes//includes, it's missing the theme folder and should be themes/hello-elementor/includes. It's a core wp function doing this:
require get_template_directory() . '/includes/settings-functions.php';
We have three completely different sites doing this now. Everything else is running fine but toolkit. Anyone else see this problem before?
Error :
Warning: require(/var/www/vhosts/browstobraziliansla.com/httpdocs/wp-content/themes//includes/settings-functions.php): Failed to open stream: No such file or directory in /var/www/vhosts/browstobraziliansla.com/httpdocs/wp-content/themes/hello-elementor/functions.php on line 193
PHP Fatal error: Uncaught Error: Failed opening required '/var/www/vhosts/browstobraziliansla.com/httpdocs/wp-content/themes//includes/settings-functions.php' (include_path='.:/opt/plesk/php/8.1/share/pear') in /var/www/vhosts/browstobraziliansla.com/httpdocs/wp-content/themes/hello-elementor/functions.php:193
It was tough to spot, but indeed the path is wrong. themes//includes, it's missing the theme folder and should be themes/hello-elementor/includes. It's a core wp function doing this:
require get_template_directory() . '/includes/settings-functions.php';
We have three completely different sites doing this now. Everything else is running fine but toolkit. Anyone else see this problem before?