Page 1 of 2
blank page after a successful installation
Posted: Thu May 11, 2006 5:50 pm
by bruco
After having installed CMSMS successfully, when opening the local site home page I get a blank page.

I have read several messages about such problem but none of them was resolving.
The home site page is blank, but I can login as admin regurarly!
The page is really blank, that is empty: no html lines are written in.
I have already installed CMSMS on a XP machine whithout any problem.
This time I'm running SuSE 10.0, Mysql 4.1.13 and PHP 5.0.4.
What I have done:
- set debug variable ON (but I see some debug information only if I do login as admin)
- run again install/index.php (but nothing changes)
- added "error_reporting (E_ALL);" in index.php (but it seems to me that nothing changes)
- downgraded PHP to version 4: I got a blank page in site view and also in admin login page, so I returned to PHP 5.
I am really demoralized. Can somebody help me?
Re: blank page after a successful installation
Posted: Thu May 11, 2006 6:52 pm
by bruco
If it can be useful, I have put some echo instructions in index.php and I have seen that there is a suspect code line:
Code: Select all
$html = $smarty->fetch('template:'.$pageinfo->template_id) . "\n";
I suppose that there is a problem because the first echo after the line is not shown. Removing the line I see in the page several debug messages.
At that line I have:
Code: Select all
$html = ""
$smarty = Object id #3
$pageinfo = Object id #5
Re: blank page after a successful installation
Posted: Fri May 12, 2006 10:45 am
by tsw
Okay, its seems there are few people with these kind of problems,
Its a smarty problem, what version of cmsms are you running?
Re: blank page after a successful installation
Posted: Fri May 12, 2006 12:09 pm
by Russ
If you were upgrading a previous site then ensure that you have re-copied any modules, plugins or user tags that don't come with the default install, that are reference within your site. This can give blank pages.
Hope this helps,
Russ
Re: blank page after a successful installation
Posted: Fri May 12, 2006 12:34 pm
by leMich
is php-tokenizer installed (for php5) ? It was my problem, once installed all worked fine.
Re: blank page after a successful installation
Posted: Fri May 12, 2006 8:01 pm
by bruco
zlinky wrote:
is php-tokenizer installed (for php5) ? It was my problem, once installed all worked fine.
I have installed it following your suggestion, but nothing changes.
Re: blank page after a successful installation
Posted: Fri May 12, 2006 8:02 pm
by bruco
Russ wrote:
If you were upgrading a previous site then ensure that you have re-copied any modules, plugins or user tags that don't come with the default install, that are reference within your site. This can give blank pages.
No upgrade or strange plugins. Simply a new installation.
Re: blank page after a successful installation
Posted: Fri May 12, 2006 8:05 pm
by bruco
tsw wrote:
Okay, its seems there are few people with these kind of problems,
Its a smarty problem, what version of cmsms are you running?
0.12.1 Savusavu
I have no experience with PHP, but if it can be useful I am available to try some code debugging...
Re: blank page after a successful installation
Posted: Fri May 12, 2006 8:58 pm
by bruco
tsw wrote:
Okay, its seems there are few people with these kind of problems,
Its a smarty problem, what version of cmsms are you running?
A news: after installing 0.12.2, the page is not more blank.
I do not see the correct html home site page, but I see the following string:
{nocache:c8a0299a75d228653426d534155d5df5#1} {/nocache:c8a0299a75d228653426d534155d5df5#1} {nocache:c8a0299a75d228653426d534155d5df5#2} {/nocache:c8a0299a75d228653426d534155d5df5#2} {nocache:c8a0299a75d228653426d534155d5df5#3}
I hope this can be useful to solve the problem.
Edit: sorry, a false news. After clearing the cache from admin panel, the home page still continues to be blank (empty).
Re: blank page after a successful installation
Posted: Tue May 16, 2006 1:24 pm
by bruco
tsw wrote:
Its a smarty problem, what version of cmsms are you running?
Any hint on how to solve such a problem?
Re: blank page after a successful installation
Posted: Fri May 26, 2006 8:19 pm
by bruco
tsw wrote:
Okay, its seems there are few people with these kind of problems,
Its a smarty problem, what version of cmsms are you running?
Smarty team suggested me to ask again to CMS developer...
http://www.phpinsider.com/smarty-forum/ ... 1133#31133
Re: blank page after a successful installation
Posted: Fri May 26, 2006 9:41 pm
by tsw
Is this stock suse 10.0 installation? if so Ill install suse in one of my test machines and try to recreate...
Re: blank page after a successful installation
Posted: Sun May 28, 2006 3:02 pm
by bruco
tsw wrote:
Is this stock suse 10.0 installation? if so Ill install suse in one of my test machines and try to recreate...
Yes, SuSE 10.0 64bit edition. Thanks for your help.
Edit: other useful informations (I hope):
> rpm -qa | grep php
php5-zlib-5.0.4-9
phpMyAdmin-2.6.3pl1-3
php5-bz2-5.0.4-9
php-doc-5.0.3-4
php5-mcrypt-5.0.4-9
php5-tokenizer-5.0.4-9
selfphp-2.0-2
php5-iconv-5.0.4-9
php5-5.0.4-9
php5-gd-5.0.4-9
php5-mysql-5.0.4-9
apache2-mod_php5-5.0.4-9
> rpm -qa | grep apache
apache2-prefork-2.0.54-10.3
apache2-2.0.54-10.3
apache2-mod_php5-5.0.4-9
Re: blank page after a successful installation
Posted: Mon May 29, 2006 12:19 pm
by tsw
Sorry for the late reply.
My test server motherboard has died, Ill install suse on a vmware machine..
in the meantime take a look at this patch that was submitted few days ago
http://dev.cmsmadesimple.org/tracker/in ... 6&atid=103
Re: blank page after a successful installation
Posted: Tue May 30, 2006 6:35 pm
by bruco
Maybe something has gone wrong...
> patch include.php include.php.patch
patching file include.php
Hunk #1 FAILED at 106.
1 out of 1 hunk FAILED -- saving rejects to file include.php.rej
Here is include.php.rej
Code: Select all
***************
*** 106,116 ****
debug_buffer('loading smarty');
require($dirname.'/lib/smarty/Smarty.class.php');
debug_buffer('loading adodb');
- if ($config['use_adodb_lite'] == false || (isset($USE_OLD_ADODB) && $USE_OLD_ADODB == 1 && file_exists(dirname(__FILE__)."/lib/adodb/adodb.inc.php")))
- require($dirname."/lib/adodb/adodb.inc.php");
- else
- require($dirname."/lib/adodb_lite/adodb.inc.php");
debug_buffer('loading page functions');
require($dirname."/lib/page.functions.php");
debug_buffer('loading content functions');
--- 106,145 ----
debug_buffer('loading smarty');
require($dirname.'/lib/smarty/Smarty.class.php');
+
debug_buffer('loading adodb');
+ $loaded_adodb = false;
+ if ($config['use_adodb_lite'] == false || (isset($USE_OLD_ADODB) && $USE_OLD_ADODB == 1))
+ {
+ # CMSMS is configured to use full ADOdb
+ if (! file_exists(dirname(__FILE__)."/lib/adodb/adodb.inc.php"))
+ {
+ # Full ADOdb cannot be found, show a debug error message
+ $gCms->errors[] = "CMS Made Simple is configured to use the full ADOdb Database Abstraction library, but it's not in the lib/adodb directory. Switched back to ADOdb Lite.";
+ }
+ else
+ {
+ # Load (full) ADOdb
+ require($dirname."/lib/adodb/adodb.inc.php");
+ $loaded_adodb = true;
+ }
+ }
+ if (!$loaded_adodb)
+ {
+ # The ADOdb library is not yet included, try ADOdb Lite
+ if (file_exists(dirname(__FILE__)."/lib/adodb_lite/adodb.inc.php"))
+ {
+ # Load ADOdb Lite
+ require($dirname."/lib/adodb_lite/adodb.inc.php");
+ }
+ else
+ {
+ # ADOdb cannot be found, show a message and stop the script execution
+ echo "The ADOdb Lite database abstraction library cannot be found, CMS Made Simple cannot load.";
+ die();
+ }
+ }
+
debug_buffer('loading page functions');
require($dirname."/lib/page.functions.php");
debug_buffer('loading content functions');