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

❌ Post Navigation widget not compatible with cache object (wp-memcached) #27306

Open
6 tasks done
mbautista opened this issue May 13, 2024 · 2 comments
Open
6 tasks done
Labels
status/awaiting_triage Indicates when an Issue, Pull Request, or Discussion awaits to be triaged.

Comments

@mbautista
Copy link

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

Hello,

When using the Post navigation Elementor widget with object-cache.php from wp-memcached the Prev/Next links are not correct.

We use an action to display posts by menu_order, maybe the bug is related but not sure :

add_action( 'pre_get_posts', 'ircf_pre_get_posts');
function ircf_pre_get_posts($query){
    if ( is_admin() || ! $query->is_main_query() ) return;
    if ( is_tax('categorie_oeuvre') || is_post_type_archive('oeuvre') || $query->get('post_type') == 'oeuvre' ){
        $query->set( 'order', 'ASC' );
        $query->set( 'orderby', 'menu_order' );
    }
}

For now we had to disable de object caching on the impacted website.

Thank you very much :)
Mathieu.

Steps to reproduce

  1. Install and enable https://github.com/Automattic/wp-memcached (copy object-cache.php to wp-content)
  2. Create an Elementor single template with the Post Navigation Widget
  3. Create many posts
  4. Navigate to the front-end post pages : the Prev/Next links do not match the post order, sometimes the Prev/Next links point to the post itself

Expected behavior

The prev/next links should be displayed in the correct order.

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

== Server Environment ==
Linux Debian 11 / php 8.1
== Wordpress Environment ==
Wordpress 4.5
== Theme ==
Hello Elementor
== Active Plugins ==
Elementor
Elementor Pro
Wp Memcached (copied object-cache.php to wp-content)

Agreement

  • I agree that my issue may be closed without action if it doesn't meet all the requirements.
@mbautista mbautista added the status/awaiting_triage Indicates when an Issue, Pull Request, or Discussion awaits to be triaged. label May 13, 2024
@nicholaszein nicholaszein changed the title Post Navigation widget not compatible with cache object (wp-memcached) ❌ Post Navigation widget not compatible with cache object (wp-memcached) May 24, 2024
@nicholaszein
Copy link
Member

Hello @mbautista.

We appreciate your involvement in our community. For efficient troubleshooting, please remember to include the
FULL, and essential System Info
with each issue reported. We'll need it to help you effectively.

⚠️ As a gentle reminder, issues without it may need to be closed without troubleshooting. Providing this information upfront aligns with our guidelines, saves time, and ensures swift resolution. Thank you for understanding.

@mbautista
Copy link
Author

Hello @nicholaszein
You will find below the System info from the impacted website.


== Server Environment ==
	Operating System: Linux
	Software: nginx/1.22.0
	MySQL version: Debian 11 v10.5.23
	PHP Version: 8.1.28
	PHP Memory Limit: 1024M
	PHP Max Input Vars: 5000
	PHP Max Post Size: 128M
	GD Installed: Yes
	ZIP Installed: Yes
	Write Permissions: All right
	Elementor Library: Connected

== WordPress Environment ==
	Version: 6.4.4
	Site URL: https://frankgodille.fr
	Home URL: https://frankgodille.fr
	WP Multisite: Yes
	Max Upload Size: 100 Mo
	Memory limit: 64M
	Max Memory limit: 1024M
	Permalink Structure: /%year%/%monthnum%/%day%/%postname%/
	Language: fr_FR
	Timezone: Europe/Paris
	Admin Email: technique@ircf.fr
	Debug Mode: Active

== Theme ==
	Name: Frank Godille Elementor
	Version: 1.0
	Author: IRCF
	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: fr-FR
	User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0

== Active Plugins ==
	Cookie Notice & Compliance for GDPR / CCPA
		Version: 2.4.15
		Author: Hu-manity.co

	Dynamic.ooo - Dynamic Content for Elementor
		Version: 2.9.1
		Author: Dynamic.ooo

	Elementor
		Version: 3.20.0
		Author: Elementor.com

	Elementor Pro
		Version: 3.13.1
		Author: Elementor.com

	Enable Media Replace
		Version: 4.1.5
		Author: ShortPixel

	Essential Addons for Elementor
		Version: 5.9.15
		Author: WPDeveloper

	Essential Addons for Elementor - Pro
		Version: 5.4.10
		Author: WPDeveloper

	Pods - Custom Content Types and Fields
		Version: 3.1.4
		Author: Pods Framework Team

	Query Monitor
		Version: 3.15.0
		Author: John Blackbourn

	Resize At Upload Plus
		Version: 1.3
		Author: Daniel Mores, A. Huizinga

	Simple Custom Post Order
		Version: 2.5.7
		Author: Colorlib

	Yoast SEO
		Version: 22.2
		Author: Team Yoast


