Skip Navigation

[Resolved] PHP warning with Astra Pro

This thread is resolved. Here is a description of the problem and solution.

Problem:
We see PHP warnings related to Toolset and Astra Pro, here is the error:

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

Solution:
You can apply this patch:
https://toolset.com/errata/php-warning-when-using-astra-pro-plugin-and-toolset-views-or-blocks/

It should resolve the issue.
If the erratum is marked as resolved (green colour), you can simply update Toolset.

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 3 replies, has 2 voices.

Last updated by Beda 4 years, 11 months ago.

Assisted by: Beda.

Author
Posts
#1457375
siteground.PNG

Hi there! I´m unable to update my site because there seems to be a compatibility problem between my theme and Toolset. The error that I´m seeing is:

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/yogamin8/staging/6/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::update() in /home/yogamin8/staging/6/wp-content/plugins/wp-views/vendor/toolset/toolset-theme-settings/compatibility-modules/controllers/toolset-theme-integration-settings-front-end-controller.php on line 363
S

I'm using the Astra theme. Please help me with this issue.

#1457419
#1457433

Thanks bro. It works like a charm again :D.

#1495745

This is now released in Views 3.1.0
If you cannot see the update on your install please check for new updates in the Plugins > Commercial tab, or download it from https://toolset.com/account/downloads/