blank pages from front end, but backend preview is perfect

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
prasado
New Member
New Member
Posts: 6
Joined: Thu Nov 02, 2006 2:45 pm
Location: Denmark

blank pages from front end, but backend preview is perfect

Post by prasado »

I have made a fresh install, version 1.02, and everything went well. Backend works perfectly, including previewing from the "Edit content" page. But viewed from the front end the page is blank, with no html code in it at all.
I am not a techie, so please be quite specific if you have suggestions on what to do.

You can view the site here (except it's blank): www.lodbjerg.dk

Linux, Apache 1.3.37, PHP 4.4.4, MySQL 4.0.21
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: blank pages from front end, but backend preview is perfect

Post by tsw »

anything in server logs?

what about if you turn debug = true in config.php

is php configured to not show any error messages?

and then there is one smarty configuration which I cant remember right now, try searching the forum this has come up for some people before also

hope this helps
prasado
New Member
New Member
Posts: 6
Joined: Thu Nov 02, 2006 2:45 pm
Location: Denmark

Re: blank pages from front end, but backend preview is perfect

Post by prasado »

Thanks for the input, tsw.

I turned on debug as you suggested. Where can I see the result of that?

I am not a technical person, so I also have to ask: Where would I see if php is configured to show error messages? I have access to phpmyadmin on the server - is that the place to see it and to edit the setting?

As for the smarty thing: I am unable to find anything that makes any sense in regard to solving this problem. Can you give me an idea of what a smarty might do that could help in this regard?
prasado
New Member
New Member
Posts: 6
Joined: Thu Nov 02, 2006 2:45 pm
Location: Denmark

Re: blank pages from front end, but backend preview is perfect

Post by prasado »

Selecting the Preview tab in the "Edit content" in the backend I can for a brief moment see a page with error messages - before the page is rendered. Opening the frame with the rendered page in its own window brings out the following error messages:
Warning: fopen() [function.fopen]: Unable to access /home/virtual/lodbjerg.dk/public_html/tmp/cache/cmspreviewkNheES in /home/virtual/lodbjerg.dk/public_html/lib/content.functions.php on line 282

Warning: fopen(/home/virtual/lodbjerg.dk/public_html/tmp/cache/cmspreviewkNheES) [function.fopen]: failed to open stream: No such file or directory in /home/virtual/lodbjerg.dk/public_html/lib/content.functions.php on line 282

Warning: filesize() [function.filesize]: Stat failed for /home/virtual/lodbjerg.dk/public_html/tmp/cache/cmspreviewkNheES (errno=2 - No such file or directory) in /home/virtual/lodbjerg.dk/public_html/lib/content.functions.php on line 283

Warning: fread(): supplied argument is not a valid stream resource in /home/virtual/lodbjerg.dk/public_html/lib/content.functions.php on line 283

Warning: fclose(): supplied argument is not a valid stream resource in /home/virtual/lodbjerg.dk/public_html/lib/content.functions.php on line 284

Warning: unlink(/home/virtual/lodbjerg.dk/public_html/tmp/cache/cmspreviewkNheES) [function.unlink]: No such file or directory in /home/virtual/lodbjerg.dk/public_html/lib/content.functions.php on line 285
Does that make sense to anyone?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: blank pages from front end, but backend preview is perfect

Post by tsw »

make sure you have tmp/cache folder and apache process has read write access to it, then clear cache.

it seems that cmsms cant find its cache files (either they cant be created or cant be read)
prasado
New Member
New Member
Posts: 6
Joined: Thu Nov 02, 2006 2:45 pm
Location: Denmark

Re: blank pages from front end, but backend preview is perfect

Post by prasado »

tws, I did what you suggested and the result is still the same, blank screen.

The Cache folder only contains one file; contentcache.php

Are there supposed to be more docs in it?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: blank pages from front end, but backend preview is perfect

Post by tsw »

well its a cache, sometimes it has lots of files and sometimes none :)


check your php settings, max_memory limit and safe mode esp.

you can create a php file with this content



to see php settings
prasado
New Member
New Member
Posts: 6
Joined: Thu Nov 02, 2006 2:45 pm
Location: Denmark

Re: blank pages from front end, but backend preview is perfect

Post by prasado »

During installation cmsMS reported that 11 Mb is allocated. I am trying to convince my ISP to increase that.