== Network Plugins ==
	Blog Copier
		Version: 1.0.7
		Author: Modern Tribe, Inc.

	Breadcrumb NavXT
		Version: 7.3.0
		Author: John Havlik

	Classic Editor
		Version: 1.6.3
		Author: WordPress Contributors

	Connect Matomo
		Version: 1.0.30
		Author: André Bräkling

	Disable new user email notifications
		Version: 1.0
		Author: 

	MU Migration
		Version: 0.3.1
		Author: Nícholas André, 10up

	Network Plugin Auditor
		Version: 1.10.1
		Author: Katherine Semel

	Nginx Helper
		Version: 2.2.4
		Author: rtCamp

	Prevent Password Reset
		Version: 0.2.0
		Author: Justin Tadlock

	ProActiv Theme
		Version: 0.1
		Author: IRCF

	Unfiltered MU
		Version: 1.3.1
		Author: Automattic

	Wordfence Security
		Version: 7.11.5
		Author: Wordfence

	WP fail2ban
		Version: 5.2.2.1
		Author: Charles Lecklider

	WP Super Cache
		Version: 1.12.0
		Author: Automattic


== Fonctionnalités ==
	Custom Fonts: 0
	Custom Icons: 0

== Intégrations ==
	
	recaptcha_v3: Actif


== Expériences d’Elementor ==
	Amélioration du chargement des ressources: Actif par défaut
	Optimisation du chargement du CSS: Inactif par défaut
	Polices d’icônes « inline »: Inactif par défaut
	Points d’arrêt personnalisés supplémentaires: Actif par défaut
	admin_menu_rearrangement: Inactif par défaut
	Conteneur Flexbox: Inactif par défaut
	Mettre à niveau la bibliothèque Swiper: Actif par défaut
	Conteneur grille: Inactif par défaut
	Par défaut vers le Nouveau constructeur de thème: Inactif
	En-tête et pied de page du thème Hello: Inactif par défaut
	Barre supérieure de l’éditeur: Inactif par défaut
	Chargement optimisé de Gutenberg: Actif par défaut
	Construire avec l’IA: Actif par défaut
	Page d’atterrissage: Actif par défaut
	Éléments imbriqués: Inactif par défaut
	Chargement différé des images d’arrière-plan: Inactif par défaut
	Optimiser le chargement des images: Actif par défaut
	Transitions des pages: Actif par défaut
	Notes: Actif par défaut
	Boucle: Actif par défaut
	Envois de formulaire: Actif par défaut
	Accroche de défilement: Actif par défaut
	Menu: Inactif par défaut


== Journal ==
	
