Forum Replies Created
-
AuthorPosts
-
Ok, this is a moving target but right now it seems to be
Exclude from Image Optimization:
.wp-post-image
.zoomImgExclude from js:
/enfold/config-templatebuilder/avia-shortcodes/portfolio/isotope.min.jsPls close
Hey Ismael,
not ideal since the Breadcrumps still show the incorrect URL but actually at least a way forward.
Thanks,
ElApril 23, 2024 at 9:16 am in reply to: Error /var/www/vhosts/domain.com/httpdocs/wp-content/themes/enfold/config-woocom #1440573I found the issue. We get quite a lot of spam traffic and you do not check if the order types are even available.
These spammers will hammer through all types of sorting and combinations if we have them or not:
https://drive.google.com/file/d/1-vMxNlQ80lziJ76Ps7RPkZX9-oZA6511/view?usp=sharingWould be cool if you could test for validity first. Otherwise we try to intercept those calls but it is not a very generic solution.
April 23, 2024 at 8:25 am in reply to: Error /var/www/vhosts/domain.com/httpdocs/wp-content/themes/enfold/config-woocom #1440564Appreciated. But that does not change the errors in the actual enfold files even if we comment all this out. There is some bug right in the Enfold WooCommerce filters itself:
2024-04-23 07:33:39 Warning AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “rand” in /httpdocs/wp-content/themes/enfold/config-woocommerce/config.php on line 2061’ Apache-Fehler
2024-04-23 07:36:36 Warning AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “date” in /httpdocs/wp-content/themes/enfold/config-woocommerce/config.php on line 2061’ Apache-Fehler
2024-04-23 07:39:34 Warning AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “id” in /httpdocs/wp-content/themes/enfold/config-woocommerce/config.php on line 2061’ Apache-Fehler
2024-04-23 07:45:17 Warning AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “date” in /httpdocs/wp-content/themes/enfold/config-woocommerce/config.php on line 2061’ Apache-Fehler
2024-04-23 07:46:30 Warning AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “id” in /httpdocs/wp-content/themes/enfold/config-woocommerce/config.php on line 2061’ Apache-Fehler
2024-04-23 07:54:38 Warning AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “date” in /httpdocs/wp-content/themes/enfold/config-woocommerce/config.php on line 2061’ Apache-Fehler
2024-04-23 07:57:18 Warning AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “relevance” in /httpdocs/wp-content/themes/enfold/config-woocommerce/config.php on line 2061’ Apache-Fehler
2024-04-23 08:03:49 Warning AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “date” in /httpdocs/wp-content/themes/enfold/config-woocommerce/config.php on line 2061’ Apache-Fehler
2024-04-23 08:13:30 Warning AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “date” in /httpdocs/wp-content/themes/enfold/config-woocommerce/config.php on line 2061’ Apache-Fehler
2024-04-23 08:16:28 Warning AH01071: Got error ‘PHP message: PHP Warning: Undefined array key “relevance” in /httpdocs/wp-content/themes/enfold/config-woocommerce/config.php on line 2061’Please close. I was able to adjust the css
April 22, 2024 at 2:54 pm in reply to: Error /var/www/vhosts/domain.com/httpdocs/wp-content/themes/enfold/config-woocom #1440522This line:
$output .= "<li><span class='currently-selected'>" . __( 'Sort by', 'avia_framework' ) . " <strong>{$product_order[$po_key]}</strong></span>";
The only thing we do is to create our own list of sorting options in the child functions.php according to your recommendations (here https://kriesi.at/support/topic/store-sort-by-options-woocommerce/):
/* Edit WooCommerce dropdown menu item of shop page Options: menu_order, popularity, rating, date, price, price-desc */ function my_woocommerce_catalog_orderby( $orderby ) { //check if we already did the resorting, otherwise skip it if(isset($orderby["menu_order"])) { $orderby = str_replace("Default", "Recommended", $orderby); $orderby = str_replace("Popularity (sales)", "Topseller", $orderby); unset($orderby["menu_order"]); unset($orderby["rating"]); unset($orderby["date"]); unset($orderby["relevance"]); unset($orderby["rand"]); unset($orderby["id"]); } return $orderby; } add_filter( "avf_wc_product_order_dropdown_frontend", "my_woocommerce_catalog_orderby", 20 ); ---
Something is not working right with the base theme it seems.
- This reply was modified 7 months, 3 weeks ago by Yigit. Reason: To wrap the code in the Code tag
Got it. I disabled it and just use the compressed files. WP-Rocket Javascript merging is also switched off since it is not recommended for http/2 anymore:
https://docs.wp-rocket.me/article/1009-configuration-for-http-2?utm_source=wp_plugin&utm_medium=wp_rocketOh, btw – I can never actually use the Javascript merge & compress since it will always result in Frontend Javascript errors (we use WP-Rocket). Just wanted to let you know that there seems to be some kind of timing issue when the JS is merged.
Best,
ElHey Ismael,
nope – if I switch it off it is gone. Will this fix go into the next release and if so when will you release it?
Thanks,
ElIsmael,
we already run this code since it is of no use for us. I think this is something else.
Best,
ElSeems to work! Thanks
I fixed it in Chrome by switching the toggle to elegant. But the other designs are still broken.
To expand on this: depending on what you open all entries get scattered all over the place. Happens only in Chrome (for us).
December 13, 2023 at 7:06 am in reply to: Burger Menu JS click action is deferred by WP-Rocket #1427952Mike,
exactly. The only *real* solution would be to rebuild the burger menu js so that we could make sure to exclude all it´s parts. To circumvent the issue I even tried the fastclick library but it also obviously does not really solve the issue.
Yes please close and thanks again!
Best,
ElmarDecember 12, 2023 at 1:07 pm in reply to: Burger Menu JS click action is deferred by WP-Rocket #1427857Mike,
appreciate the help a lot and all good. Yes, it seems to be iOS specific but since this is a large user-base it is concerning. For now it seems we have to live with it but it is pretty bad from a user perspective. Again – appreciate the quick support!
Best,
ElmarDecember 11, 2023 at 12:16 pm in reply to: Burger Menu JS click action is deferred by WP-Rocket #1427770Hi,
got it. Tried it and made a video as proof. Doesn´t work sadly.
Best,
ElmarDecember 11, 2023 at 11:49 am in reply to: Burger Menu JS click action is deferred by WP-Rocket #1427765I was hoping for a way to make sure that just scripts required by the burger menu can be identified and excluded rather than removing all other delayed scripts that really are required to be delayed.
December 11, 2023 at 11:41 am in reply to: Burger Menu JS click action is deferred by WP-Rocket #1427763Hi Mike,
I emptied the cache but the issue seems to persist. What did you change? Just the change in Wp-Rocket? Excluding everything from (?:/wp-content/|/wp-includes/)(.*) is not really an option.
Best,
ElmarDecember 8, 2023 at 6:55 pm in reply to: Burger Menu JS click action is deferred by WP-Rocket #1427601Sure, thatbis the usual way. Most caches are disabled for logged in users. You have to test without being logged in. Everything is circumvented otherwise.
December 8, 2023 at 3:30 pm in reply to: Burger Menu JS click action is deferred by WP-Rocket #1427574Hi Mike,
You might need to be logged in to see the report.
Best
December 8, 2023 at 10:15 am in reply to: Burger Menu JS click action is deferred by WP-Rocket #1427543Mike,
sure thing and done. Thank you for taking care of it.
Btw – there is also bug report of on Github but this is not limited to Safari: https://github.com/wp-media/wp-rocket/issues/3142Best,
ElmarDecember 7, 2023 at 7:24 pm in reply to: Burger Menu JS click action is deferred by WP-Rocket #1427489Hi Mike,
any news on this? The CDN is not the issue. It really is the why that scripts get delayed.
Best,
ElDecember 5, 2023 at 11:06 am in reply to: Burger Menu JS click action is deferred by WP-Rocket #1427209Mike,
super helpful thanks. I excluded several of these items but ultimately no change. In the end I would have to unqueue all js in the call stack that is triggered once the burger-menu is called.
Call Stack:
https://drive.google.com/file/d/1fzxCDHkSrVFKDXr0L_6TeOt3kOQkjH2S/view?usp=sharingBut that seems like the wrong approach. There should be a way within Enfold that the menu takes precedence in the call stack.
Best,
ElmarDecember 4, 2023 at 7:29 am in reply to: Burger Menu JS click action is deferred by WP-Rocket #1427103Hi,
I only put exclusions in the delay entries – my bad. Also added alls AVIA scripts to the do not defer section. It is somehow still happening on mobile. Bizarre.
Best,
ElmarDecember 3, 2023 at 7:46 am in reply to: Burger Menu JS click action is deferred by WP-Rocket #1427022Yes, I do and thank you. Unfortunately the touch event seems to get caught behind delayed actions no matter what I exclude.
#top .dropdown_widget .buttons .button.checkout #top .dropdown_widget .buttons .button .woocommerce-mini-cart__buttons a.button.wc-forward a.button.wc-forward:hover .woocommerce-page .button #sv-rbadge-box #searchform #searchsubmit .avia-search-tooltip .inner-toolip .minus .plus .rating_container .woocommerce-product-gallery .header_color .avia-tt #top #searchform(.*) .avia-search-tooltip #searchform(.*) #top .avia-font-entypo-fontello .header_color .av_ajax_search_image .header_color .av_ajax_search_title .header_color .ajax_search_excerpt (.*).av_ajax_search_entry(.*) .ajax_search_response (.*) (.*).av_ajax_search_title (.*).ajax_search_excerpt (.*).av_ajax_search_image .header_color h4 (.*).av_ajax_search_content .main_menu .menu-item-avia-special .av-hamburger .av-hamburger-box .av-hamburger-inner .av-burger-overlay .av-burger-overlay-scroll .av-burger-overlay-inner .av-active-burger-items .av-burger-overlay-active .av-burger-overlay-active-delayed .av-hamburger--spin .av-js-hamburger .avia_hidden_link_text .av-burger-menu-main #av-burger-menu-ul #avia-menu .av-width-submenu .current_page_item .current-menu-item .avia-menu .av-main-nav-wrap .menu .av-main-nav .sub-menu .av-burger-overlay-bg .inner-container #header_main
\/jquery(-migrate)?-?([0-9.]+)?(.min|.slim|.slim.min)?.js(\?(.*))?( |'|"|>) /dynamic_avia/avia-footer-scripts-(.*).js /enfold/js/avia-snippet-hamburger-menu.min.js /enfold/js/avia.js /enfold/js/shortcodes.js /enfold/js/avia-compat.js /enfold/js/(.*).js /enfold/js/aviapopup/(.*).js /enfold/config-templatebuilder/avia-shortcodes/ /wp-content/plugins/woocommerce-germanized/(.*) var avia_is_mobile
It is a very common problem and I don´t know what the issue is but it seems that the burger-menu calls to some other function that still does get delayed.
December 2, 2023 at 7:15 pm in reply to: Burger Menu JS click action is deferred by WP-Rocket #1426980Of course. This is the standard for any Enfold Wp-Rocket user.
There is a script that is triggered when opening the burger menu. Which one is it?
Best
ElmarDecember 2, 2023 at 6:48 pm in reply to: Burger Menu JS click action is deferred by WP-Rocket #1426975Appreciated but all this is working fine. The javascript action of the hamburger menu is getting deferred. So I need to know that script triggers the opening tap action. Appreciated!
Hi Ismael,
It seems to be loaded in the frontend as well.
I was using “Code Profiler Pro” with a not-logged-in user. I used a woocommerce cart hash from another non-logged user with a filled shopping cart to simulate the request to the cart.
It loads tons of scripts but first page runner ups as far as enfold is concerned are sorted by execution time:
wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-base.php
wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-modal-elements.php
wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-template-builder.php
wp-content/themes/enfold/framework/php/function-set-avia-backend.php
wp-content/themes/enfold/framework/php/function-set-avia-frontend.php
wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php
wp-content/themes/enfold/functions.php
…Best,
ElApril 17, 2023 at 2:43 pm in reply to: Product Images in one line with touch enabled version #1404696Hey Yigit,
the other way around. All thumbnails in the same ONE line under the main image. It makes sense now that one can swipe the main image.
Best.
ElmarApril 17, 2023 at 9:53 am in reply to: Product image will not enlarge on first view – new touch enabled product images #1404656Thanks Mike.
To anyone using image optimization – exclude the class “zoomImg” from resizing operations.
Best,
Elmar -
AuthorPosts