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

Rewrite not supported #27739

Open
5 of 6 tasks
hfstg opened this issue Jun 19, 2024 · 0 comments
Open
5 of 6 tasks

Rewrite not supported #27739

hfstg opened this issue Jun 19, 2024 · 0 comments
Labels
status/awaiting_triage Indicates when an Issue, Pull Request, or Discussion awaits to be triaged.

Comments

@hfstg
Copy link

hfstg commented Jun 19, 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

Hi,

When extending the My Account section of WooCommerce to add pages such as my-account/points you can no longer edit the page in Elementor.

Is there anyway to support this?

Steps to reproduce

  1. Create a Page in Elementor, "Points"
  2. Add to functions.php of theme:

`<?php
function account_endpoints() {
add_rewrite_endpoint( 'points', EP_ROOT | EP_PAGES );
}

function points_content() {
echo do_shortcode('[elementor-template id="ID OF POINTS PAGE"]');
}
add_action( 'woocommerce_account_points_endpoint', 'points_content' );

function custom_pages_my_account($items) {
$logout = array_pop($items);
$items['points'] = 'Points';
return $items;
}
add_filter('woocommerce_account_menu_items', 'custom_pages_my_account');
?>
`
3. Try to edit the Points Page, the editor will not load.

Expected behavior

1.The editor should load.

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 ==
	Operating System: Linux
	Software: nginx/1.26.1
	MySQL version: Debian 10 v10.3.39
	PHP Version: 8.2.20
	PHP Memory Limit: 128M
	PHP Max Input Vars: 1000
	PHP Max Post Size: 250M
	GD Installed: Yes
	ZIP Installed: Yes
	Write Permissions: All right
	Elementor Library: Connected

== WordPress Environment ==
	Version: 6.5.4
	Site URL: https://xxx.xxxx.co.uk
	Home URL: https://xxx.xxxx.co.uk
	WP Multisite: No
	Max Upload Size: 200 MB
	Memory limit: 40M
	Max Memory limit: 256M
	Permalink Structure: /%postname%/
	Language: en_GB
	Timezone: Europe/London
	Admin Email: [email protected]
	Debug Mode: Active

== Theme ==
	Name: Hello Elementor Child
	Version: 2.0.0
	Author: Elementor Team
	Child Theme: Yes
	Parent Theme Name: Hello Elementor
	Parent Theme Version: 3.0.2
	Parent Theme Author: Elementor Team

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

== Active Plugins ==
	Advanced AJAX Product Filters for WooCommerce
		Version: 1.6.4.6
		Author: BeRocket

	Change wp-admin login
		Version: 1.1.8
		Author: wpexpertsio

	Elementor
		Version: 3.22.1
		Author: Elementor.com

	Elementor Pro
		Version: 3.22.0
		Author: Elementor.com


	Image Optimizer by Elementor – Compress, Resize and Optimize Images
		Version: 1.3.0
		Author: Elementor.com

	Order Delivery Date Pro for WooCommerce
		Version: 10.9.0
		Author: Tyche Softwares

	Post SMTP
		Version: 2.9.4
		Author: Post SMTP

	Sandbox Payment Gateway for WooCommerce
		Version: 1.0.3
		Author: Isaac Oyelowo

	WooCommerce
		Version: 8.9.3
		Author: Automattic

	WooCommerce Stripe Gateway
		Version: 8.4.0
		Author: WooCommerce

	Wordfence Security
		Version: 7.11.6
		Author: Wordfence


== Elements Usage ==
	
	footer : 2
		image : 2
		text-editor : 4
	header : 1
		button : 3
		container : 10
		nav-menu : 2
		search-form : 1
		theme-site-logo : 1
		woocommerce-menu-cart : 1
	page : 3
		container : 1
		html : 1
	popup : 2
		container : 2
		html : 1
		login : 1
	product : 1
		container : 20
		divider : 2
		favorite_button : 1
		heading : 25
		icon : 3
		my-custom-widget : 1
		nested-accordion : 4
		product_swap : 1
		shortcode : 14
		text-editor : 1
		woocommerce-breadcrumb : 1
		woocommerce-product-add-to-cart : 1
		woocommerce-product-images : 1
	wp-page : 11
		button : 4
		call-to-action : 4
		container : 22
		customer_points_history : 1
		form : 1
		heading : 10
		html : 1
		shortcode : 7
		slides : 1
		spacer : 1
		text-editor : 3
		video : 1
		woocommerce-cart : 1
		woocommerce-my-account : 1
		woocommerce-products : 1
	product-archive : 1
		container : 3
		loop-grid : 1
		shortcode : 1
		woocommerce-breadcrumb : 1
	loop-item : 3
		container : 10
		divider : 4
		favorite_heart_button : 1
		heading : 6
		html : 1
		product_swap : 1
		theme-post-featured-image : 2
		theme-post-title : 2
		wc-add-to-cart : 2
		woocommerce-product-price : 2


== Settings ==
	
	cpt_support: post, page, product
	allow_tracking: yes
	editor_break_lines: 1
	unfiltered_files_upload: 1
	font_display: swap


== Features ==
	Custom Fonts: 0
	Custom Icons: 0

== Integrations ==
	
	woocommerce: Active


== Elementor Experiments ==
	Improved asset loading: Active by default
	Improved CSS Loading: Active
	Inline Font Icons: Active
	Additional Custom Breakpoints: Active
	Flexbox Container: Active
	Grid Container: Active
	Upgrade Swiper Library: Active
	Nested Elements Performance: Inactive by default
	Optimized Control Loading: Inactive by default
	Optimized Markup: Inactive by default
	Plugin Onboarding: Active by default
	Default to New Theme Builder: Active by default
	Hello Theme Header &amp; Footer: Active
	Elementor Home Screen: Active by default
	Editor Top Bar: Active
	Build with AI: Active
	Landing pages: Active
	Nested Elements: Active
	Lazy Load Background Images: Active
	Pages Panel: Inactive by default
	Element Caching: Inactive by default
	Conversion Center: Inactive by default
	Display Conditions: Active
	Form Submissions: Active by default
	Menu: Active
	Taxonomy Filter: Active by default

Agreement

  • I agree that my issue may be closed without action if it doesn't meet all the requirements.
@hfstg hfstg added the status/awaiting_triage Indicates when an Issue, Pull Request, or Discussion awaits to be triaged. label Jun 19, 2024
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

1 participant