Skip Navigation

PHP warning when using Astra Pro plugin and Toolset Views or Blocks

Resolved

Resolved in: 3.1.0

Symptoms

When using Toolset and Astra Pro plugin, the following PHP warnings might be produced:
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 .../plugins/wp-views/vendor/toolset/toolset-theme-settings/compatibility-modules/controllers/toolset-theme-integration-settings-front-end-controller.php on line 363

Workaround

Toolset Developers prepared a fix for this. Please download, and unzip this file. Then Upload the file it contains to replace the one with the same name, located in wp-content/plugins/wp-views/vendor/toolset/toolset-theme-settings/compatibility-modules/controllers.

If you use Toolset Blocks, upload it to wp-content/plugins/toolset-blocks/vendor/toolset/toolset-theme-settings/compatibility-modules/controllers

If you are using Toolset Layouts, you also need to replace this same file in wp-content/plugins/layouts/vendor/toolset/toolset-theme-settings/compatibility-modules/controllers.

5 thought on PHP warning when using Astra Pro plugin and Toolset Views or Blocks

  • If you are using Toolset Blocks the instructions above will not work. You may still have a residual error message.

    In order to correct this you have to do the following:

    Toolset Developers prepared a fix for this. Please download, and unzip this file. Then Upload the file it contains to replace the one with the same name, located in wp-content/plugins/toolset-blocks/vendor/toolset/toolset-theme-settings/compatibility-modules/controllers

    The key for me was changing the file in the toolset-blocks director and not wp-views alone.

  • I keep running into this myself. When can we expect an update to Views to fix? It’s frustrating to have sites display the error and then go in through FTP to replace this file.

    • It’s scheduled for the next release fo Views but I have no eta for that release. I’ll update here.

Comments are closed