Blank pages

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Adrian

Blank pages

Post by Adrian »

Suddenly (after I suppose some upgrades on Gentoo machine) news page and contact page (feedbackform module) in my cmsms 0.11.1 installation became blank (totally blank, no single character in source code). I tried to do something, upgraded cmsms to 0.11.2, upgraded feedbackform module, clear cache.. after several minutes all pages became blank :( admin pages still works and if I enabled "site is down for maintenance" I can see this message.

After enabling debug in config.php I can't see any additional messages. But after enabling "site is down..." I can see debug message. I enabled logging in log4php.properties, but no results - log.txt doesn't contain any errors.

server configuration: apache 2.0.55, php 5.0.5, postgresql 8.0.4.

this is a "production" web page, please help.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Blank pages

Post by Ted »

Production and gentoo are a bad combination.  :)

Any idea what was upgraded?  Is is possible that display_errors is now off in php.ini?
cyberman

Re: Blank pages

Post by cyberman »

Adrian wrote: server configuration: apache 2.0.55, php 5.0.5, postgresql 8.0.4.
Can you try a switch back to PHP 4.4.x ?

Sometimes there are problems with PHP 5  ??? ...
Adrian

Re: Blank pages

Post by Adrian »

ok, turning display_errors on helped :)

Fatal error: Call to undefined function token_get_all() in /lib/smarty/core/core.write_compiled_include.php on line 45

Unfortunately cmsms in not the only one php site on this server so I can't downgrade php just like that. I will some solution now.
a
Adrian

Re: Blank pages

Post by Adrian »

I've found disabled gentoo use flag "tokenizer" for php5, after recompiling everything works fine! only news page shows errors:

Fatal error: Call to a member function FetchRow() on a non-object in /modules/News/News.module.php on line 537
Adrian

Re: Blank pages

Post by Adrian »

fixed 10 seconds after I post this message ;) incorrect empty number="" attribute in news module call. but help for news module is confusing:

(optional) number="5" - Maximum number of items to display =- leaving empty will show all items.

and error is strange, please fix it :)
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm

Re: Blank pages

Post by Ted »

Yeah, that's not correct.  Leaving empty will cause an error.  Not putting number= in there at all will default to 5.

Thanks
Adrian

Re: Blank pages

Post by Adrian »

5 in each category? or total? I can see much more news than 5 ;)
Adrian

Re: Blank pages

Post by Adrian »

{cms_module module="news" category="*"}

6 news in "software releases" category
3 news in "customers and partners" category
1 in "services" category
1 in "general" category

and I can see them all :)
Locked

Return to “CMSMS Core”