Skip Navigation

[Resolved] There has been a critical error on your website.

This support ticket is created 5 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 6 replies, has 2 voices.

Last updated by Beda 5 years ago.

Assisted by: Beda.

Author
Posts
#1603691

I should have taken a screenshot. After a refresh its now referencing the template rather than toolset.

Hi Support, updated Toolset 2.2.x to 3.3.10 and receiving the errors you see at hidden link

Any ideas what is wrong?

Thanks in advance,
Michael

#1604101

There is a fatal error on the page:

Fatal error: Uncaught Error: Call to undefined function ot_get_option() in .../wp-content/themes/eleven40-pro/header.php:41

It happens in the Theme:

/wp-includes/template.php(723): require_once() 
/wp-includes/template.php(672): load_template() 
/wp-includes/general-template.php(41): locate_template() 
/wp-content/themes/eleven40-pro/template/home.php(3): get_header() 
/wp-includes/template-loader.php(106): include('/var/www/vhosts...') 
/wp-blog-header.php(19): require_once('/var/www/vhosts...') 
/index.php(17): require('/var/www/vhosts...') 
/wp-content/themes/eleven40-pro/header.php on line 41

The issue is in the Theme's header.php line 41
ot_get_option is a method of OptionTree https://wordpress.org/support/plugin/option-tree/
I suggest disabling the Theme, and the plugin, and test again: The problem should not be related to Toolset.

NOTE:
It might be you used the Options Tree in Views Integration - but the error should still be related to the missing definition for the method ot_get_option, which then throws the fatal error
This should be because the https://wordpress.org/plugins/option-tree/ is disabled or not installed at all.

Can you confirm this?
It seems, however, your theme requires it?

#1606721

Thanks for the tip RE Options Tree. It wasn’t a plugin installed at all – not for the last few months at least – went through the backups. So cant explain what happened to it. I have added it and now one step further. See the site now - hidden link

Looks like now only Toolset errors?

#1606779

Hmmm yes, it seems there is some issue with a Numeric Post Field.

At this point, I can't proceed from "outside" if this issue persists without other Plugins and a native WordPress Theme
I'd need (best case) a copy of this site.
https://toolset.com/faq/provide-supporters-copy-site/

Could you provide me such?

#1606877

Ok, I see on the Duplicate in the WP Admin there are many more PHP errors, related to the Options Tree Plugin.

( ! ) Notice: Trying to access array offset on value of type bool in .../wp-content/plugins/option-tree/includes/class-ot-settings.php on line 395

(repeating until "Cannot modify header information" error).

I've deactivated all Plugins but Toolset on the Site and saw you do not use Toolset Views, so you cannot use Option Tree integration. This is an integration made for Views.

In any case, as soon I disable all Plugins and run only Types as it's done on the Duplicate if we remove all other plugins, I can not see any errors anymore in the backend.
But in the Front End, I will see

( ! ) Fatal error: Uncaught Error: Call to undefined function ot_get_option() in .../wp-content/themes/eleven40-pro/header.php on line 41

This is because your Theme eleven40-pro has a hardcoded dependency on the Option Tree plugin, but that is not related to Toolset.
Simply if you use that Theme you need to activate Option Tree it seems, as otherwise the error is thrown.
That error also happens if you disable Toolset.

It disappears when you change the Theme to for example Twenty-Twenty.
At this point, you can re-enable Toolset, and it will continue to function fine.
You can at this point also activate all other plugins, and it will continue to function.
(Well, again here you will see errors related to another plugin "multidomain", but that's again not related to Toolset, as it persists without Toolset)

Does this help to restructure your site?
You'd need to disable or fix the Theme, which should solve the issue.

#1607619

Thanks for the detailed response.

I understand most of what you have said.

So the template has some hard coded reliance on Toolset views? If so we should purchase that also which would help.

I note the other reliance on other plugins like multi site.

Again, thank you very much for your assistance.

#1608021

No, the Theme has a hardcoded reference to the Plugin, or more generally, the Option Tree Framework - that's not related to Toolset at all, but Toolset Views provides integration for that. It's however not what makes the error.

The error happens because the Theme requires the Framework. As soon you enable the Framework the error will disappear, but the error about the Option Tree Plugin will come back and the one about multidomain
This wether you use or not Toolset.

What you'd need is either use another theme, and not use those 2 erroring plugins, or, get in touch with the Theme/Plugin Authors to fix this.
It is not related to Toolset, in as far we were able to test (see previous replies)

Thanks!