Search…

X3 Photo Gallery Support Forums

Search…
 
Krysbe
Topic Author
Posts: 16
Joined: 27 Apr 2020, 10:01

Menu not been updated and external script aren't loaded

07 Jul 2020, 09:55

Hi, 

The menu that appear on my website is 
https://www.dropbox.com/s/jwthgurixu9vp ... 9.png?dl=0

But it should be 
https://www.dropbox.com/s/sm7ejthkcdlb0 ... 9.png?dl=0

Where "Print" on the first screenshot should be "Shop" with dropdown menu on the second. 

I've also a button on this page 
https://christophepenninckx.com/print/Free-Wallpapers/
to download something. The button is called by a script but when we go the page via the menu, we don't have the button, only the link
https://www.dropbox.com/s/p9yfrvj195yxh ... 6.png?dl=0
When we reload manually the page, we have the correct button
https://www.dropbox.com/s/1pkws9ednoyom ... 0.png?dl=0

Regards, 

Chris
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Menu not been updated and external script aren't loaded

07 Jul 2020, 12:39

Krysbe wrote:The menu that appear on my website is 
https://www.dropbox.com/s/jwthgurixu9vp ... 9.png?dl=0

But it should be 
https://www.dropbox.com/s/sm7ejthkcdlb0 ... 9.png?dl=0
It's definitely correct, as in your screenshot #2:
Image

Is see you have Settings > Advanced > Menu Processing > [x] Manual Refresh checked. Why? It's ok to enable this feature, but then you should understand the consequences and requirements. It means you need to click "REFRESH MENU" every time you make changes in the panel that may affect the menu. It may help speed up slow servers or very deep menus, but in most cases it won't provide much benefit ... Why not just disable it? I don't see why you have enabled it in the first place if you are not sure what it does ...
Krysbe wrote:I've also a button on this page 
https://christophepenninckx.com/print/Free-Wallpapers/
to download something. The button is called by a script but when we go the page via the menu, we don't have the button, only the link
https://www.dropbox.com/s/p9yfrvj195yxh ... 6.png?dl=0
When we reload manually the page, we have the correct button
https://www.dropbox.com/s/1pkws9ednoyom ... 0.png?dl=0
I also see you have Settings > Advanced > Preload Website > "Create". This option, as clearly stated in the help, requires you to always "create website object" after any changes you make. Failure to do so means a page may reload correctly, but when navigating from the menu, the page may display with OLD content loaded from the site object, because you have not clicked "create website object" after latest changes. I don't quite understand why you have set these advanced features if you are unable to follow their requirements. Changing this setting to "auto" is better for you.
 
Krysbe
Topic Author
Posts: 16
Joined: 27 Apr 2020, 10:01

Re: Menu not been updated and external script aren't loaded

08 Jul 2020, 01:56

Thanks, 



I've made the change in the settings. 

