Search…

X3 Photo Gallery Support Forums

Search…
 
2488ch
Topic Author
Posts: 5
Joined: 03 Dec 2014, 12:57

HTML Tags for Header and Footer in Mobile View not stored

11 Dec 2014, 12:01

Hi there

My lovely hosting provider updated his Plesk Suite and now my mobile view is broken:
http://www.2488.ch/gallery/index.php?mobile=1

The global header and footer was configured in the settings, worked for months - but now the html-tags are "stripped".
For example
Code
<img src="iv-config/image_fullwidth.jpg"/><div>Text with whitespace</div>
will become
Code
img src=iv-config/image_fullwidth.jpg/divText with whitespace/div
I already had a debug session with my provider:
  • mod_security is now off
  • magic_quotes_gpc is on
  • libxml version 2.6.26 / PHPversion ist 5.3.27
  • Escaping the with "\" doesn't work (neither in the configuration nor directly in the file)
  • I didn't find something related in the forum or the faq section
Thank you for helpfull feedback/input on that issue

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

Re: HTML Tags for Header and Footer in Mobile View not store

11 Dec 2014, 23:24

Hi Sebastian,

I believe the issue is in fact related to Magic-Quotes being enabled ... It strips away tags automatically where we don't want them stripped! The magic quotes module feature has already been deprecated since php 5.3, and entirely removed since php 5.4:
http://php.net/manual/en/security.magicquotes.php

Any chance your host can disable it? I don't see any reason why this option should be enabled unless your server is hosting outdated scripts that are not created properly.
 
2488ch
Topic Author
Posts: 5
Joined: 03 Dec 2014, 12:57

Re: HTML Tags for Header and Footer in Mobile View not store

12 Dec 2014, 02:31

Hello Karl

Thanks for your reply.
Before testing with "magic_quotes" = on, it was off... The same problem :(

Another idea I had, was to switch to a newer libxml (2.7.8) - which means I have to "take" PHP 5.4
I tell my provider to update and come back

Regards
Sebastian
 
2488ch
Topic Author
Posts: 5
Joined: 03 Dec 2014, 12:57

Re: HTML Tags for Header and Footer in Mobile View not store

12 Dec 2014, 07:18

Hi again

Just wanted to inform everybody, that an update to libxml 2.7.8 und PHP 5.4 solved the issue.
Why "magic_quotes_gpc=0" wasn't enough and why it stopped working because of a plesk update - no clue.

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

Re: HTML Tags for Header and Footer in Mobile View not store

13 Dec 2014, 05:53

Glad you solved it!