The simpler media website CMS
Hello,
I have a strange issue with a theme.
On some pages, with google chrome, the content is just not there, although it's fine with Firefox.
Here's an example of such a page with the issue:
- https://www.cactuspro.com/conophytum-lithops/encyclopedie/conophytum/
Here's another page loading fine, I don't see what could be the difference:
- https://www.cactuspro.com/conophytum-lithops/in-situ/
It works fine with Mozilla firefox.
I tested on windows and Linux: same. I tested with Chromium on Linux: same than google chrome.
I checked the generated HTML: it is different. At the beginning there's 2 lines of scripts not present for chrome-based browsers. And later the content itself is not there. header and footer are ok: I just get an empty page.
I tested other themes: same issue with zenpage or zpmobile for example.
I am at a loss, where should I investigate next?
Thanks for your help
Comments
Review you logs please. And be sure to use our fork of the zpBootstrap theme: https://github.com/zenphoto/zpBootstrap
Click on the green "code" button on the top right and then "download zip".
Thanks acrylian. I checked the logs: the debug one had warnings about deprecated, but testing with the latest zpBootstrap theme got rid of them.
However, even with the latest zpBootstrap theme, not modified, I get the same issue. The generated HTML does not have the same content.
With chrome: the page is not blank, there's the header, the footer, etc. But for some pages, the content itself is just not there. With Firefox, the content is there.
What can I test more? I am absolutely at a loss here. Is there some code in zenphoto of the theme that serves different code for different browsers? If so, how can I change that?
Thanks
Hello again,
I did some tests with wget by changing the user agent. I tried wget, Firefox and chromium: each time I get the same HTML (only the last line with the time taken to generate the page is different).
So the issue is not with zenphoto generating a different html.
I compared the source from the browsers, and the first lines are different. With Firefox, I get these 2 additionnal lines at the top:
These 2 lines are not there for chrome. There are more differences later in the page: less lines for the menu, and the content in the div "pagination pagination-sm" is just not there.
Why is chrome / chromium killing the received code in such a way?
For me the album is also empty using Firefox and if I visit the parent album https://www.cactuspro.com/conophytum-lithops/encyclopedie/ it appears to be empty, too.
I assume you have not published its content. If you are logged in as admin with one browser you see them but not being logged out.
That is default behaviour of Zenphoto which can be disabled using the included plugin "show_not_logged-in".
acrylian: THANKS A LOT!
This did the trick. I feel a bit stupid now.
(to my defense: I do not manage content of this site, just the hosting and tech support. I relayed this very very usefull tip to the team who publishes the content).
Again, thanks a lot, and may your day be full of good surprises :-)
(I don't see a way to add [solved] to the title?)