elementor / elementor

The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.
https://elementor.com/
GNU General Public License v3.0
6.58k stars 1.42k forks source link

⛔ 🐞 Bug Report: "Preview dynamic content as" not possible in container templates #22146

Closed Overbord closed 1 year ago

Overbord commented 1 year ago

Prerequisites

Description

When you create a container template, it is not possible to choose to preview the dynamic content in the template as a specific page or post.

This makes developing containers for post loops or containers virtually impossible.

Steps to reproduce

1) Create a container template 2) Add a featured image 3) The image doesn't load, because there is no option to choose to preview the dynamic content as a specific post

Isolating the problem

System Info

System Info ````txt == Server Environment == Operating System: Linux Software: Apache MySQL version: mariadb.org binary distribution v10.4.21 PHP Version: 7.4.23 PHP Memory Limit: 256M PHP Max Input Vars: 1000 PHP Max Post Size: 100M GD Installed: Yes ZIP Installed: Yes Write Permissions: All right Elementor Library: Connected == WordPress Environment == Version: 6.2 Site URL: https://nelhydrogen.com Home URL: https://nelhydrogen.com WP Multisite: No Max Upload Size: 100 MB Memory limit: 256M Max Memory limit: 1024M Permalink Structure: /%postname%/ Language: en-GB Timezone: Europe/Oslo Admin Email: wordpress@overbord.no Debug Mode: Inactive == Theme == Name: Overbord - Nel Hydrogen Version: 1.0.1 Author: Overbord Design Child Theme: Yes Parent Theme Name: Hello Elementor Parent Theme Version: 2.7.1 Parent Theme Author: Elementor Team == User == Role: administrator WP Profile lang: en_GB User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0 == Active Plugins == Admin Menu Editor Version: 1.11 Author: Janis Elsts Advanced Custom Fields: Table Field Version: 1.3.20 Author: Johann Heyne Advanced Custom Fields PRO Version: 6.1.4 Author: WP Engine Broken Link Checker Version: 2.0.0 Author: WPMU DEV Classic Editor Version: 1.6.3 Author: WordPress Contributors Complianz | GDPR/CCPA Cookie Consent Version: 6.4.3 Author: Really Simple Plugins Custom Post Type UI Version: 1.13.5 Author: WebDevStudios Duplicate Page Version: 4.5.1 Author: mndpsingh287 Dynamic.ooo - Dynamic Content for Elementor Version: 2.9.2 Author: Dynamic.ooo Elementor Version: 3.12.1 Author: Elementor.com Elementor Pro Version: 3.12.2 Author: Elementor.com Envira Gallery Version: 1.9.5 Author: Envira Gallery Team Envira Gallery - Gallery Themes Addon Version: 2.0.4 Author: Envira Gallery Team Envira Gallery - Schedule Addon Version: 1.2.3 Author: Envira Gallery Team Health Check & Troubleshooting Version: 1.6.0 Author: The WordPress.org community LiteSpeed Cache Version: 5.3.3 Author: LiteSpeed Technologies Piotnet Addons For Elementor Pro Version: 7.1.1 Author: Piotnet Team PublishPress Capabilities Pro Version: 2.6.0 Author: PublishPress Really Simple SSL Version: 6.2.4 Author: Really Simple Plugins Really Simple SSL Pro Version: 6.2.4 Author: Really Simple Plugins Redirection Version: 5.3.10 Author: John Godley Relevanssi Version: 4.18.4 Author: Mikko Saari Search & Filter - Elementor Extension Version: 1.2.1 Author: Code Amp Search & Filter Pro Version: 2.5.14 Author: Code Amp Site Kit by Google Version: 1.98.0 Author: Google The SEO Framework Version: 4.2.8 Author: The SEO Framework Team Wordfence Security Version: 7.9.2 Author: Wordfence WordPress Automatic Plugin Version: 3.69.0 Author: ValvePress WP Activity Log Version: 4.5.0 Author: WP White Security WP Mail SMTP Version: 3.7.0 Author: WPForms == Must-Use Plugins == Health Check Troubleshooting Mode Version: 1.7.2 Author: == Elements Usage == container : 3 button : 1 call-to-action : 1 container : 5 heading : 3 image : 1 footer : 1 container : 4 heading : 2 social-icons : 1 text-editor : 1 header : 3 burger_menu-copy : 1 container : 6 image : 1 nav-menu : 3 section : 104 burger_menu-copy : 1 button : 15 call-to-action : 1 container : 3 divider : 7 heading : 104 html : 2 icon-box : 3 icon-list : 2 image : 21 image-box : 3 pafe-form-builder-field : 23 pafe-form-builder-submit : 2 shortcode : 1 social-icons : 3 spacer : 6 text-editor : 11 video : 2 wp-page : 44 accordion : 1 button : 22 container : 68 counter : 6 dce-dynamicposts-v2 : 3 divider : 19 heading : 116 html : 1 icon-box : 20 icon-list : 7 image : 31 loop-carousel : 1 pafe-form-builder-field : 23 pafe-form-builder-submit : 1 posts : 1 shortcode : 2 social-icons : 1 spacer : 2 text-editor : 37 video : 1 wizard-slider : 1 single-post : 11 button : 1 dyncontel-acf-relation : 1 heading : 7 image : 2 pafe-form-builder-field : 8 pafe-form-builder-submit : 1 shortcode : 1 text-editor : 2 theme-post-content : 2 video : 1 loop-item : 2 button : 1 container : 3 heading : 3 image : 1 == Settings == cpt_support: post, page, press_release, market, articles disable_color_schemes: yes allow_tracking: yes unfiltered_files_upload: 1 == Features == Custom Fonts: 4 Custom Icons: 0 == Integrations == == Elementor Experiments == Optimised DOM Output: Active Improved asset loading: Active Improved CSS Loading: Active Inline Font Icons: Inactive by default Accessibility improvements: Active by default Additional Custom Breakpoints: Active by default admin_menu_rearrangement: Inactive by default Flexbox Container: Active Upgrade Swiper Library: Inactive by default Default to New Theme Builder: Inactive Hello Theme Header & Footer: Inactive by default Editor Top Bar: Inactive by default Landing pages: Inactive Nested Elements: Inactive by default Lazy Load Background Images: Inactive by default Page Transitions: Active by default Notes: Active by default Loop: Active by default Form Submissions: Active by default Scroll Snap: Active by default Menu: Inactive by default == Log == Log: showing 20 of 312023-03-21 09:47:24 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.9.2', 'to' => '3.11.6', )] 2023-03-28 09:17:25 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Dynamic.ooo - Dynamic Content for Elementor', 'from' => '2.8.12', 'to' => '2.9.1', )] 2023-03-28 09:17:27 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.11.6', 'to' => '3.11.7', )] 2023-03-28 09:17:29 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Dynamic.ooo - Dynamic Content for Elementor', 'from' => '2.8.12', 'to' => '2.9.1', )] 2023-03-28 09:17:32 [info] elementor-pro::elementor_pro_updater Started 2023-03-28 09:17:32 [info] Elementor Pro/Upgrades - _on_each_version Start 2023-03-28 09:17:32 [info] Elementor Pro/Upgrades - _on_each_version Finished 2023-03-28 09:17:32 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.11.6', 'to' => '3.11.7', )] 2023-03-28 09:17:32 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.11.6', 'to' => '3.11.7', )] 2023-04-11 10:51:05 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Dynamic.ooo - Dynamic Content for Elementor', 'from' => '2.9.1', 'to' => '2.9.2', )] 2023-04-11 10:51:08 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Dynamic.ooo - Dynamic Content for Elementor', 'from' => '2.9.1', 'to' => '2.9.2', )] 2023-04-11 10:56:12 [info] elementor::elementor_updater Started 2023-04-11 10:56:12 [info] Elementor/Upgrades - _on_each_version Start 2023-04-11 10:56:13 [info] Elementor/Upgrades - _on_each_version Finished 2023-04-11 10:56:13 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '3.11.5', 'to' => '3.12.1', )] 2023-04-12 09:27:23 [info] elementor-pro::elementor_pro_updater Started 2023-04-12 09:27:23 [info] Elementor Pro/Upgrades - _on_each_version Start 2023-04-12 09:27:23 [info] Elementor Pro/Upgrades - _on_each_version Finished 2023-04-12 09:27:23 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.11.7', 'to' => '3.12.2', )] 2023-04-12 09:27:25 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.11.7', 'to' => '3.12.2', )] PHP: showing 9 of 9PHP: 2023-03-21 09:33:32 [warning X 10][/var/www/html/wp-content/plugins/elementor/core/files/manager.php::111] unlink(/var/www/html/wp-content/uploads/elementor/css/min): Is a directory [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] PHP: 2023-03-22 09:11:38 [notice X 6][/var/www/html/wp-content/plugins/elementor/app/modules/import-export/module.php::629] Trying to get property 'label' of non-object [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] PHP: 2023-03-27 11:48:32 [notice X 43][/var/www/html/wp-content/plugins/elementor/includes/widgets/video.php::1236] Trying to access array offset on value of type null [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] PHP: 2023-03-28 09:18:07 [error X 1][/var/www/html/wp-content/plugins/elementor-pro/modules/query-control/module.php::939] Uncaught Error: Class 'ElementorPro\Modules\QueryControl\Classes\Elementor_Post_Query' not found in /var/www/html/wp-content/plugins/elementor-pro/modules/query-control/module.php:939 Stack trace: #0 /var/www/html/wp-content/plugins/elementor-pro/modules/posts/widgets/posts.php(72): ElementorPro\Modules\QueryControl\Module->get_query(Object(ElementorPro\Modules\Posts\Widgets\Posts), 'posts', Array, Array) #1 /var/www/html/wp-content/plugins/elementor-pro/modules/posts/skins/skin-base.php(846): ElementorPro\Modules\Posts\Widgets\Posts->query_posts() #2 /var/www/html/wp-content/plugins/elementor/includes/base/skin-base.php(79): ElementorPro\Modules\Posts\Skins\Skin_Base->render() #3 /var/www/html/wp-content/plugins/elementor/includes/base/widget-base.php(607): Elementor\Skin_Base->render_by_mode() #4 /var/www/html/wp-content/plugins/elementor/includes/base/widget-base.php(750): Elementor\Widget_Base->render_content() #5 /var/www/html/wp-content/plugins/elementor/includes/base/element-base.php(449): Elementor\Wi [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] PHP: 2023-04-11 10:51:06 [warning X 1][/var/www/html/wp-content/plugins/elementor/core/files/manager.php::111] unlink(/var/www/html/wp-content/uploads/elementor/css/post-9938.css): No such file or directory [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] PHP: 2023-04-11 10:51:06 [warning X 1][/var/www/html/wp-content/plugins/elementor/core/files/manager.php::111] unlink(/var/www/html/wp-content/uploads/elementor/css/post-40827.css): No such file or directory [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] PHP: 2023-04-18 15:44:33 [notice X 4][/var/www/html/wp-content/plugins/elementor/core/common/modules/ajax/module.php::175] Undefined index: data [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] PHP: 2023-04-19 15:17:17 [notice X 4][/var/www/html/wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php::150] Undefined index: condition_type [array ( 'trace' => ' #0: /var/www/html/wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(150): Elementor\Core\Logger\Manager -> rest_error_handler() #1: ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> normalize_template_json_item() #2: /var/www/html/wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(120): class type array_map() #3: /var/www/html/wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(59): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> normalize_templates_json() #4: /var/www/html/wp-content/plugins/elementor/data/base/endpoint.php(158): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> get_items() ', )] PHP: 2023-04-19 16:20:23 [notice X 4][/var/www/html/wp-content/plugins/elementor/includes/managers/image.php::108] Trying to access array offset on value of type bool [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] JS: showing 2 of 2JS: 2023-04-19 11:57:43 [error X 1][https://nelhydrogen.com/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.12.1:3:632638] this.view.container is undefined JS: 2023-04-19 14:00:57 [error X 3][https://nelhydrogen.com/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.12.1:3:1062413] Element type not found: 'ucaddon_burger_menu_and_sidebar' == Elementor - Compatibility Tag == Dynamic.ooo - Dynamic Content for Elementor: Compatible Elementor Pro: Incompatible Piotnet Addons For Elementor Pro: Compatible Search & Filter - Elementor Extension: Incompatible == Elementor Pro - Compatibility Tag == Dynamic.ooo - Dynamic Content for Elementor: Compatible Piotnet Addons For Elementor Pro: Compatible Search & Filter - Elementor Extension: Incompatible ````
nicholaszein commented 1 year ago

Hello @Overbord,

Thank you for reaching out! 🙏

⛔ While reviewing your report we concluded this is not an issue caused by Elementor. Here's what we found out:

This option is only available for Theme Builder Site Parts or Pop-ups and does not apply to Saved Templates such as Page templates (not to be confused with Single Page templates), Section templates, or Container templates.

✅ What you can do to solve your issue:

If you think this should be an Elementor feature, please submit a new 🚀 Feature Request, and we will consider it in the future if there is enough demand (votes) from other users.

👍 For now, that's all we can help with.

Kind regards