MB Views error
- This topic has 1 reply, 2 voices, and was last updated 3 years, 8 months ago by
Long Nguyen.
-
AuthorPosts
-
August 5, 2021 at 11:04 PM #29934
PAUL TUNNICLIFFE
ParticipantHi I'm createing a plugin that makes custom post types using metabox. I'm then trying to link the front end using elementor. currently when I have MB views (specifically) or Metabox AIO open, when entering a specific custom post type elementor can't recreate the preview of that single post template. CLicking the debug info I recieve.
Fatal error: Uncaught MetaBox\Dependencies\Twig\Error\SyntaxError: Unexpected end of template in "vehicle-singular" at line 15. in /opt/lampp/htdocs/wordpress/staging/wp-content/plugins/mb-views/dependencies/Twig/TokenStream.php:50 Stack trace: #0 /opt/lampp/htdocs/wordpress/staging/wp-content/plugins/mb-views/dependencies/Twig/TokenParser/ForTokenParser.php(43): MetaBox\Dependencies\Twig\TokenStream->next() #1 /opt/lampp/htdocs/wordpress/staging/wp-content/plugins/mb-views/dependencies/Twig/Parser.php(171): MetaBox\Dependencies\Twig\TokenParser\ForTokenParser->parse(Object(MetaBox\Dependencies\Twig\Token)) #2 /opt/lampp/htdocs/wordpress/staging/wp-content/plugins/mb-views/dependencies/Twig/Parser.php(84): MetaBox\Dependencies\Twig\Parser->subparse(NULL, false) #3 /opt/lampp/htdocs/wordpress/staging/wp-content/plugins/mb-views/dependencies/Twig/Environment.php(479): MetaBox\Dependencies\Twig\Parser->parse(Object(MetaBox\Dependencies\Twig\TokenStream)) #4 /opt/lampp/htdocs/wordpress/staging/wp-content/plugins/mb-views/depe in /opt/lampp/htdocs/wordpress/staging/wp-content/plugins/mb-views/dependencies/Twig/TokenStream.php on line 50
Uncaught MetaBox\Dependencies\Twig\Error\SyntaxError: Unexpected end of template in "vehicle-singular" at line 15. in /opt/lampp/htdocs/wordpress/staging/wp-content/plugins/mb-views/dependencies/Twig/TokenStream.php:50
Stack trace:
#0 /opt/lampp/htdocs/wordpress/staging/wp-content/plugins/mb-views/dependencies/Twig/TokenParser/ForTokenParser.php(43): MetaBox\Dependencies\Twig\TokenStream->next()
#1 /opt/lampp/htdocs/wordpress/staging/wp-content/plugins/mb-views/dependencies/Twig/Parser.php(171): MetaBox\Dependencies\Twig\TokenParser\ForTokenParser->parse(Object(MetaBox\Dependencies\Twig\Token))
#2 /opt/lampp/htdocs/wordpress/staging/wp-content/plugins/mb-views/dependencies/Twig/Parser.php(84): MetaBox\Dependencies\Twig\Parser->subparse(NULL, false)
#3 /opt/lampp/htdocs/wordpress/staging/wp-content/plugins/mb-views/dependencies/Twig/Environment.php(479): MetaBox\Dependencies\Twig\Parser->parse(Object(MetaBox\Dependencies\Twig\TokenStream))
#4 /opt/lampp/htdocs/wordpress/staging/wp-content/plugins/mb-views/depeI had this when I loaded a custom made single-vehicle.php and archive-vehicle.php
This even occurred when I duplicatd the single.php and archive.php from the hello theme folder.Can you advise what this error is please?
August 6, 2021 at 3:36 PM #29960Long Nguyen
ModeratorHi Paul,
If you assign a View to a specific post type location, Elementor might not preview to edit this post because the View template will override the post template of the theme. If you want to use Elementor to edit that post type, please set the View location to Shortcode then add the shortcode to Elementor builder.
-
AuthorPosts
- You must be logged in to reply to this topic.