Moved Zenpage and Zenphoto, now Zenpage not working

Hi

I'm a newbie, so if this is a silly question, I apologise!

I've set up Zenphoto and Zenpage with the default Zenpage theme. It all worked brilliantly and I was delighted.

I then moved the location of all of it on my host, and now Zenpage isn't working. It' generating urls for pages and news that can't be found.

Any ideas what I've broken?

Thanks

Mike

Comments

  • Most likely it is mod_rewrite that is not working. If you did not re-run setup after moving, you must do so. Also try turning off the Zenphoto mod_rewrite option.
  • Hi

    Thanks for the swift reply - really appreciated!

    Yes I re-ran setup after moving (by the way the tutorial is very helpful). Zenphoto works just fine, its Zenpage that doesn't.

    Tried turning off the mod_rewrite option. That's changed the url its looking for, but it's still not finding anything.

    Is there an equivalent 'setup' to run for Zenpage?

    Mike
  • As a further thought, the url it's trying to find for a News item is 'http://www.mikemccormac.co.uk/zenphoto/index.php?p='.

    Does that help in any way?

    Thanks again

    Mike
  • acrylian Administrator, Developer
    That is weird. It should be "p=news". Please check the Zenpage plugin option if maybe the field for the news page name is empty somehow.
  • Hi

    Checked that, and both news page name and pages page name were blank, so I made them news.php and pages.php.

    It's still not opening either News or Pages - though the url looks a bit more promising. It's now http://www.mikemccormac.co.uk/zenphoto/index.php?p=pages.php&title=Searching-this-site for a page called 'Searching this site'.

    In the text it describes changing the .htaccess file. If its any help, the text in mine as it relates to Zenpage is:

    #### Rewrite additions for zenpage
    RewriteRule ^pages/?$ index.php?p=pages [L,QSA]
    RewriteRule ^pages/(.*)/?$ index.php?p=pages&title=$1 [L,QSA]
    RewriteRule ^news/?$ index.php?p=news [L,QSA]
    RewriteRule ^news/([0-9]+)/?$ index.php?p=news&page=$1 [L,QSA]
    RewriteRule ^news/category/(.*)/([0-9]+)/?$ index.php?p=news&category=$1&page=$2 [L,QSA]
    RewriteRule ^news/category/(.*)/?$ index.php?p=news&category=$1 [L,QSA]
    RewriteRule ^news/archive/(.*)/([0-9]+)/?$ index.php?p=news&date=$1&page=$2 [L,QSA]
    RewriteRule ^news/archive/(.*)/?$ index.php?p=news&date=$1 [L,QSA]
    RewriteRule ^news/(.*)/?$ index.php?p=news&title=$1 [L,QSA]

    Thanks again

    Mike
  • acrylian Administrator, Developer
    Don't enter the ".php" suffix on that option It's `p=news` not `p=news.php` (same for pages of course). I see the comment on the option should probably mention that clearly.
  • Thanks Acrylian - that's worked and its brilliant. Thank you so much for your help!

    Mike
  • Is the option for naming the pages page and news page in the zenpage plugin tab removed in the latest builds? I can't find the fields anywhere. (It's for changing news.php and pages.php to my native language)

    Edit: I read that this function is removed after 1.4. Why was it removed anyway? I thought it was a nice option for language implementing. Any way to force the name change by editing any of the core files? Or would I have to edit practically all of them? Sounds like a bad idea but I would like to try because a lot of links is broken now.
  • For others with the same need: It's simpler to add rewrite rules in .htaccess:

    RewriteRule ^index.php?p=tekster&title=(.*)$ index.php?p=news&title=$1
    RewriteRule ^tekster/(.*)$ index.php?p=news&title=$1

    "tekster" is the name given to news.php earlier.
  • acrylian Administrator, Developer
    We removed it for our own convenience regarding code maintainablility and also to avoid issues when people forgot to change the htaccess files as well.

    Also virtually no one cares what the url actually tells. More important is the content of the page itself.
Sign In or Register to comment.