Search…

X3 Photo Gallery Support Forums

Search…
 
hpdorn
Topic Author
Posts: 10
Joined: 26 Dec 2020, 05:19

Saving Page Settings

23 Nov 2022, 13:30

There seems to be a problem saving the "Page settings" of a folder if the folder contains a specific picture.

If the picture is not in the folder saving the settings is no problem.
If the picture is in the folder then an error occours: "error textStatus: --> error".
Renaming the file does not help.

It seems that something in the picture's Meta-data disturbs the saving.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13593
Joined: 30 Sep 2006, 03:37

Re: Saving Page Settings

23 Nov 2022, 19:43

Could you send me the photo, so I can test it? Or send me a link to the image in your X3 gallery? Yes it could be related some way to image META.
 
hpdorn
Topic Author
Posts: 10
Joined: 26 Dec 2020, 05:19

Re: Saving Page Settings

24 Nov 2022, 07:33

The two pictures can be found here:

Normandie.jpg

Monaco-20.jpg
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13593
Joined: 30 Sep 2006, 03:37

Re: Saving Page Settings

24 Nov 2022, 09:29

I could not reproduce the issue here. See screenshot below, where I changed some text and saved.
Image

It could still be something image META related, but then also PHP related. Do you have an option in your hosting control panel to upgrade to PHP 8.x? Another possibility, is that it could be related to a server firewall rule, that for some reason triggers when these images are included in the dir. Could you try to open browser developer tools, and view the console and network inspector when trying to save? There should be some more clues in terms of the errors that show up.

Optionally, I can diagnose from here if you can provide login to your X3 panel. Thanks.
 
hpdorn
Topic Author
Posts: 10
Joined: 26 Dec 2020, 05:19

Re: Saving Page Settings

24 Nov 2022, 14:56

Thanks for the answers and hints.

I did the following steps:



- local XAMPP Test environment with PHP 7.4 -> OK

- changed PHP version to 8.1 on my hosting server -> Not OK

- removed all IPTC Meta-Data -> OK





During the test on the hosting server I saw a 403 error in the chrome console:





So it seems that the error is caused by a special IPTC setting. 
I will do further tests, but now I have to look what Brazil is doing at the world championship:-)
Screenshot 2022-11-24 205401.png
Screenshot 2022-11-24 205401.png (92.86 KiB) Viewed 34 times
[/font][/size][/color][/font][/size][/color]
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13593
Joined: 30 Sep 2006, 03:37

Re: Saving Page Settings

24 Nov 2022, 23:24

hpdorn wrote:During the test on the hosting server I saw a 403 error in the chrome console:
The issue is almost certainly caused by a Firewall rule (security) on your server. That is why you see a "403 forbidden" response, because that's normally what a firewall would respond. There is something in the image meta IPTC that your server firewall is reacting upon. You should ask your hosting about this ... You could normally ask them to disable a specific rule, or simply disable the firewall under the /panel/* folder, because all actions there are protected by LOGIN anyway.
hpdorn wrote:- local XAMPP Test environment with PHP 7.4 -> OK
Yes, it will work on your localhost, like it also did for me, because it doesn't have the hosting-specific Firewall rule.
hpdorn wrote:- changed PHP version to 8.1 on my hosting server -> Not OK
Yes, because the firewall on your server is enabled regardless of PHP version.
hpdorn wrote:- removed all IPTC Meta-Data -> OK
Yes, because the firewall is triggering on something inside your image meta.
 
hpdorn
Topic Author
Posts: 10
Joined: 26 Dec 2020, 05:19

Re: Saving Page Settings

25 Nov 2022, 11:46

The hoster deactivated the special firewall setting and saving the settings worked.

The word "casino" in the ITPC Meta-Data of the foto (foto title) was the problem :confused:.

Thanks a lot for your help :thumbsup:.
 
ed_f
Experienced
Posts: 62
Joined: 20 Dec 2020, 11:24

Re: Saving Page Settings

Today, 14:03

:slot_machine::moneybag:  LOL - casino killed my site :-)