blank page after a successful installation

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.
bruco

blank page after a successful installation

Post 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?
Last edited by bruco on Thu May 11, 2006 5:52 pm, edited 1 time in total.
bruco

Re: blank page after a successful installation

Post 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
Last edited by bruco on Thu May 11, 2006 6:56 pm, edited 1 time in total.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: blank page after a successful installation

Post 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?
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: blank page after a successful installation

Post 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
leMich
Forum Members
Forum Members
Posts: 68
Joined: Fri Jan 06, 2006 9:39 am

Re: blank page after a successful installation

Post by leMich »

is php-tokenizer installed (for php5) ? It was my problem, once installed all worked fine.
bruco

Re: blank page after a successful installation

Post 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.
bruco

Re: blank page after a successful installation

Post 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.
bruco

Re: blank page after a successful installation

Post 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...
bruco

Re: blank page after a successful installation

Post 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).
Last edited by bruco on Fri May 12, 2006 9:04 pm, edited 1 time in total.
bruco

Re: blank page after a successful installation

Post by bruco »

tsw wrote: Its a smarty problem, what version of cmsms are you running?
Any hint on how to solve such a problem?
bruco

Re: blank page after a successful installation

Post 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
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: blank page after a successful installation

Post by tsw »

Is this stock suse 10.0 installation? if so Ill install suse in one of my test machines and try to recreate...
bruco

Re: blank page after a successful installation

Post 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
Last edited by bruco on Sun May 28, 2006 3:10 pm, edited 1 time in total.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: blank page after a successful installation

Post 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
bruco

Re: blank page after a successful installation

Post 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');

Last edited by bruco on Tue May 30, 2006 6:38 pm, edited 1 time in total.
Locked

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