Page 1 of 1

No images in Hiawata and PHP7

Posted: 04 Jan 2016, 06:50
by Gorescore
First of all ... happy new Year.

Hello,

have some problems with Imagevue X3 (fresh installation).

I use hiawatha as webserver and php7 via php-fpm.

Renamed .htaccess to disabled.htaccess to disable mod_rewrite.

But i see no images in the default gallery.
In the backend (Panel) i got a 404 error if i want to create cache.

In my logfiles i see no errors. Not in php-fpm-log and nothing in hiawatha log, too.

Website : http://www.mviess.de/x3

Thanks for any hints.

Marcus

Re: No images in Hiawata and PHP7

Posted: 04 Jan 2016, 09:28
by mjau-mjau
Gorescore wrote:Renamed .htaccess to disabled.htaccess to disable mod_rewrite.
Why did you rename it to disabled? mod_rewrite is necessary, and this is set by the .htaccess file.
Gorescore wrote:But i see no images in the default gallery.
The gallery depends on mod_rewrite, and therefore the resized images won't load from their "pretty" url's.
Gorescore wrote:In the backend (Panel) i got a 404 error if i want to create cache.
Mmm, sorry not sure what you mean "create cache".
Gorescore wrote:In my logfiles i see no errors. Not in php-fpm-log and nothing in hiawatha log, too.
Sorry, the problem is definitely because you don't have mod_rewrite active ... Im not familiar with "hiawatha", but hopefully it is similar to Apache. Anyway, here is your CHECK page:
http://www.mviess.de/x3/check/
(never mind the "warnings" on the top, they are not important)

There is a problem with mod_rewrite on your server ... Either it is not working, or you need to add the rewriteBase rule as mentioned at the bottom of the link above.

Re: No images in Hiawata and PHP7

Posted: 13 Jan 2016, 09:15
by Gorescore
Ok, i understand.

Hiawatha has something like mod_rewrite.

But i have to write the rules by myself.
Hiawatha is not able to use a .htaccess File

Can you "translate" the rewrite rules in a simple sentence for me.
So that i can "translate" the rules into hiawatha rules ?

Like i can work on the rules step by step and i am able, after every step, to see if my rule is working ?

I tried that with the .htaccess file with the included comments, but i had no success.
Still my gallery is not working.
Maybe you can bring a little light in the darkness :-)

Thanks,

Marcus

Re: No images in Hiawata and PHP7

Posted: 14 Jan 2016, 01:39
by mjau-mjau
We may be able to look into this at some point, but for now, I can only list for you the rewriterules that are required. See my post here:
https://forum.photo.gallery/viewtopic.p ... 686#p38686

Re: No images in Hiawata and PHP7

Posted: 17 Jan 2016, 14:51
by Gorescore
Hello,

worked a lot on the rewrite rules and got it running !

The gallery worked, pictures und styles are running well.
But it seemed not 100% finished. Got 2 little problems.

Panel -> Tools -> Menu -> Create Menu, i got a 404 Error. Where is this button pointing at ? The destination URL helps me to refine my rewrite rules.

And the second problem is really strange ! My Home button don't works.
Click on any Menu entry and back on the Home button i get a 404, too.
If i click on the Home button with "open in new tab" the site worked.

Maybe it helps if i post my rewrite rules :
Code
# Deny Access to .txt
Match ^/x3/(.+)\.(txt)$ DenyAccess

RequestURI isfile Return
Match ^/x3/public/ Return
Match ^/x3/(.*)\.(html|json|xml|atom|rss|rdf|txt)$ Rewrite /x3/index.php?/$1/

# Rewrite any calls to /render to the image parser
Match ^/x3/render/.* Rewrite /x3/app/parsers/slir/

Match ^/x3/panel/.* Rewrite /x3/panel/index.php
Match ^/x3/check/.* Rewrite /x3/check/index.php
Match ^/x3/app/.* Rewrite /x3/index.php
Match ^/x3/(.*)$ Rewrite /x3/index.php?/$1/
Thanks for help ... Marcus

Re: No images in Hiawata and PHP7

Posted: 18 Jan 2016, 00:24
by mjau-mjau
Gorescore wrote:Panel -> Tools -> Menu -> Create Menu, i got a 404 Error. Where is this button pointing at ? The destination URL helps me to refine my rewrite rules.
It runs an URL /services/menu/, which is basically just the menu output for your X3 menu. I am not sure why it doesn't work for you (if other pages do), but this process is not necessary anyway. It is just a process the caches the menu, something which is normally handled by the first visited page (after any changes) anyway.
Gorescore wrote:And the second problem is really strange ! My Home button don't works.
Click on any Menu entry and back on the Home button i get a 404, too.
If i click on the Home button with "open in new tab" the site worked.
It works when you click "home" because this is basically a different file, while clicking the menu loads a JSON file to serve the underlying ajax-nature of the X3 website. Unfortunately, there are still many problems with your website links ... Only the root page works basically, not sub-pages:
http://www.mviess.de/x3/galleries/

They only work when clicking the menu items, because this is loading json pages by ajax... You have actually got that working:
http://www.mviess.de/x3/galleries.json

I really wish I could give you some magic answers right here right now, but unfortunately my skills are limited in this area. I will need to look into this from a broader perspective.

Re: No images in Hiawata and PHP7

Posted: 18 Jan 2016, 15:52
by Gorescore
Thanks Karl,

your help is good ! It makes me better understand how x3 works and i can improve my rewrite rules.

This is what i have now :
Code
# Deny access to .txt  files
Match ^/x3/(.+)\.(txt)$ DenyAccess

# No rewrite for existing files and folder public
RequestURI isfile Return
Match ^/x3/public/ Return

# send files with (html|json|xml|atom|rss|rdf|txt) to /x3/index.php?
Match .*index\.json$ Rewrite /x3/index.php
Match ^/x3/(.+)\.(html|json|xml|atom|rss|rdf|txt)$ Rewrite /x3/index.php?/$1/

# Rewrite special folder calls to the index.php files
Match ^/x3/app/$ Rewrite /x3/index.php
Match ^/x3/panel/.* Rewrite /x3/panel/index.php
Match ^/x3/check/.* Rewrite /x3/check/index.php
Match ^/x3/render/.* Rewrite /x3/app/parsers/slir/index.php

# send everything else to /x3/index.php?
Match ^/x3/(.*)/$ Rewrite /x3/index.php?/$1/
Match ^/x3/(.*)$ Rewrite /x3/index.php?/$1/
And it seems the site is working a lot better than yesterday.

Can you make a quick check, please ? for me everything works now ...

Re: No images in Hiawata and PHP7

Posted: 18 Jan 2016, 23:09
by mjau-mjau
Gorescore wrote:And it seems the site is working a lot better than yesterday.
Wow, I'm impressed ... and it's really fast also!

The email-form is not working yet, but you are probably aware of that?