I ran the php test, you can see it here:

http://lodbjerg.dk/phptest.php

Does that look as it should?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: blank pages from front end, but backend preview is perfect

Post by tsw »

safe mode is on, so it might be that php script doesnt have rights to either write or read the tmp folder..
ogo

Re: blank pages from front end, but backend preview is perfect

Post by ogo »

the same problem

Debug = true

Code: Select all

[tt]Debug: (3.299999999995E-05) - (491160)

loading smarty

Debug: (0.013865) - (744224)

loading adodb

Debug: (0.017535) - (801048)

loading page functions

Debug: (0.026663) - (949664)

loading content functions

Debug: (0.035085) - (1116016)

loading pageinfo functions

Debug: (0.037016) - (1142936)

loading translation functions

Debug: (0.041288) - (1157872)

loading events functions

Debug: (0.049494) - (1236976)

done loading files

Debug: (0.134924) - (1887792)

<br>
(mysql): SELECT sitepref_name, sitepref_value from wwms_siteprefs<br>
 Error (0): <br>

Debug: (0.140952) - (1926088)

<br>
(mysql): SELECT * FROM wwms_userplugins<br>
 Error (0): <br>

Debug: (0.278665) - (2372976)

<br>
(mysql): SELECT * FROM wwms_modules ORDER BY module_name<br>
 Error (0): <br>

Debug display of 'End of include':(0.451343) - (3589488)

Debug: (0.451674) - (3552000)

Session found.  Moving on...

Debug: (0.475901) - (3893368)

Session found.  Moving on...

Debug: (0.510817) - (3894840)

<br>
(mysql): SELECT preference, value FROM wwms_userprefs WHERE user_id = '1'<br>
 Error (0): <br>

Debug: (0.511518) - (3896040)

Session found.  Moving on...

Debug: (0.528491) - (3971736)

Session found.  Moving on...

Debug: (0.5526) - (3974496)

<br>
(mysql): SELECT DISTINCT permission_name FROM wwms_user_groups ug INNER JOIN wwms_group_perms gp ON gp.group_id = ug.group_id INNER JOIN wwms_permissions p ON p.permission_id = gp.permission_id WHERE ug.user_id = '1'<br>
 Error (0): <br>

Debug: (0.620935) - (3997328)

Session found.  Moving on...

Debug: (0.622296) - (3997968)

Session found.  Moving on...

Debug: (0.623548) - (3998456)

Session found.  Moving on...

Debug: (0.656062) - (4008856)

Session found.  Moving on...

Debug: (0.658571) - (4013200)

Session found.  Moving on...

Debug: (0.681648) - (4085168)

<br>
(mysql): SELECT htmlblob_id FROM wwms_additional_htmlblob_users WHERE user_id = '1'<br>
 Error (0): <br>

Debug: (0.684905) - (4085752)

<br>
(mysql): SELECT content_id FROM wwms_content WHERE owner_id = 1<br>
 Error (0): <br>

Debug: (0.709686) - (4087048)

<br>
(mysql): SELECT content_id FROM wwms_additional_users WHERE user_id = '1'<br>
 Error (0): <br>

Debug: (0.760806) - (4189080)

<br>
(mysql): SELECT bookmark_id, user_id, title, url FROM wwms_admin_bookmarks WHERE user_id = '1' ORDER BY title<br>
 Error (0): <br>

Debug: (0.76492) - (4177408)

<br>
(mysql): SELECT bookmark_id, user_id, title, url FROM wwms_admin_bookmarks WHERE user_id = '1' ORDER BY title<br>
 Error (0): <br>

[/tt]
no other errors found.
so thats wrong?
Last edited by ogo on Thu Nov 23, 2006 5:21 pm, edited 1 time in total.
ogo

Re: blank pages from front end, but backend preview is perfect

Post by ogo »

so no  suggestion..  :-\
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: blank pages from front end, but backend preview is perfect

Post by tsw »

which version is this?
ogo

Re: blank pages from front end, but backend preview is perfect

Post by ogo »

cmsmadesimple-1.0.2
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: blank pages from front end, but backend preview is perfect

Post by tsw »

its something to do with safe mode, but I cant think of what. most probably permissions and ownerships.
Locked

Return to “[locked] Installation, Setup and Upgrade”