Skip Navigation

[Resolved] Unable to use the view plugin to create a new view

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

Problem: I am using the Block Editor on my site and trying to create a new View using the View block. Unfortunately I only have the ability to use an existing View, because there is no option to create a new View in the View block.

Solution: It seems that the Editing Experience setting in Toolset > Settings > General tab was set to "Show only the legacy interface for designing with shortcodes." Instead, you should choose to show both the legacy interface and the blocks interface if you want to be able to use both the shortcode editor and the blocks editor to create new Views.

0% of people find this useful.

This support ticket is created 4 years, 9 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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 9 replies, has 3 voices.

Last updated by marcoW 4 years, 9 months ago.

Assisted by: Christian Cox.

Author
Posts
#1771505
Capture.JPG

Tell us what you are trying to do? To use the Gutenberg editor to create a new view but it only allows me to use an existing view.

Is there any documentation that you are following? https://toolset.com/course-lesson/creating-a-view/?utm_source=typesplugin&utm_campaign=types&utm_medium=dashboard&utm_term=adding-views-to-layouts&utm_content=table

Is there a similar example that we can see? Yes

What is the link to your site? hidden link

#1772347

Hello, there are some places where it is not possible to create a new View using the Block Editor, like inside the loop of another View or inside the loop of a WordPress Archive designed with the Block Editor. Can you tell me more about where you are trying to create a new View? Is there another page builder involved, like Divi, WP Bakery Page Builder, or Beaver Builder? If you create a new Content Template in Toolset > Content Templates, is it possible to create a new View inside this new Content Template using the Block Editor?

It may be helpful for me to see some more information about your site setup. Please include your site's debug information in the debug fields as explained in the following link so I can see other site configurations in your next reply: https://toolset.com/faq/provide-debug-information-faster-support/

I'll review your reply and give you some additional feedback. Thank you!

#1774835

The problem is not yet resolved:
I first test your plugin on hidden link or hidden link, which work fine for me and I later move to another website domain: hidden link and I was unable to create a toolset view with the Gutenberg editor.

I really need this to work because the website I am developing is a repository website that will be used for Dissertations, Articles, Books, etc which will be used by students and academia all around my country, Sierra Leone.
I know toolset can do it easily and I will not like to use codes since the website is too big to code every view.

I come across this article: hidden link, is it true that the update of WordPress 5.5 directly hit Toolset?

#1774919

is it true that the update of WordPress 5.5 directly hit Toolset?
Yes, some minor issues were noticed by users who updated to WordPress 5.5, but most of those issues were resolved already by the update to 5.5.1 and the latest Toolset versions. However, none of these issues that were reported are similar to the problem you described.

I first test your plugin on hidden link or hidden link, which work fine for me and I later move to another website domain: hidden link and I was unable to create a toolset view with the Gutenberg editor.
That is strange. Is the hosting provider or server different for these domains? Normally a domain-name difference would not cause a problem like this in the post editor. If everything is identical on these two sites and the only difference is the server, this could indicate a caching problem or configuration issue on the server-side. We could check the server logs to see if there are any log messages that would indicate a problem. Are you familiar with server logs? If not, I can show you how to activate a server log temporarily to see if any error messages are logged. On the site where you are having trouble creating a new View in the Block Editor, go in your wp-config.php file and look for

define('WP_DEBUG', false);

Change it to:

define('WP_DEBUG', true);

Then add these lines, just after the WP_DEBUG line:

define('WP_DEBUG_LOG', dirname(__FILE__) . '/error_log.txt');
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
define('WP_DISABLE_FATAL_ERROR_HANDLER',true);

Upload this file to your server and it will enable a debug log. Then go back to the same location where you experienced the problem in wp-admin and try to create a View again. If any server-side errors are triggered during this process, it will create an error_log.txt file in your site's root directory. Use FTP to look for this file in the same directory as wp-config.php. You may need to click "Refresh" in your FTP browser to see a new file appear. If an error_log.txt file appears, please download this file to your computer, open it in any text editing software, and copy its contents. Paste those contents in your next reply. Once that is done, you can revert the changes you made to wp-config.php and delete the log file using FTP.

If no error_log.txt file is created, please try a few other troubleshooting steps on the site where you are having trouble creating a new View in Gutenberg:
- Temporarily activate a default theme like Twenty Twenty
- Temporarily deactivate all plugins except Types and Blocks
- Test again
- If the problem is resolved, reactivate your theme and other plugins one by one, testing each time, until the problem returns.
- If the problem is not resolved, I'll need to log in and take a closer look.

Please let me know what you find out and we can continue investigating.

#1775003

Oh I just realized that there is a setting that may be responsible for this behavior. Please go to Toolset > Settings > General tab and look for the "Editing experience" option. If the option "Show only the legacy interface for designing with shortcodes" is selected, try another option like "Show both the legacy and Blocks interface and let me choose which to use for each item I build". This will allow you to create a new View using the Block Editor, and will also allow you to create new Views using the classic Views builder.

#1777371

Please take a look for me, and see if you can resolve it from the backend. My biggest problem is to use the Gutenberg editor to create a new view.

This project will benefit thousands of students and academicians in my country. Please help and thanks.

#1777991
Screen Shot 2020-09-15 at 6.01.01 PM.png

Yes, the setting in your Toolset > Settings > General tab was set to "Show only the legacy interface for designing with shortcodes", hence the problem you described. There's no bug or anything to worry about, it's just a configuration setting. I changed the setting and I can now create a new View in the Block Editor (screenshot attached).

#1780051

Thanks very much! Everything works fine now.

#1780071

My issue is resolved now. Thank you!

#1784313

Hi! After the latest updates the Views plugin does crash the site. I get this error message. Please help, thanks! Marco
Fatal error: Uncaught ReflectionException: Class \OTGS\Toolset\Views\Controller\Shortcode\Resolver does not exist in /usr/local/www/apache24/noexec/gemeindemils/mils-tirol.at/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/lib/auryn/lib/CachingReflector.php:27 Stack trace: #0 /usr/local/www/apache24/noexec/gemeindemils/mils-tirol.at/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/lib/auryn/lib/CachingReflector.php(27): ReflectionClass->__construct('\\OTGS\\Toolset\\V...') #1 /usr/local/www/apache24/noexec/gemeindemils/mils-tirol.at/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/lib/auryn/lib/CachingReflector.php(41): OTGS\Toolset\Common\Auryn\CachingReflector->getClass('\\OTGS\\Toolset\\V...') #2 /usr/local/www/apache24/noexec/gemeindemils/mils-tirol.at/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/lib/auryn/lib/Injector.php(389): OTGS\Toolset\Common\Auryn\CachingReflector->getCtor('\\OTGS\\Toolset\\V...') #3 /usr/local/www/apache24 in /usr/local/www/apache24/noexec/gemeindemils/mils-tirol.at/wp-content/plugins/cred-frontend-editor/vendor/toolset/toolset-common/lib/auryn/lib/Injector.php on line 412