Member
Member
slaattnes   10-09-2009, 08:14
#1

I have a problem with "Pages". I have created a page and its link shows under Pages on the sidebar, but when I open it the page are blank. The weird thing is that news pages shows without any problem. When I view the source of the pages page it is blank. What can the problem be?

Administrator
Administrator
acrylian   10-09-2009, 09:02
#2

A few more infos maybe about what version and maybe a link?

Member
Member
slaattnes   10-09-2009, 10:01
#3

I am sorry:-) The version is 1.2.6 with zenpage and the link is: http://trondheimkunsthall.com/sider/Om-oss

As you can see I have changed the "pages" to "sider" but the problem is still there if I change everything back. I renamed the pages.php in the theme folder and in .htaccess in root and on the admin page Options - Plugins - Zenpage.

Administrator
Administrator
acrylian   10-09-2009, 12:11
#4

The entry one the troubleshooting guide is wrong in one part (and the option desc does not mention it), DON'T enter the ".php" suffix, just the new name "sider".
http://www.zenphoto.org/2009/03/troubleshooting-zenpage/#13

Also it may be possible that we have a bug here as this seems to be a rarely used feature. I see if I get the change to reproduce it today.

Member
Member
slaattnes   10-09-2009, 18:14
#5

Hi and thank you again. I have to upload a norwegian translation for zenphoto for all your help. I didn't have the .php suffix so the problem must reside somewhere else.

Member
Member
slaattnes   11-09-2009, 10:49
#6

I renamed News page to tekster and Pages page to sider in admin, then I renamed them manually in the zenpage theme folder in ftp, then I changed the .htaccess to:

Rewrite additions for zenpage


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

RewriteRule ^sider/(.)/?$ index.php?p=sider&title=$1 [L,QSA]
RewriteRule ^tekster/?$ index.php?p=tekster [L,QSA]
RewriteRule ^tekster/([0-9]+)/?$ index.php?p=tekster&page=$1 [L,QSA]
RewriteRule ^tekster/category/(.
)/([0-9]+)/?$ index.php?p=tekster&category=$1&page=$2 [L,QSA]
RewriteRule ^tekster/category/(.)/?$ index.php?p=tekster&category=$1 [L,QSA]
RewriteRule ^tekster/archive/(.
)/([0-9]+)/?$ index.php?p=tekster&date=$1&page=$2 [L,QSA]
RewriteRule ^tekster/archive/(.)/?$ index.php?p=tekster&date=$1 [L,QSA]
RewriteRule ^tekster/(.
)/?$ index.php?p=tekster&title=$1 [L,QSA]

Now the page under news works more or less fine but I get this message when I open the url http://trondheimkunsthall.com/temp/tekster/kommer-snart: tekster.php is not a valid getRating() context.

In the page under pages I only get a blank page: http://trondheimkunsthall.com/temp/sider/Om-oss. Have I done a error in .htaccess maybe?

Member
Member
slaattnes   11-09-2009, 11:00
#7

I edited the "link back to your main site" to http://trondheimkunsthall.com/temp/sider and now both the pages and news works. Both returns "is not a valid getRating() context" though and nothing of the normal layout like the sidebar.

Member
Member
slaattnes   11-09-2009, 12:00
#8

I found the problem: If you have to raitings plugin installed you must edit functions-raiting.php in plugins/raiting and change news and pages to the renamed .php. I wonder how many other plugins which points to news.php and pages.php? There should be a warning on the admin page that if you have this or that plugin you also have to edit those files.

Administrator
Administrator
acrylian   15-09-2009, 10:18
#9

Thanks for the note. If this has to be edited in other files that is acutally a bug, they all should use the constants ZENPAGE_PAGES and ZENPAGE_NEWS to avoid this.

Member
Member
slaattnes   15-09-2009, 10:34
#10

The same applies for comment_form.php. I got it fixed by editing the news and pages names in the php. Are there other known plugins which have this problem?

Administrator
Administrator
acrylian   15-09-2009, 10:43
#11

As I said they should not but we would appreaciate your help in finding more issues.

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