Hello Jamal,
Can you provide instructions on how to disable cache on my views?
On the Views admin page, I cleared the cache for each View. Is there somewhere else I can disable/reenable cache?
When I cleared cache on all views and opened a new post edit screen, the error did not recur, but now I get a bunch of errors (lots are "Cannot allocate memory") for various plugins (always some for Toolset) whenever I edit posts or content templates.
I will share some of the new errors related to Toolset in case you see a pattern or have some insight into what is causing these.
The first logged error after clearing the cache was related to Toolset in the stack trace:
Notice: require_once(): read of 15356 bytes failed with errno=12 Cannot allocate memory in /home/site/public_html/wp-content/plugins/jetpack/modules/module-extras.php on line 74
Stack Trace
1. require()/home/site/public_html/wp-content/plugins/wp-views/vendor/toolset/blocks/psr4-autoload.php:22
2. {closure}('ToolsetBlocks\Plugin\W...')
3. spl_autoload_call('ToolsetBlocks\Plugin\W...')
4. ReflectionClass->__construct('\ToolsetBlocks\Plugin\...')/home/site/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/lib/auryn/lib/StandardReflector.php:14
5. OTGS\Toolset\Common\Auryn\StandardReflector->getCtor('\ToolsetBlocks\Plugin\...')/home/site/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/lib/auryn/lib/CachingReflector.php:38
6. OTGS\Toolset\Common\Auryn\CachingReflector->getCtor('\ToolsetBlocks\Plugin\...')/home/site/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/lib/auryn/lib/Injector.php:399
7. OTGS\Toolset\Common\Auryn\Injector->provisionInstance('\ToolsetBlocks\Plugin\...', 'toolsetblocks\plugin\w...', Array(0))/home/site/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/lib/auryn/lib/Injector.php:373
8. OTGS\Toolset\Common\Auryn\Injector->make('\ToolsetBlocks\Plugin\...')/home/site/public_html/wp-content/plugins/wp-views/vendor/toolset/blocks/server/routes.php:86
9. ToolsetBlocks\{closure}('')/home/site/public_html/wp-includes/class-wp-hook.php:303
10. WP_Hook->apply_filters(null, Array(1))/home/site/public_html/wp-includes/class-wp-hook.php:327
11. WP_Hook->do_action(Array(1))/home/site/public_html/wp-includes/plugin.php:470
12. do_action('init')/home/site/public_html/wp-settings.php:578
13. require_once('/home/site/publi...')/home/site/public_html/wp-config.php:88
14. require_once('/home/site/publi...')/home/site/public_html/wp-load.php:50
15. require_once('/home/site/publi...')/home/site/public_html/wp-admin/admin-ajax.php:22
***************************************************************************************************************
Next, I opened a Content Template to edit, and again I got more errors. Here are some related to Toolset:
Fatal error: Uncaught Error: Class 'WPV_Shortcode_Post_Next_Link' not found in /home/site/public_html/wp-content/plugins/wp-views/application/controllers/main.php:156
Stack Trace
1. {anonymous}()/home/site/public_html/wp-content/plugins/wp-views/application/controllers/main.php:156
2. WPV_Main->on_init('')/home/site/public_html/wp-includes/class-wp-hook.php:303
3. WP_Hook->apply_filters(null, Array(1))/home/site/public_html/wp-includes/class-wp-hook.php:327
4. WP_Hook->do_action(Array(1))/home/site/public_html/wp-includes/plugin.php:470
5. do_action('init')/home/site/public_html/wp-settings.php:578
6. require_once('/home/site/publi...')/home/site/public_html/wp-config.php:88
7. require_once('/home/site/publi...')/home/site/public_html/wp-load.php:50
8. require_once('/home/site/publi...')/home/site/public_html/wp-blog-header.php:13
9. require('/home/site/publi...')/home/site/public_html/index.php:17
Context
URL /wp-json/ToolsetBlocks/Rest/API/v1/MediaObject?_locale=user
Notice: require_once(): read of 823 bytes failed with errno=12 Cannot allocate memory in /home/site/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/bootstrap.php on line 389
Stack Trace
1. require_once()/home/site/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/bootstrap.php:389
2. Toolset_Common_Bootstrap->register_inc()/home/site/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/bootstrap.php:94
3. Toolset_Common_Bootstrap->__construct()/home/site/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/bootstrap.php:126
4. Toolset_Common_Bootstrap::get_instance()/home/site/public_html/wp-content/plugins/types/application/controllers/main.php:171
5. Types_Main->after_setup_theme('')/home/site/public_html/wp-includes/class-wp-hook.php:303
6. WP_Hook->apply_filters(null, Array(1))/home/site/public_html/wp-includes/class-wp-hook.php:327
7. WP_Hook->do_action(Array(1))/home/site/public_html/wp-includes/plugin.php:470
8. do_action('after_setup_theme')/home/site/public_html/wp-settings.php:556
9. require_once('/home/site/publi...')/home/site/public_html/wp-config.php:88
10. require_once('/home/site/publi...')/home/site/public_html/wp-load.php:50
11. require_once('/home/site/publi...')/home/site/public_html/wp-blog-header.php:13
12. require('/home/site/publi...')/home/site/public_html/index.php:17
Context
URL /wp-json/ToolsetBlocks/Rest/API/v1/ShortcodeRender?_locale=user
Fatal error: require_once(): Failed opening required '/home/site/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/inc/public_api/loader.php' (include_path='/home/site/public_html/wp-content/plugins/backwpup/vendor/pear/archive_tar:/home/site/public_html/wp-content/plugins/backwpup/vendor/pear/console_getopt:/home/site/public_html/wp-content/plugins/backwpup/vendor/pear/pear-core-minimal/src:/home/site/public_html/wp-content/plugins/backwpup/vendor/pear/pear_exception:.:/opt/alt/php74/usr/share/pear') in /home/site/public_html/wp-content/plugins/types/vendor/toolset/toolset-common/bootstrap.php on line 389
Context
URL /wp-json/wp/v2/blocks?context=edit&per_page=100&_locale=user
***************************************************************************************************************
I noticed another symptom that may or may not be related to whatever is going on. When I edit a Toolset Image block, now the dropdown for choosing image size under "Image Settings" does not load/appear.
I did a test to insert a dynamic image in a new blank post, and I get the error below (and again no option to edit the image size). If I insert a non-Dynamic image, the "Image Size" option for the block takes a little while to appear, but it does show up eventually.
Also, my Redirection plugin logs 404s whenever I load a post with a dynamic image (source URL /wp-admin/[tb-dynamic%20provider='custom_post_type|rpg-products|453'%20post='current'%20source='medi).
And I see the following notice on the post itself: "Something went wrong while fetching the dynamic content from the selected source, with message: "<p>There has been a critical error on this website.</p><p>Learn more about troubleshooting WordPress.</p>"."
If you think these are unrelated issues, let me know if I should start a separate ticket for the Dynamic Sources image problem!
Notice: Trying to get property 'post_type' of non-object in /home/site/public_html/wp-content/themes/genesis/lib/classes/class-genesis-script-loader.php on line 376
Stack Trace
1. Genesis_Script_Loader->visible_genesis_sidebar_panels()/home/site/public_html/wp-content/themes/genesis/lib/classes/class-genesis-script-loader.php:94
2. Genesis_Script_Loader->enqueue_block_editor_scripts('')/home/site/public_html/wp-includes/class-wp-hook.php:303
3. WP_Hook->apply_filters(null, Array(1))/home/site/public_html/wp-includes/class-wp-hook.php:327
4. WP_Hook->do_action(Array(1))/home/site/public_html/wp-includes/plugin.php:470
5. do_action('enqueue_block_editor_a...')/home/site/public_html/wp-content/plugins/wp-views/vendor/toolset/dynamic-sources/server/Rest/GetSource.php:75
6. Toolset\DynamicSources\Rest\GetSource->get_source(WP_REST_Request)/home/site/public_html/wp-includes/rest-api/class-wp-rest-server.php:1140
7. WP_REST_Server->respond_to_request(WP_REST_Request, '/toolset-dynamic-sourc...', Array(7), null)/home/site/public_html/wp-includes/rest-api/class-wp-rest-server.php:987
8. WP_REST_Server->dispatch(WP_REST_Request)/home/site/public_html/wp-includes/rest-api/class-wp-rest-server.php:414
9. WP_REST_Server->serve_request('/toolset-dynamic-sourc...')/home/site/public_html/wp-includes/rest-api.php:370
10. rest_api_loaded(WP)/home/site/public_html/wp-includes/class-wp-hook.php:303
11. WP_Hook->apply_filters('', Array(1))/home/site/public_html/wp-includes/class-wp-hook.php:327
12. WP_Hook->do_action(Array(1))/home/site/public_html/wp-includes/plugin.php:518
13. do_action_ref_array('parse_request', Array(1))/home/site/public_html/wp-includes/class-wp.php:388
14. WP->parse_request('')/home/site/public_html/wp-includes/class-wp.php:750
15. WP->main('')/home/site/public_html/wp-includes/functions.php:1291
16. wp()/home/site/site/wp-blog-header.php:16
17. require('/home/site/publi...')/home/site/public_html/index.php:17
Context
URL /wp-json/toolset-dynamic-sources/v1/get-source?post_type=rpg-products&post_id=453&_locale=user
***************************************************************************************************************
So, I guess clearing the cache for all Views seems to have resolved the error from my original post, but there still clearly seems to be something wrong!
I'd be glad to hear any other thoughts you may have on what I can try to troubleshoot this further.
Again today my site has maxed out its memory resource limit on the host after just a few attempts to edit some posts while testing, so the host limitation may be causing some of these errors, but something is causing the spikes in memory usage to get it limited in the first place!
Hope you can help! I'm happy to provide access to or a copy of the site.
Thanks!
Sarah