Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

βœ… 🐞 Console shows missing CSS Stylesheet for the Loop Item template - [ED-13534] #24959

Closed
6 tasks done
samuelmente opened this issue Jan 29, 2024 · 22 comments
Closed
6 tasks done
Labels
bug Indicates a bug with one or multiple components. compatibility/assets Indicates a compatibility problem with scripts or CSS. mod/e* product/pro Indicates if the referenced component is part of the Elementor Pro plugin. solved Indicates that an Issue has been Solved, or a Feature Request has been Released. status/merged Indicates when a Pull Request has been merged to a Release. type/styles Indicates when a topic is related to the styles or design of a component. widget/loop-builder/item-template References Loop Item templates for the Loop Builder (Pro) component. widget/loop-builder References the Loop Grid (Pro) widget and any related components.

Comments

@samuelmente
Copy link

samuelmente commented Jan 29, 2024

Prerequisites

  • I have searched for similar issues in open and closed tickets and cannot find a duplicate.
  • I have troubleshooted my issue, and it still exists against the latest stable version of Elementor.

Description

Since the Update to Elementor Pro 3.19.0, for loops 2 css-Sheets are included for each loop:

  1. loop-.css (example: loop-123.css)
  2. post-.css (example: loop-123.css)

loop-123.css is properly loaded while post-123.css can't be found (404).

I think that you added a change with the update to include the css for loops as "loop-id.css" instead of "post-id.css" to better differentiate them, but somewhere in the code probably forgot to remove the call for the old naming scheme.

Steps to reproduce

  1. Update to Elementor Pro 3.19.0
  2. Go to a page with a loop-grid
  3. Go into the Dev-Tools and see that a stylesheet can't be loaded, because it can't be found

Expected behavior

  1. Update to Elementor Pro 3.19.0
  2. Go to a page with a loop-grid
  3. Go into the Dev-Tools and see that there are no errors

Isolating the problem

  • This bug happens when only the Elementor (and Elementor Pro) plugins are active.
  • This bug happens with the Hello Elementor theme active.
  • I can reproduce this bug consistently by following the steps I described above.

Elementor System Info

Click to reveal
== Server Environment ==
	Operating System: Linux
	Software: nginx/1.24.0
	MySQL version: mariadb.org binary distribution v10.11.6-MariaDB-1:10.11.6+maria~ubu2204
	PHP Version: 8.0.30
	PHP Memory Limit: 512M
	PHP Max Input Vars: 10000
	PHP Max Post Size: 2000M
	GD Installed: Yes
	ZIP Installed: Yes
	Write Permissions: All right
	Elementor Library: Connected

== WordPress Environment ==
	Version: 6.4.2
	Site URL: **redacted**
	Home URL: **redacted**
	WP Multisite: No
	Max Upload Size: 2 GB
	Memory limit: 512M
	Max Memory limit: 512M
	Permalink Structure: /%category%/%postname%/
	Language: de-DE
	Timezone: Europe/Berlin
	Debug Mode: Inactive

== Theme ==
	Name: Custom Hello Elementor Child Theme
	Version: 1.0.2
	Author: Samuel Mente
	Child Theme: Yes
	Parent Theme Name: Hello Elementor
	Parent Theme Version: 3.0.1
	Parent Theme Author: Elementor Team

== User ==
	Role: administrator
	WP Profile lang: de_DE
	User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

