-
AuthorPosts
-
October 8, 2019 at 3:39 pm #1146201
Hey guys,
I spent HOURS trying to figure this out not knowing it was related to your child theme since I upgraded the parent theme.I know for sure now because when I set the theme to the default WordPress Nineteen theme, it works.
When I set the parent theme of Enfold to the website, the CDN worksAs soon as I set the Child theme, it no longer works.
Can you help?
Thanks
October 8, 2019 at 4:00 pm #1146204maybe this is a start? The error I get when the parent theme is activated: https://prnt.sc/pghd58
October 9, 2019 at 5:27 am #1146364Removed old Child theme.
Created new child theme.
The CDN only works with the parent theme.October 11, 2019 at 1:16 pm #1147114October 14, 2019 at 4:08 am #1147673Hi,
Sorry for the delay. Looks like an issue with the theme’s file compression generating incorrect paths for the resource files. Does it work properly when the theme’s compression feature is disabled? If you really need to use the theme’s file compression settings, try to correct the file path using the “avf_compress_file_content_path” filter.
Best regards,
IsmaelOctober 14, 2019 at 5:16 pm #1147873Hey Ismael, Thanks….those are all disabled. Have been for a while. See here: https://prnt.sc/pj4okl
When the child theme is off and I am using the parent theme – it works….?
When the child theme is active it does not work.
October 15, 2019 at 3:45 pm #1148118Hi,
Thank you for the info.
Try to use this filter in the functions.php file to remove the unwanted URL in the file path.
add_filter('avf_compress_file_content_path', function($check_path, $path , $file_type , $fallback_url) { $checkpath = str_replace('https://cdn.js-interactive.com/', "", $check_path); return $check_path; }, 10, 4);
After adding the snippet, don’t forget to toggle the Performance > File Compression settings and remove the cache.
Best regards,
IsmaelOctober 15, 2019 at 4:22 pm #1148127Ismael, before I do anything else. I have had other websites that have a similar configuration to my own – and it has worked for years. I updated another website to the latest theme, and now I am experiencing the same challenge where the CDN rewrite no longer works. :/
October 16, 2019 at 1:19 pm #1148453Hi,
I’m not entirely sure what changed after the update, so I’m going to tag one of our developers to check the thread. Please wait for his response. Did you try the filter above?
Thank you for the update.
Best regards,
IsmaelOctober 16, 2019 at 1:24 pm #1148454I did try that Ismael, thank you.
It had no affect.Justin
October 17, 2019 at 3:39 pm #1148949I spent a couple more hours on this. Removed the theme. Reinstalled the theme. Removed the child theme. Reinstalled a new child theme. Stripped all custom CSS and PHP from the style and functions file/
None of that fixed the issue I am having with the CSS rewrite not working.
- This reply was modified 5 years, 2 months ago by Justin.
October 17, 2019 at 5:21 pm #1148993Also….since the update…I click developer and I get this: https://prnt.sc/pknkhe
A blank section.
October 18, 2019 at 6:00 am #1149109Hi,
Thank you for the update.
Can we access the dashboard and the file server? We have to check the settings and edit a few files in order to debug the issue. Please provide the WP and FTP login details in the private field.
Best regards,
IsmaelOctober 18, 2019 at 3:55 pm #1149318See below please
October 21, 2019 at 12:59 pm #1149849Hi,
Thank you for the update.
Where do you see these errors (https://prnt.sc/pghd58)? We enabled the debug mode and the theme’s file compression settings, but we didn’t see any errors in the site. We also confirmed that WP Rocket’s CDN option is enabled, and that the resources (css, js, images) are loaded from CDN.
Screenshot: https://imgur.com/a/Tv5FULw
Best regards,
IsmaelOctober 22, 2019 at 3:12 pm #1150209Ismael. Take a look at my clients website here: https://fosterdanowsky.com/ Look at the source code carefully – particularly all the images that are coming from the wp-content/ folder: https://drive.google.com/open?id=15tC0Ert_7Jx-UllILpzhT-brsrY9rXN7
Now please do the same for https://js-interactive.com. Look at the source code: https://drive.google.com/open?id=1XUmKgXmr1lP0fqc__8spV_WT5VRSIEwD
Both sites have the same configuration. The JS site doesn’t appear to be rewriting any images coming from the wp-content folder.
Justin
October 23, 2019 at 10:48 am #1150445Hi,
Sorry about that. We only checked the stylesheets and external resources from the network tab, but forgot to inspect the markup. Unfortunately, we are still not sure why the rewrites are not working. Did you contact the WP Rocket support yet? They might be able to help us figure out the issue.
Do you have a dev version of the js-interactive site? Have you tried disabling some of the plugins to rule out incompatibility? I will ask the rest of the team to check the thread. Please wait for their response.
Thank you for your patience.
Best regards,
IsmaelOctober 23, 2019 at 3:45 pm #1150536Ismael, I do know it’s Enfold child theme related.
When I select a default WordPress theme, the rewrite works.
When I activate the Enfold parent theme, the rewrite works.
I have stripped all CSS and custom PHP from the child theme before – and there was no change.The only thing to date, that changes things – is deactivating the child theme.
Is there a setting I am overlooking in the child theme that cold be causing this or…?October 24, 2019 at 3:26 am #1150712So Ismael. After hours on this and being back and forth with WP Rocket on this… I decided to try a plugin…. just for the CDN part: https://wordpress.org/plugins/cdn-enabler/ And guess what? It worked.
I spent hours with support for the original Caching plugin solution I was using for the CDN, and they kept saying it was theme related.
October 24, 2019 at 9:59 am #1150780 -
AuthorPosts
- You must be logged in to reply to this topic.