[Resolved] Split: php error / warning after updating to Astra 2.2
This support ticket is created 4 years, 10 months 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I have this error, too.
It appears if I update Astra Pro Addon to v2.2.x . I get this error on the frontend of the website:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, cannot access private method Astra_Addon_Background_Updater::needs_db_update() in /../../../wp-content/plugins/wp-views/vendor/toolset/toolset-theme-settings/compatibility-modules/controllers/toolset-theme-integration-settings-front-end-controller.php on line 363 Warning: call_user_func_array() expects parameter 1 to be a valid callback, cannot access private method Astra_Addon_Background_Updater::needs_db_update() in /../../../wp-content/plugins/wp-views/vendor/toolset/toolset-theme-settings/compatibility-modules/controllers/toolset-theme-integration-settings-front-end-controller.php on line 363 Warning: call_user_func_array() expects parameter 1 to be a valid callback, cannot access private method Astra_Addon_Background_Updater::is_db_updated() in /../../../wp-content/plugins/wp-views/vendor/toolset/toolset-theme-settings/compatibility-modules/controllers/toolset-theme-integration-settings-front-end-controller.php on line 363 Warning: call_user_func_array() expects parameter 1 to be a valid callback, cannot access private method Astra_Addon_Background_Updater::is_db_updated() in /../../../wp-content/plugins/wp-views/vendor/toolset/toolset-theme-settings/compatibility-modules/controllers/toolset-theme-integration-settings-front-end-controller.php on line 363
If I revert back to Astra Pro Addon v2.1.4 --> all is fine. So Astra made an Update of the theme yesterday. See: hidden link The error must be in the Pro Addon - not in the theme itself. Because I can use the Astra Theme v2.2.0 without any problems. Only if I update the Astra Pro Plugin the error appears...
This is what I get via e-Mail "The site is experiencing technical difficulties." :
Fehler-Details
==============
Ein Fehler vom Typ E_COMPILE_ERROR wurde in der Zeile 47 der Datei /../../../wp-content/plugins/astra-addon/classes/class-astra-addon-background-updater.php verursacht. Fehlermeldung: require_once(): Failed opening required '/../../../wp-content/plugins/astra-addon/classes/library/batch-processing/wp-async-request.php' (include_path='.:/usr/share/pear:/usr/share/php')####
I reached out to Astra Theme Maker, too. They were able to reproduce the problem and said that it is something that needs to be fixed in the Toolset Views Plugin. This is what I got for an answer:
" After debugging we tried the same on our side and was able to debug this issue on our end. It looks like the plugin ToolSet Views is giving a call to Astra Pro's private functions due to which you are seeing these warnings.
We have contacted ToolSet plugin developers regarding this and provided them with all the details.
In our opinion, this issue should be ideally resolved from their end. Though we are in communication with them. "
So any news from your next level Support about this?
Our Devs are working on the fix and as soon as they share the hotfix I will get in touch with you. You should expect it soon, by tomorrow, if everything goes well.
I have installed the hotfix and I am still having the error. Specifically:
"Warning: call_user_func_array() expects parameter 1 to be a valid callback, cannot access private method Astra_Addon_Background_Updater::needs_db_update() in /home/glancelo/public_html/ihanalifestyle/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-theme-settings/compatibility-modules/controllers/toolset-theme-integration-settings-front-end-controller.php on line 363"
Running Astra 2.2.4 and Toolset Blocks 1.02
Installed the hotfix toolsetthemes-170.zip contents as described.
Does anyone have any ideas as to what I can do?
New threads created by Minesh and linked to this one are listed below:
I would like to inform you that the fix for the issue is shipped with Views version 3.1.0.
Could you please update ALL Toolset plugins to it's latest officially released version. You can download the latest plugin release from your accounts page:
=> https://toolset.com/account/downloads/