Member
Member
teamA   05-11-2009, 23:58
#1

I have a bit of doozy - zenPage is functioning just fine, however, when I try to view a single article it still shows the full blog.

You can see the issue here:
http://genatuso.com/blog

What's very odd is that I made this site on a test server first and everything worked fine. I created it on the real server and have not gotten this to work at all.

Could it have something to do with my htaccess file?
My news page has been renamed blog.

Here is the htaccess for the new site (that doesn't work correctly)
`

Rewrite additions for zenpage


RewriteRule ^pages/?$      index.php?p=pages [L,QSA]

RewriteRule ^pages/(.)/?$ index.php?p=pages&title=$1 [L,QSA]
RewriteRule ^blog/?$ index.php?p=news [L,QSA]
RewriteRule ^blog/([0-9]+)/?$ index.php?p=news&page=$1 [L,QSA]
RewriteRule ^blog/category/(.
)/([0-9]+)/?$ index.php?p=news&category=$1&page=$2 [L,QSA]
RewriteRule ^blog/category/(.)/?$ index.php?p=news&category=$1 [L,QSA]
RewriteRule ^blog/archive/(.
)/([0-9]+)/?$ index.php?p=news&date=$1&page=$2 [L,QSA]
RewriteRule ^blog/archive/(.)/?$ index.php?p=news&date=$1 [L,QSA]
RewriteRule ^blog/(.
)/?$ index.php?p=news&title=$1 [L,QSA]
And here is my htaccess from the temp site (http://goteama.com/temp/zenphoto/blog)

Rewrite additions for zenpage


RewriteRule ^pages/?$      index.php?p=pages [L,QSA]

RewriteRule ^pages/(.)/?$ index.php?p=pages&title=$1 [L,QSA]
RewriteRule ^blog/?$ index.php?p=blog [L,QSA]
RewriteRule ^blog/([0-9]+)/?$ index.php?p=blog&page=$1 [L,QSA]
RewriteRule ^blog/category/(.
)/([0-9]+)/?$ index.php?p=blog&category=$1&page=$2 [L,QSA]
RewriteRule ^blog/category/(.)/?$ index.php?p=blog&category=$1 [L,QSA]
RewriteRule ^blog/archive/(.
)/([0-9]+)/?$ index.php?p=blog&date=$1&page=$2 [L,QSA]
RewriteRule ^blog/archive/(.)/?$ index.php?p=blog&date=$1 [L,QSA]
RewriteRule ^blog/(.
)/?$ index.php?p=blog&title=$1 [L,QSA]
`
I tried copy pasting in the old code and got page not found errors. Any ideas?

EDIT: I just checked out what would happen if I turned off mod-rewrite and oddly enough even though the page is named blog, it has to be p=news not p=blog to work.

Member
Member
kagutsuchi   06-11-2009, 01:25
#2

Have you set the zenpage option for News page name correctly? I believe that might be your problem.

Member
Member
sbillard   06-11-2009, 02:24
#3

The p parameter references the zenphoto "page" script. If you so your script would need to be named blog.php.

Administrator
Administrator
acrylian   06-11-2009, 10:07
#4

You need to rename your news.php page to blog.php. Additionally you have to change all p=news on the htaccess file to p=blog. Additionally you need to set the plugin option for the news page ("blog" without the suffix!).

If you did all that correctly and it does not work we probably have a bug. This option is apparently rarely used and there might some issue sneaked in unnoticed.

Also, since you use a custom theme, is the blog/news.php page setup correctly?

Member
Member
teamA   06-11-2009, 21:46
#5

Thanks for the multiple responses.

I see what happened here - when I first migrated the site to the new server I was having problems with the Zenpage install - and renamed my file news.php. Due to, I assume, browser caching things seemed to work for the first bit. I now renamed the file back to blog.php and it's working.

Thanks for all the help. Zenphoto is great. We have a number of photographer clients and are excited by what Zenphoto has to offer.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.