Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
raffi
Experienced
Topic Author
Posts: 44
Joined: 15 Nov 2018, 09:34

preview looks broken

01 Jul 2020, 07:20

Hi,

I see it now, but probably this way for a while :(
In my panel pictures are not displayed.

Image


On the web site it's like that :

Image


Gallery it safe works fine.
Files permissions are 644 and folder 755
Any idea on how to fix this ?

Thanks.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13995
Joined: 30 Sep 2006, 03:37

Re: preview looks broken

01 Jul 2020, 10:32

It seems this was not related to the X3 update. When I try to load a resized image on your website, it seems to just reload the entire index home page:
https://www.photographe-mariage.net/render/w640-c2.1/2.Categories/1.moments-preliminaires/20110601_125520_D7C_5552.jpg

As far as I can see, this is not only resized images. It's loaded the root page for ALL your pages. For example:
https://www.photographe-mariage.net/Categories/moments-preliminaires/

In fact, it doesn't matter what you write in the url for your website. It always displays the index home page:
https://www.photographe-mariage.net/doesnt/matter/what/url/

This means rewrite rules for resized images is not working, and I don't think it was working before you updated either. I checked your diagnostics page:
https://www.photographe-mariage.net/?diagnostics

You are aware you are using NGINX server? Nginx does not support .htaccess files. Have you (or someone) setup config for nginx? I have a nginx config example setup here:
https://gist.github.com/mjau-mjau/6dc19 ... e566a8457b

However, you should not really be using NGINX unless you have the expertise the configure it properly. Nginx servers don't support .htaccess files (like Apache), which contain critical rules for rewrite requests for pages and resized images. Also, since you are using NGINX, my guess is that your server is setup so that if "file not found", it will just display the index home page ... This is basically what I'm seeing.

If you are using pro hosting, you should really be using Apache option. Your website was working earlier, so someone has just updated your hosting to nginx without asking or taking any precautions? Anyway, you need NGINX-specific config, and you must make sure your NGINX server does not intercept "files not found" and just rewrite to root index.
 
User avatar
raffi
Experienced
Topic Author
Posts: 44
Joined: 15 Nov 2018, 09:34

Re: preview looks broken

01 Jul 2020, 11:34

 You're right, it's long before the update.
Indeed I'm on a nginx server, I'll see if the proposed configuration will help me.
If not, I'll switch it to another one of my hosting.
 
User avatar
raffi
Experienced
Topic Author
Posts: 44
Joined: 15 Nov 2018, 09:34

Re: preview looks broken

01 Jul 2020, 17:43

Back to my old Apache server. Works fine.
If I want to change X3 folder from / to /portfolio/ is there any parameters to change ? (before moving ? after moving ?)
Thanks
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13995
Joined: 30 Sep 2006, 03:37

Re: preview looks broken

01 Jul 2020, 23:27

raffi wrote:Back to my old Apache server. Works fine.
Great!
raffi wrote:If I want to change X3 folder from / to /portfolio/ is there any parameters to change ? (before moving ? after moving ?)
You mean you want to move X3 from / (root) to subdir /portfolio/? Should not be a problem. To be safe, make sure to check /portfolio/?diagnostics after moving, and also login to your panel and click "save" (without making any changes) to make sure the page cache refreshes to reflect changes in URL.
 
User avatar
raffi
Experienced
Topic Author
Posts: 44
Joined: 15 Nov 2018, 09:34

Re: preview looks broken

02 Jul 2020, 06:31

understood, thanks !