Search…

X3 Photo Gallery Support Forums

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

Re: HTML white tree!

17 Nov 2014, 09:47

I think better not edit code right now. Please download this file i.php and upload it to the root of your x3 folder. I need it to diagnose various PHP settings on your server please.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: HTML white tree!

17 Nov 2014, 10:37

For those with an error like this:
Warning: Invalid argument supplied for foreach() in /home/*/public_html/app/cache.inc.php on line 36

Please update this file cache.inc.php on your server location app/cache.inc.php. I will update the zip file shortly ..
 
User avatar
Artur
Imagevue PowerPack
Posts: 510
Joined: 20 May 2011, 03:17

Re: HTML white tree!

17 Nov 2014, 11:01

http://phillip.com.pl/x3/

Same here.Seems like it wont load the gziped files properly :
Code
http://phillip.com.pl/x3/js/modernizr.imagevue.js
http://phillip.com.pl/x3/css/imagevue.skin.default.css
Caching issue?

Diagnostic file uploaded :wink:
http://phillip.com.pl/x3/i.php

BTW.
With this .htaccess code, my serwer shows an 404 error :
Code
# Block access to backup and source files. These files may be left by some
# text/html editors and pose a great security danger, when anyone can access
# them.
<FilesMatch "(\.(bak|config|dist|fla|inc|ini|log|psd|sh|sql|swp)|~)$">
  Order allow,deny
  Deny from all
  Satisfy All
</FilesMatch>
I couldn't even run the X3 for the first time, before I deleted the above.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: HTML white tree!

17 Nov 2014, 11:23

Artur wrote:http://phillip.com.pl/x3/

Same here.Seems like it wont load the gziped files properly :
Code
http://phillip.com.pl/x3/js/modernizr.imagevue.js
http://phillip.com.pl/x3/css/imagevue.skin.default.css
Caching issue?
Hmm I guess this htaccess pre-gzipped css+js files might be dodgy business. Question: At the time of writing this, if I click the links to the .js and .css files above, they download. Did you change anything related in the .htaccess?

PS! Please, you can try to disable the re-direct to compressed css/js files by commenting out lines 15-22 in .htaccess:
Code
# Add encoding and type to pre-compressed .jsgz and .cssgz files
#AddEncoding gzip jsgz cssgz
#AddType text/css cssgz
#AddType application/javascript jsgz

# Redirect to compressed gz file if it exists
#RewriteCond %{REQUEST_FILENAME}gz -f
#RewriteRule ^(.+)\.(css|js)$ $1.$2gz [L]
It will instead compress the files to gzip on-demand, which is almost as good. I just wanted to see if I could lighten the burden on server as much as possible, as speed is paramount.
Artur wrote:BTW.
With this .htaccess code, my serwer shows an 404 error :
Code
# Block access to backup and source files. These files may be left by some
# text/html editors and pose a great security danger, when anyone can access
# them.
<FilesMatch "(\.(bak|config|dist|fla|inc|ini|log|psd|sh|sql|swp)|~)$">
  Order allow,deny
  Deny from all
  Satisfy All
</FilesMatch>
I couldn't even run the X3 for the first time, before I deleted the above.
Interesting, thanks. The htaccess file may be a bit overdone, making server prone to errors. May need to disable a few features.
 
mymz
Posts: 6
Joined: 20 May 2014, 11:42

Re: HTML white tree!

17 Nov 2014, 11:29

I got the same problem with that white page on my root-server:

http://galleryv3.mymz.de
http://galleryv3.mymz.de/i.php // diag file

what am I doing wrong? The gallery seems not to load the css :/

Thank you for your help!
Last edited by mymz on 17 Nov 2014, 11:34, edited 1 time in total.
 
User avatar
Artur
Imagevue PowerPack
Posts: 510
Joined: 20 May 2011, 03:17

Re: HTML white tree!

17 Nov 2014, 11:33

mjau-mjau wrote:Hmm I guess this htaccess pre-gzipped css+js files might be dodgy business. Question: At the time of writing this, if I click the links to the .js and .css files above, they download. Did you change anything related in the .htaccess?
No, I deleted only the lines that I posted previously.
I have also noticed that they do download. They did that from begining.
mjau-mjau wrote:PS! Please, you can try to disable the re-direct to compressed css/js files by commenting out lines 15-22 in .htaccess:
Code
# Add encoding and type to pre-compressed .jsgz and .cssgz files
#AddEncoding gzip jsgz cssgz
#AddType text/css cssgz
#AddType application/javascript jsgz

# Redirect to compressed gz file if it exists
#RewriteCond %{REQUEST_FILENAME}gz -f
#RewriteRule ^(.+)\.(css|js)$ $1.$2gz [L]
It will instead compress the files to gzip on-demand, which is almost as good. I just wanted to see if I could lighten the burden on server as much as possible, as speed is paramount.
That partially works :) : The site loads fine but not images. Should the images be compressed "on the fly" also?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: HTML white tree!

17 Nov 2014, 11:55

mymz wrote:I got the same problem with that white page on my root-server:

http://galleryv3.mymz.de
http://galleryv3.mymz.de/i.php // diag file

what am I doing wrong? The gallery seems not to load the css :/

Thank you for your help!
@mymz
I released an update already, and you should be able to upload a few selective files to fix the CSS/JS issue:
viewtopic.php?f=51&t=8316

Let me know how it goes!
 
mymz
Posts: 6
Joined: 20 May 2014, 11:42

Re: HTML white tree!

17 Nov 2014, 11:56

mjau-mjau wrote:
mymz wrote:I got the same problem with that white page on my root-server:

http://galleryv3.mymz.de
http://galleryv3.mymz.de/i.php // diag file

what am I doing wrong? The gallery seems not to load the css :/

Thank you for your help!
@mymz
I released an update already, and you should be able to upload a few selective files to fix the CSS/JS issue:
viewtopic.php?f=51&t=8316

Let me know how it goes!
already done but same issue. I found out, that it tries to load the css documents in /gallery_root/css but they are located in /gallery_root/public/css - may that be the problem?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: HTML white tree!

17 Nov 2014, 11:59

Artur wrote:That partially works :) : The site loads fine but not images. Should the images be compressed "on the fly" also?
This is likely another issue altogether. In fact, it sounds like you are just seeing the spinning red loader in place of the images? This is something to do with the image resizer- and caching ... Could be somehow your server is not managing to resize the given images. Try to right-click the unloaded image, and click "view image" ... I suspect it might show an error message with "exhausted memory" or something ...
 
User avatar
Artur
Imagevue PowerPack
Posts: 510
Joined: 20 May 2011, 03:17

Re: HTML white tree!

17 Nov 2014, 12:05

mjau-mjau wrote:
Artur wrote:That partially works :) : The site loads fine but not images. Should the images be compressed "on the fly" also?
This is likely another issue altogether. In fact, it sounds like you are just seeing the spinning red loader in place of the images? This is something to do with the image resizer- and caching ... Could be somehow your server is not managing to resize the given images. Try to right-click the unloaded image, and click "view image" ... I suspect it might show an error message with "exhausted memory" or something ...
Yep, that's correct.
It shows me a 403 forbidden error, eg.:
http://phillip.com.pl/x3/render/w800-h0 ... buffet.jpg
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: HTML white tree!

17 Nov 2014, 12:07

mymz wrote:already done but same issue. I found out, that it tries to load the css documents in /gallery_root/css but they are located in /gallery_root/public/css - may that be the problem?
It should in fact load from your /gallery_root/css, because the htaccess does a "re-write" to load stuff from inside the "public" folder. It does sound like you may have some trouble with the htaccess though ...

Do you know if there is another URL to the link http://galleryv3.mymz.de like http://mymz.de/galleryv3/ or something? I am wondering if maybe that subdomain is interfering somehow. Is this your own server? There seems to be some trouble with standard htacess settings ...
 
mymz
Posts: 6
Joined: 20 May 2014, 11:42

Re: HTML white tree!

17 Nov 2014, 12:11

mjau-mjau wrote:It should in fact load from your /gallery_root/css, because the htaccess does a "re-write" to load stuff from inside the "public" folder. It does sound like you may have some trouble with the htaccess though ...

Do you know if there is another URL to the link http://galleryv3.mymz.de like http://mymz.de/galleryv3/ or something? I am wondering if maybe that subdomain is interfering somehow. Is this your own server? There seems to be some trouble with standard htacess settings ...
Strange. This is a virtual debian server on my own ESXi host but the main domain points to another server so it will be a little bit complicated to change the whole configuration. I will try to point my domain to that server for testing purposes.

Now mymz.de points directly to that gallery but the issue is still the same. Other .htaccess files are working properly.
Last edited by mymz on 17 Nov 2014, 12:18, edited 1 time in total.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: HTML white tree!

17 Nov 2014, 12:18

Artur wrote:Yep, that's correct.
It shows me a 403 forbidden error, eg.:
http://phillip.com.pl/x3/render/w800-h0 ... buffet.jpg
There are some problems with mod-rewrite on your server. The above URL basically points here:
http://phillip.com.pl/x3/app/parsers/sl ... buffet.jpg

... which as you can see, also does not work ... or creates an actual ERROR. However, the error is not related to the resizer, but to the mod re-write mechanism. The URL above, can also be written like this, which works fine!
http://phillip.com.pl/x3/app/parsers/sl ... buffet.jpg

We are even dealing with the exact same URLs as described in the documentation for the PHP plugin we use for resizing images:
https://github.com/lencioni/SLIR

Basically your mod_rewrite is not setup or working correctly, and this would explain previous issues also ...
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: HTML white tree!

17 Nov 2014, 12:29

mymz wrote:Now mymz.de points directly to that gallery but the issue is still the same. Other .htaccess files are working properly.
Perhaps double-check that the .htaccess file in your gallery root contains the following code between lines 58-62:
Code
# Rewrite any file calls to the public directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !public/
RewriteRule ^(.+)$ public/$1 [L] 
The above is a pretty standard re-write rule, and basically re-writes
x3docs/css/imagevue.skin.default.css
... to ...
x3docs/public/css/imagevue.skin.default.css
Thus both links will work, although the file is technically located inside the 'public' folder. The reason for the rewrite, is for security reasons so that what is placed in public, are actually public assets.

I would likely need to try toggling a few of the .htaccess settings in the file on your server. It could be there is another setting in there somewhere interfering.
 
mymz
Posts: 6
Joined: 20 May 2014, 11:42

Re: HTML white tree!

17 Nov 2014, 12:40

Thank you very much for your help. Had some issues with my mod.rewrite. I fixed it and the gallery seems to work.