== Active Plugins ==
	ACF: Better Search
		Version: 4.2.0
		Author: Mateusz Gbiorczyk

	ACF Content Analysis for Yoast SEO
		Version: 3.1
		Author: Thomas KrΓ€ftner, ViktorFroberg, marol87, pekz0r, angrycreative, Team Yoast

	Advanced Custom Fields Multilingual
		Version: 2.0.5
		Author: OnTheGoSystems

	Advanced Custom Fields PRO
		Version: 6.2.5
		Author: WP Engine

	DynamicConditions
		Version: 1.6.2
		Author: RTO GmbH

	Elementor
		Version: 3.19.0
		Author: Elementor.com

	Elementor Pro
		Version: 3.19.0
		Author: Elementor.com

	FacetWP
		Version: 4.2.11
		Author: FacetWP, LLC

	FacetWP - A-Z Listing
		Version: 1.3.9
		Author: FacetWP, LLC

	FacetWP - Cache
		Version: 1.7
		Author: FacetWP, LLC

	FacetWP - Elementor
		Version: 1.9
		Author: FacetWP, LLC

	FacetWP - Multilingual support
		Version: 1.0.1
		Author: FacetWP, LLC

	FacetWP Schedule Indexer
		Version: 1.1
		Author: FacetWP, LLC

	Local Google Fonts
		Version: 0.22.0
		Author: EverPress

	MainWP Child
		Version: 4.6
		Author: MainWP

	Media Cleaner (Pro)
		Version: 6.7.0
		Author: Jordy Meow

	Redirection
		Version: 5.4.2
		Author: John Godley

	Simple Image Slider
		Version: 1.0.0
		Author: Cakewp

	Sticky Posts - Switch
		Version: 2.1.3
		Author: Markus Wiesenhofer

	Transients Manager
		Version: 2.0.5
		Author: WPBeginner

	WebP Express
		Version: 0.25.8
		Author: BjΓΈrn Rosell

	WP All Import - ACF Add-On
		Version: 3.3.8
		Author: Soflyy

	WP All Import Pro
		Version: 4.8.5
		Author: Soflyy

	WP Crontrol
		Version: 1.16.1
		Author: John Blackbourn & crontributors

	WP Mail SMTP Pro
		Version: 3.10.1
		Author: WP Mail SMTP

	WPML All Import
		Version: 2.3.0
		Author: OnTheGoSystems

	WPML Multilingual CMS
		Version: 4.6.9
		Author: OnTheGoSystems

	WPML SEO
		Version: 2.1.0
		Author: OnTheGoSystems

	WPML String Translation
		Version: 3.2.9
		Author: OnTheGoSystems

	Yoast Duplicate Post
		Version: 4.5
		Author: Enrico Battocchi & Team Yoast

	Yoast SEO
		Version: 21.9.1
		Author: Team Yoast

	Yoast SEO Premium
		Version: 21.7
		Author: Team Yoast


== Eigenschaften ==
	Custom Fonts: 1
	Custom Icons: 0

== Integrations ==
	
	recaptcha_v3: Aktiv


== Elementor-Experimente ==
	Verbessertes Laden von Assets: Aktiv
	Verbessertes Laden von CSS: Aktiv
	Inline-Schriftarten-Symbole: Inaktiv
	ZusΓ€tzliche benutzerdefinierte Breakpoints: Aktiv
	admin_menu_rearrangement: StandardmÀßig deaktiviert
	Flexbox Container: Aktiv
	Upgrade Swiper Library: Aktiv
	Grid Container: Aktiv
	Default to New Theme Builder: Inaktiv
	Hello Theme Header & Footer: Inaktiv
	Editor Top Bar: StandardmÀßig deaktiviert
	Optimized Gutenberg Loading: StandardmÀßig aktiviert
	Build with AI: StandardmÀßig aktiviert
	Startseiten: Aktiv
	Nested Elements: Aktiv
	Hintergrundbilder nachladen: StandardmÀßig deaktiviert
	Optimize Image Loading: StandardmÀßig aktiviert
	Globaler Styleguide: StandardmÀßig aktiviert
	Page Transitions: Inaktiv
	Notes: Inaktiv
	Bedingungen anzeigen: StandardmÀßig deaktiviert
	Form Submissions: Aktiv
	Scroll Snap: Inaktiv
	Menü: StandardmÀßig deaktiviert
	Taxonomy Filter: StandardmÀßig deaktiviert


== Protokoll ==
	