JS: showing 7 of 7JS: 2022-11-07 10:18:45 [error X 27][http://frankgodille.proactiv.ircf.fr/wp-content/plugins/elementor/assets/lib/font-awesome/js/v4-shims.min.js?ver=5.3.2:1:1] redeclaration of let l 
JS: 2022-11-07 15:05:18 [error X 1][http://frankgodille.proactiv.ircf.fr/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.7.6:3:1060718] $ is null 
JS: 2022-11-07 15:28:13 [error X 10][http://frankgodille.proactiv.ircf.fr/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.7.6:3:767534] this.store.find(...) is undefined 
JS: 2022-11-07 15:30:25 [error X 28][http://frankgodille.proactiv.ircf.fr/wp-content/plugins/elementor/assets/js/editor-modules.min.js?ver=3.7.6:2:14029] An invalid argument supplied as multiple control value [array (
  'category' => 'InvalidElementData',
  'tag' => 'Element `undefined` got as `eael_flip_carousel_slide` value. Expected array or object.',
)]
JS: 2022-11-14 13:40:09 [error X 2][http://frankgodille.proactiv.ircf.fr/?elementor_library=template-01&elementor-preview=681&ver=1668433207 line 220 > eval:2:30926] elementor.settings.page is undefined 
JS: 2022-12-14 15:09:27 [error X 1][https://frankgodille.fr/wp-includes/js/jquery/jquery.min.js?ver=3.6.1:1:51816] a is undefined 
JS: 2022-12-27 07:56:04 [error X 1][https://frankgodille.fr/wp-content/plugins/elementor/assets/js/new-template.min.js?ver=3.8.1:2:2869] elementor_new_template_form_controls is not defined 

PHP: showing 4 of 4PHP: 2022-11-07 15:44:47 [notice X 6][/var/www/clients/client1/web188/web/wp-content/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-text.php::20] Trying to access array offset on value of type bool [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2022-11-14 11:46:32 [notice X 33][/var/www/clients/client1/web188/web/wp-content/plugins/elementor/includes/conditions.php::87] Undefined index: motion_fx_transform_x_anchor_point [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2023-06-25 09:50:49 [notice X 16][/var/www/clients/client1/web188/web/wp-content/plugins/elementor/includes/controls/groups/base.php::497] str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2023-12-04 14:28:05 [notice X 43301][/var/www/clients/client1/web188/web/wp-content/plugins/elementor/core/experiments/manager.php::166] version_compare(): Passing null to parameter #2 ($version2) of type string is deprecated [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]

Log: showing 20 of 312023-03-06 12:21:11 [info] Elementor data updater process has been queued. [array (
  'plugin' => 'Elementor',
  'from' => '3.8.1',
  'to' => '3.11.2',
)]
2023-03-06 13:46:05 [info] elementor-pro::elementor_pro_updater Started 
2023-03-06 13:46:05 [info] Elementor Pro/Upgrades - _on_each_version Start  
2023-03-06 13:46:05 [info] Elementor Pro/Upgrades - _on_each_version Finished 
2023-03-06 13:46:05 [info] Elementor data updater process has been completed. [array (
  'plugin' => 'Elementor Pro',
  'from' => '3.7.6',
  'to' => '3.11.3',
)]
2023-03-06 13:46:05 [info] Elementor data updater process has been queued. [array (
  'plugin' => 'Elementor Pro',
  'from' => '3.7.6',
  'to' => '3.11.3',
)]
2023-03-06 13:46:06 [info] Elementor data updater process has been queued. [array (
  'plugin' => 'Elementor Pro',
  'from' => '3.7.6',
  'to' => '3.11.3',
)]
2023-03-28 15:20:51 [info] dynamic-content-for-elementor::dce_updater Started 
2023-03-28 15:20:51 [info] Dynamic.ooo - Dynamic Content for Elementor/Upgrades - _v_2_8_0_conditional_validation_join_lines Start  
2023-03-28 15:20:51 [info] Dynamic.ooo - Dynamic Content for Elementor/Upgrades - _v_2_8_0_conditional_validation_join_lines Finished 
2023-03-28 15:20:51 [info] Elementor data updater process has been completed. [array (
  'plugin' => 'Dynamic.ooo - Dynamic Content for Elementor',
  'from' => '2.7.9',
  'to' => '2.9.1',
)]
2023-03-28 15:20:51 [info] Elementor data updater process has been queued. [array (
  'plugin' => 'Dynamic.ooo - Dynamic Content for Elementor',
  'from' => '2.7.9',
  'to' => '2.9.1',
)]
2024-03-22 10:31:09 [info] elementor::elementor_updater Started 
2024-03-22 10:31:09 [info] Elementor/Upgrades - _on_each_version Start  
2024-03-22 10:31:09 [info] Elementor/Upgrades - _on_each_version Finished 
2024-03-22 10:31:09 [info] Elementor data updater process has been completed. [array (
  'plugin' => 'Elementor',
  'from' => '3.11.2',
  'to' => '3.20.0',
)]
2024-03-22 10:31:11 [info] elementor-pro::elementor_pro_updater Started 
2024-03-22 10:31:11 [info] Elementor Pro/Upgrades - _on_each_version Start  
2024-03-22 10:31:11 [info] Elementor Pro/Upgrades - _on_each_version Finished 
2024-03-22 10:31:11 [info] Elementor data updater process has been completed. [array (
  'plugin' => 'Elementor Pro',
  'from' => '3.11.3',
  'to' => '3.13.1',
)]



== Elementor - Compatibility Tag ==
	
	Dynamic.ooo - Dynamic Content for Elementor: Compatibilité non spécifiée
	Elementor Pro: Compatibilité non spécifiée
	Essential Addons for Elementor: Compatibilité non spécifiée
	Essential Addons for Elementor - Pro: Compatibilité non spécifiée

== Elementor Pro - Compatibility Tag ==
	

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/awaiting_triage Indicates when an Issue, Pull Request, or Discussion awaits to be triaged.
Projects
None yet
Development

No branches or pull requests

2 participants