Skip Navigation

[Resolved] Upgrading to Blocks 1.6.22+ breaks view

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 1 voice.

Last updated by Minesh 1 week, 4 days ago.

Assisted by: Minesh.

Author
Posts
#2866340
frontend-working.png
frontend-broken.png
working.png
broken.png

When upgrading Blocks to 1.6.22 or 1.6.23, a view that's been working and stable for years suddenly breaks. It looks like the shortcodes inside the view loop no longer have the current iteration as the context, and instead are looking at the whole set. For example, the `[wpv-post-link]` shortcode starts returning the name of the custom type, and a link to that type, not the current entry's title. Interestingly, the `[types field='telephone'][/types]` shortcode seems to still work in this situation, but `[wpv-post-url]`, `[wpv-post-link]`, and a custom shortcode that uses the `types_render_field()` method do not.

I've attached 4 screenshots: two each of before and after, frontend and admin panel. On the latest versions of the plugin, the content of the "Fields and Text" field isn't even visible in the editor. Manually putting in new content results in the exact same behavior (including no visible content in the editor after reloading the page).

The frontend uses Divi, but this page was built using only the WP block editor. I have rolled back the installed version of the Block plugin to 1.6.21 to restore the site's function.

#2866357

Some logs that might be relevant.

Jun 24 19:57:10 PHP Warning: include_once(/site/www/public_html/wp-content/plugins/toolset-blocks/inc/api/hooks-api.php): Failed to open stream: No such file or directory in /site/www/public_html/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/utility/autoloader.php on line 127
Jun 24 19:57:10 PHP Warning: include_once(): Failed opening '/site/www/public_html/wp-content/plugins/toolset-blocks/application/../inc/api/hooks-api.php' for inclusion (include_path='.:/opt/remi/php83/root/usr/share/pear:/opt/remi/php83/root/usr/share/php:/usr/share/pear:/usr/share/php') in /site/www/public_html/wp-content/plugins/toolset-blocks/vendor/toolset/toolset-common/utility/autoloader.php on line 127
Jun 24 19:57:10 PHP Fatal error: Uncaught Error: Class "WPV_API_Legacy" not found in /site/www/public_html/wp-content/plugins/toolset-blocks/application/controllers/api.php:158#012Stack trace:#012#0 /site/www/public_html/wp-content/plugins/toolset-blocks/application/controllers/api.php(40): WPV_Api->register_callbacks()#012#1 /site/www/public_html/wp-content/plugins/toolset-blocks/application/controllers/main.php(152): WPV_Api::initialize()#012#2 /site/www/public_html/wp-includes/class-wp-hook.php(341): WPV_Main->init_api()#012#3 /site/www/public_html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters()#012#4 /site/www/public_html/wp-includes/plugin.php(522): WP_Hook->do_action()#012#5 /site/www/public_html/wp-settings.php(749): do_action()#012#6 /site/www/public_html/wp-config.php(90): require_once('...')#012#7 /site/www/public_html/wp-load.php(50): require_once('...')#012#8 /site/www/public_html/wp-blog-header.php(13): require_once('...')#012#9 /site/www/public_html/index.php(17): require('...')#012#10 {main}#012 thrown in /site/www/public_html/wp-content/plugins/toolset-blocks/application/controllers/api.php on line 158

#2866457

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've good news.

With the following link I've uploaded the hotfix version that contains the fix for this issue. It has Toolset Blocks and Toolset Views plugins zip.
=> hidden link

You can download whatever plugin you are using and replace with your existing plugins by removing the current Toolset Blocks/Views plugin from your plugins page.

I hope the above hotfix version will help you to fix your issue.

Once we release the hotfix version official, it will available with your account's Download page and you can later update to that once its available later on.

#2866464

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Another good news.

The new hotfix version are available to download on your account's plugins page:
- https://toolset.com/download/toolset-blocks/#changelog
- https://toolset.com/download/toolset-views/#changelog

- If you use Toolset Blocks then download and install Toolset Blocks.
- If you use Toolset Views then download and install Toolset Views.