ZenphotoCMS Forum
Single News Article View Not Working - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: Single News Article View Not Working (/thread-6086.html)



Single News Article View Not Working - teamA - 05-11-2009

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.




Single News Article View Not Working - kagutsuchi - 06-11-2009

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




Single News Article View Not Working - sbillard - 06-11-2009

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




Single News Article View Not Working - acrylian - 06-11-2009

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?




Single News Article View Not Working - teamA - 06-11-2009

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.