PHP: showing 4 of 4PHP: 2023-12-06 14:25:55 [warning X 1][../wp-content/plugins/elementor-pro/modules/dynamic-tags/acf/tags/acf-text.php::33] Undefined array key 1 [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2023-12-13 12:33:48 [warning X 16][../wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php::150] Undefined array key "condition_type" [array (
  'trace' => '
#0: ../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: ../wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(120): class type array_map()
#3: ../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: ../wp-content/plugins/elementor/data/base/endpoint.php(158): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> get_items()
',
)]
PHP: 2024-01-17 14:36:19 [warning X 2][../wp-content/plugins/elementor-pro/modules/posts/skins/skin-content-base.php::265] Attempt to read property "ID" on null [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-01-24 13:47:10 [warning X 1][../wp-content/plugins/elementor/modules/history/revisions-manager.php::363] Undefined array key "editor_post_id" [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]

Log: showing 20 of 342023-12-27 17:03:31 [info] Elementor data updater process has been queued. [array (
  'plugin' => 'Elementor Pro',
  'from' => '3.18.1',
  'to' => '3.18.2',
)]
2023-12-27 17:05:04 [info] elementor::elementor_updater Started 
2023-12-27 17:05:04 [info] Elementor/Upgrades - _on_each_version Start  
2023-12-27 17:05:04 [info] Elementor/Upgrades - _on_each_version Finished 
2023-12-27 17:05:04 [info] Elementor data updater process has been completed. [array (
  'plugin' => 'Elementor',
  'from' => '3.18.2',
  'to' => '3.18.3',
)]
2023-12-27 17:05:05 [info] Elementor data updater process has been queued. [array (
  'plugin' => 'Elementor',
  'from' => '3.18.2',
  'to' => '3.18.3',
)]
2024-01-23 09:38:33 [info] elementor-pro::elementor_pro_updater Started 
2024-01-23 09:38:33 [info] Elementor Pro/Upgrades - _on_each_version Start  
2024-01-23 09:38:33 [info] Elementor Pro/Upgrades - _on_each_version Finished 
2024-01-23 09:38:33 [info] Elementor data updater process has been completed. [array (
  'plugin' => 'Elementor Pro',
  'from' => '3.18.2',
  'to' => '3.18.3',
)]
2024-01-29 14:44:04 [info] Elementor data updater process has been queued. [array (
  'plugin' => 'Elementor Pro',
  'from' => '3.18.3',
  'to' => '3.19.0',
)]
2024-01-29 14:44:08 [info] elementor-pro::elementor_pro_updater Started 
2024-01-29 14:44:08 [info] Elementor Pro/Upgrades - _on_each_version Start  
2024-01-29 14:44:08 [info] Elementor Pro/Upgrades - _on_each_version Finished 
2024-01-29 14:44:08 [info] Elementor data updater process has been completed. [array (
  'plugin' => 'Elementor Pro',
  'from' => '3.18.3',
  'to' => '3.19.0',
)]
2024-01-29 14:44:10 [info] Elementor data updater process has been queued. [array (
  'plugin' => 'Elementor Pro',
  'from' => '3.18.3',
  'to' => '3.19.0',
)]
2024-01-29 14:53:28 [info] elementor::elementor_updater Started 
2024-01-29 14:53:28 [info] Elementor/Upgrades - _on_each_version Start  
2024-01-29 14:53:28 [info] Elementor/Upgrades - _on_each_version Finished 
2024-01-29 14:53:28 [info] Elementor data updater process has been completed. [array (
  'plugin' => 'Elementor',
  'from' => '3.18.3',
  'to' => '3.19.0',
)]

JS: showing 5 of 5JS: 2024-01-16 14:18:30 [error X 1][../wp-content/plugins/elementor/assets/js/4fdaa70e951ad90db2f2.bundle.min.js:2:7786] Cannot read properties of null (reading 'dataset') 
JS: 2024-01-16 14:21:42 [error X 1][../wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.18.3:3:695662] Cannot read properties of undefined (reading 'get') 
JS: 2024-01-23 12:42:32 [error X 3][../wp-content/plugins/elementor/assets/js/4fdaa70e951ad90db2f2.bundle.min.js:2:7998] Cannot read properties of undefined (reading 'view') 
JS: 2024-01-25 11:25:24 [error X 1][../wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.18.3:3:690111] this.model.isValidChild is not a function 
JS: 2024-01-26 11:34:51 [error X 1][../wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.18.3:3:640700] Cannot read properties of undefined (reading 'isDesignable') 



== Elementor - Compatibility Tag ==
	
	Elementor Pro: Die KompatibilitΓ€t ist nicht angegeben
	FacetWP - Elementor: Die KompatibilitΓ€t ist nicht angegeben

== Elementor Pro - Compatibility Tag ==

Agreement

  • I agree that my issue may be closed without action if it doesn't meet all the requirements.
@samuelmente samuelmente added the status/awaiting_triage Indicates when an Issue, Pull Request, or Discussion awaits to be triaged. label Jan 29, 2024
@nicholaszein nicholaszein changed the title 2 Style-Sheets being called for loops with one not being found since Elementor Pro 3.19.0 βŒ› 🐞 2 Style-Sheets being called for loops with one not being found since Elementor Pro 3.19.0 Jan 29, 2024
@nicholaszein nicholaszein added product/pro Indicates if the referenced component is part of the Elementor Pro plugin. status/needs-feedback Indicates when an Issue, Pull Request, or Discussion awaits Feedback from the poster. type/styles Indicates when a topic is related to the styles or design of a component. compatibility/assets Indicates a compatibility problem with scripts or CSS. widget/loop-builder References the Loop Grid (Pro) widget and any related components. widget/loop-builder/item-template References Loop Item templates for the Loop Builder (Pro) component. mod/e* and removed status/awaiting_triage Indicates when an Issue, Pull Request, or Discussion awaits to be triaged. labels Jan 29, 2024
@nicholaszein
Copy link
Member

Hi @samuelmente, thank you for sharing your feedback! πŸ™

Please Regenerate Elementor's CSS & Data in your WordPress Dashboard > Elementor > Tools > General page, and clear/purge all levels of cache, including but not limited to server-side cache (static and object cache), website cache, CDN cache, and browser cache, and let me know if the issue is solved.

Kind regards

@samuelmente
Copy link
Author

Hi @nicholaszein
I already tried these steps on 2 completely different websites before submitting the bug. I tried regenerating CSS and purged all levels of cache. Did the same thing once again just now with the same result: the issue is still there.

@nicholaszein
Copy link
Member

Thank you for confirming this @samuelmente! πŸ™

I've escalated this to our QA Team and we will work on a fix if validated.

Best regards!

@nicholaszein nicholaszein added bug Indicates a bug with one or multiple components. and removed status/needs-feedback Indicates when an Issue, Pull Request, or Discussion awaits Feedback from the poster. labels Jan 29, 2024
@nicholaszein nicholaszein changed the title βŒ› 🐞 2 Style-Sheets being called for loops with one not being found since Elementor Pro 3.19.0 🐞 2 Style-Sheets being called for loops with one not being found since Elementor Pro 3.19.0 Jan 29, 2024
@stefanbiba
Copy link

stefanbiba commented Jan 30, 2024

I'm having the exact same issues with the latest version 3.19.0 on all my websites, which were working fine before updating. A rollback to 3.18.3. fixed the issue as a workaround.

@mcrowell
Copy link

+1 Same results on my end.

@giannisgx89
Copy link

+1

@nicholaszein nicholaszein changed the title 🐞 2 Style-Sheets being called for loops with one not being found since Elementor Pro 3.19.0 🐞 Console shows missing CSS Stylesheet for the Loop Item template - [ED-13534] Jan 31, 2024
@nicholaszein
Copy link
Member

Hello everyone, just an update:

While the console will show there are missing styles for Loop Item templates, these are still being loaded but with another file name. So this shouldn't affect anything on your websites and you can update to 3.19.0 securely without any worries.

A fix is on it's way! Thank you for sharing your feedback! πŸ™

@stefanbiba
Copy link

@nicholaszein Missing css files isn't the only issue as the performance with the latest update is so bad, that all pages with loop or slide items are getting really slow. I doubt the latest Wordpress core update will fix that.

@samuelmente
Copy link
Author

@nicholaszein It is definitely not only the issue of it being displayed in the console. It also directly affects performance, as the page will wait to continue running js and loading some elements until the stylesheet is loaded (or in this case until the server returns 404) which in case of my test pages can take >1 second. Following is a screenshot for reference. During that "waiting" time all Entrance Animations for example will not run potentially adding a long delay until elements are visible.

Timing

@sermalefico
Copy link

in my case i lost 4s big bug

@lensbreak
Copy link

+1 page seems suddenly to load forever

@KingGrizzly
Copy link

I can confirm the 404 loop error on multiple sites. Seems to occur in 3.18.3 as well.

@SKOR-DEV
Copy link

SKOR-DEV commented Feb 4, 2024

I encountered the same issue.

404 loop error

The thing is, if you don't add custom CSS to a loop item, this file is not really necessary. In my case, I simply disabled its loading through the Perfmatters Script Manager, and it worked for me. If additional CSS is needed, you can create your own file and load it where necessary.

perfmatters script manager

Another solution that worked for me was to use a plugin that allows setting a complete page template as a loop item. However, this was not as efficient and required an additional plugin.

A third option I considered but did not try involves manually creating a file at the missing URL. I'm not sure if this would work or what would happen after an Elementor update in such a case.

A fourth option is:

  1. Go to Elementor > Settings > Advanced.
  2. Find the CSS Print Method option and change it to Internal Embedding.

However, doing this means your CSS will not be loaded as separate files, and therefore they will not be cached. This could impact performance.

Everything needs to be checked individually. But if the error is not fixed, the site's speed significantly decreases due to the prolonged search for this style.

@jamieburchell
Copy link

jamieburchell commented Feb 5, 2024

A fix is on its way! Thank you for sharing your feedback! πŸ™

When? This is pretty bad as it's slowing down the rendering of pages.

@samuelmente
Copy link
Author

As of today with the release of Elementor Pro 3.19.1 it seems to be fixed.

@KingGrizzly
Copy link

Good job turning this one Elementor team.

@jamieburchell
Copy link

Is nobody else concerned that this wasn't picked up in testing and then took a week to fix with a few lines of code? I mean bugs happen, but it literally took a glance at either the browser console or network tab on a vanilla Elementor/pro install which uses a loop template.

@SKOR-DEV
Copy link

SKOR-DEV commented Feb 6, 2024

For me, the Elementor Pro 3.19.1 update solved the problem. Thank you for your prompt work!

@lachermeierm
Copy link

I use the "Dynamic Template Grid" widget from "Unlimited Elements for Elementor" in the Pro version to display loop items.

The update to Elementor Pro version 3.19.1 did not solve the problem of large gaps between the loop items or the missing stylesheet.

I have restored Elementor Pro version 3.18.3. There are no problems with this version.

@jamieburchell
Copy link

jamieburchell commented Feb 6, 2024

I use the "Dynamic Template Grid" widget from "Unlimited Elements for Elementor" in the Pro version to display loop items.

@lachermeierm If you haven't already, you should contact the authors of that plugin with your findings. They may need to make changes to make it compatible with 3.19.

@nicholaszein nicholaszein changed the title 🐞 Console shows missing CSS Stylesheet for the Loop Item template - [ED-13534] βœ… 🐞 Console shows missing CSS Stylesheet for the Loop Item template - [ED-13534] Feb 6, 2024
@nicholaszein nicholaszein added status/merged Indicates when a Pull Request has been merged to a Release. solved Indicates that an Issue has been Solved, or a Feature Request has been Released. labels Feb 6, 2024
@nicholaszein
Copy link
Member

Hello everyone!

We have great news! πŸ™Œ

πŸ“’ We're happy to announce that the issue you raised was resolved in Elementor Core and Pro v3.19.1! πŸ₯³

βœ… Feel free to check it out and update both plugins to the new version!

Check the changelog for more information:
Changelog of Elementor and Elementor Pro

Cheers πŸ₯‚

@nicholaszein
Copy link
Member

@lachermeierm.

Please reach out to Unlimited Elements and ask them to fix your issue.

@elementor elementor locked and limited conversation to collaborators Feb 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Indicates a bug with one or multiple components. compatibility/assets Indicates a compatibility problem with scripts or CSS. mod/e* product/pro Indicates if the referenced component is part of the Elementor Pro plugin. solved Indicates that an Issue has been Solved, or a Feature Request has been Released. status/merged Indicates when a Pull Request has been merged to a Release. type/styles Indicates when a topic is related to the styles or design of a component. widget/loop-builder/item-template References Loop Item templates for the Loop Builder (Pro) component. widget/loop-builder References the Loop Grid (Pro) widget and any related components.
Projects
None yet
Development

No branches or pull requests