Page 1 of 1
Blank pages
Posted: Mon Feb 13, 2006 9:58 pm
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.
Re: Blank pages
Posted: Tue Feb 14, 2006 10:59 am
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?
Re: Blank pages
Posted: Tue Feb 14, 2006 12:07 pm
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

...
Re: Blank pages
Posted: Wed Feb 15, 2006 2:01 pm
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
Re: Blank pages
Posted: Wed Feb 15, 2006 3:00 pm
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
Re: Blank pages
Posted: Wed Feb 15, 2006 3:04 pm
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

Re: Blank pages
Posted: Wed Feb 15, 2006 4:13 pm
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
Re: Blank pages
Posted: Thu Feb 16, 2006 11:06 am
by Adrian
5 in each category? or total? I can see much more news than 5

Re: Blank pages
Posted: Thu Feb 16, 2006 7:29 pm
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