but always print as the menu item. (I've used new browser on Mac and iPhone same problem)

Same problem with external script not loaded. 

I also have a problem with other page that aren't correctly loaded. (Here a gallery)

https://www.dropbox.com/s/86u1nn3z83ibh ... 4.png?dl=0

Regards, 

Chris 
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Menu not been updated and external script aren't loaded

08 Jul 2020, 02:32

I did some more research on your website, and also found out:
  • You are using Cloudflare.
  • You are using X3 Cloudflare page cache.
  • You are using Cloudflare rocket loader.
I don't quite understand why you need to enable so much advanced settings and features without understanding the consequences. First of all, if you are not seeing the menu as in my screenshot, it means you have some browser-cache affected by Cloudflare or a combination of settings. It looks like below. I can post the link public and then we can get others to check, but I can't do more than that. This is what your menu looks like.
Image

Next, please disable Cloudflare rocket loader. It's not for you and not for X3 websites. 
Krysbe wrote:Same problem with external script not loaded.
What external script? Link please. This request is not constructive. If it's not there, it means that somehow, in some combination with Cloudflare, you have managed to cache pages in your browser. This is not X3's fault. You should make sure things are working properly before you start adding advanced caching features.
Krysbe wrote:I also have a problem with other page that aren't correctly loaded. (Here a gallery)

https://www.dropbox.com/s/86u1nn3z83ibh ... 4.png?dl=0
Why screenshot and no link? I found the link and it works fine here. This is related to something on your side cache or external scripts I don't know.
Image

And here's from browserling. You can try yourself:
Image
 
Krysbe
Topic Author
Posts: 16
Joined: 27 Apr 2020, 10:01

Re: Menu not been updated and external script aren't loaded

08 Jul 2020, 03:54

Thanks, 

I've disabled rocket in Cloudflare loader. 
The X3 Cloudflare cache is configured but not enabled at this time. 

The code that call the script is below (I'm waiting your E-commerce plugin :) ) 
Code
<script src="https://gumroad.com/js/gumroad.js"></script>

<a class="gumroad-button" href="https://gum.co/yoCfr">Download the wallpaper</a>
I'll switch back to the DNS server of my domain name provider to see.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Menu not been updated and external script aren't loaded

08 Jul 2020, 04:18

Krysbe wrote:I'll switch back to the DNS server of my domain name provider to see.
That might not immediately help if your browser has cached pages. This could be if you had Cloudflare enabled AND had Cloudflare API enabled in X3 panel earlier, and didn't purge the cache (orange cloud).

If you want to check what your website looks like without browser cache, you can open Chrome > New Incognito Window (or any browser > New PRIVATE window), and load your page. Private browser windows don't use cache from previous visits.
  • Nothing wrong in using Cloudflare at all. But rocketloader should definitely be disabled. It could break some X3 plugins, and could easily break custom scripts you have runnin on your website. Cloudflare with standard settings, without rocket loader, should not cause problems.
  • Keep in mind, if you had Cloudflare API enabled from X3 panel, it means you were also caching pages on CDN and in browser. This can speed up things slightly , but it's very tricky because you must always flush the cache after updating any page. Else, you might get served old fragments of page data.
  • What made the situation more tricky in your case, is because you also Menu > Manual refresh and Preload website > Create, which required you to manually refresh menu AND create website object after EVERY change. Combined with Cloudflare page caching, this can definitely cause confusion.
 
Krysbe
Topic Author
Posts: 16
Joined: 27 Apr 2020, 10:01

Re: Menu not been updated and external script aren't loaded

08 Jul 2020, 04:47

The things is that I always flushed the cache and reload website and refresh menu :) 



I've tried with private navigation but the script don't load. You have to reload manually the page to see the button instead of the link 

The button is under the images on this page 

https://christophepenninckx.com/Shop/Free-Wallpapers/

When you go via the menu, you'll see link. If you access to the page directly or reload the page you'll see the button. 
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Menu not been updated and external script aren't loaded

08 Jul 2020, 06:15

Krysbe wrote:The things is that I always flushed the cache and reload website and refresh menu :) 
All I can say, is that it's not possible for X3 to show one menu in one browser and another in another browser. This is cache related, and the only reason it can be cache related, is if Cloudflare or browser is somehow caching something. There are some issues with Cloudflare lately, that the API (from X3 panel) can only flush 30 pages at a time ...

Please login to your Cloudflare account, click caching > configuration > purge everything. This will clear ALL cloudflare cached items.
Krysbe wrote:I've tried with private navigation but the script don't load. You have to reload manually the page to see the button instead of the link 
I looked around a bit and saw some "gumroad" stuff going on. Perhaps you can post this in a separate topic request please? I have only seen screenshots, and no explanation of what you are trying to do, or what the script does, or the home page for the script. In your case, it seems you have just copy-pasted the code directly into content and hoped for the best, which seems to work for the initial page. This issue has nothing to do with the menu or caching ...