File not found (site updated from 1.4.1.6 to 1.4.9

Hello, I've upgraded my online site from 1.4.1.6 to 1.4.9.

Now I have problem with navigation: from menu, if I click a link to custom page (zenpage) I Got "file not found".
Example URL: http://my.examplesite.ext/zenphoto/page/gallery

But if I visit my local site everything is ok, navigation works fine.

The mod rewrite is checked
The .htacces file seems good..

# htaccess file version 1.4.5;
# Rewrite rules are now handled by PHP code
# See the file "zenphoto-rewrite.txt" for the actual rules
#
# These rules redirect everything not directly accessing a file to the Zenphoto index.php script
#
<IfModule mod_autoindex.c>
IndexIgnore *
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteBase /zenphoto

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [L]

RewriteRule ^.*/?$ index.php [L,QSA]

</IfModule>

Thank you

Comments

  • acrylian Administrator, Developer
    Which theme? Does a theme file `gallery.php` exist? Is Zenphoto installed in the folder `zenphoto`?
  • Thank you for your quick answer!

    The theme is Zenpage.

    On server, Zenphoto is installed in the "zenphoto" folder.

    In local, Zenphoto is installed under http://localhost/ZENPHOTO1.4.9/zenphoto/ but on the server I have do setup and update htaccess has not "ZENPHOTO1.4.9"
  • ...and, yes, a theme file gallery.php exist.
  • same problem with other links (from main menu) such as "http://my.examplesite.ext/zenphoto/category/ARTICLES/"
  • fretzl Administrator, Developer
    Really don't know what is going on there but you could try to delete the .htaccess file and run setup again.
  • I have deleted the .htaccess and then run setup again.

    During setup I click on "Make setup create the file" (htaccess) button and then the page reloads, but still showing the "Make setup create the file" button and no htaccess file was created.
  • (just for info: there is another setup warning: "Setup could not create a robots.txt file")
  • acrylian Administrator, Developer
    If Zenphoto is installed in the folder `zenphoto` the rewrite base should be `/zenphoto` as you mentioned above it is. If that is and it is not working your real server either does not support modrewrite or you didn't enable the option on the backend. Or something else.

    You should review your server error log, possibly permisions issues.
  • In the admin panel I've enabled the "mod rewrite" check box.
    But now I saw this alert "Setup did not detect a working mod_rewrite facility."

    In the Apache httpd.conf file the rewrite_module is loaded, but I will test if is really enabled.

    Thank you
  • In the Apache config I have changed AllowOverride None to AllowOverride All inside the DocumentRoot Directory Directive, and now it works!!

    :)

    thank you
  • acrylian Administrator, Developer
    All right, good you worked it out! :)
Sign In or Register to comment.