Topic: index page not working with php 5.2
drphp
avatar
Registered User
Registered User
Posts: 1

Posted:
6.Apr 2007 - 14:00

Hi

I upgraded my PHP from 4 to 5 and now my site is not working it shows me Blank Page.

can anyone help please?

BTW my register_globals is ON, I wrote ini_set("register_globals","Off"); on top of the index page but no affect...

I guess include path is giving problem because on index page i put echo points in different lines, the line before the call of pnInit() is not displaying it means it is breaking there....

then I went to the file containing pnInit() and checked there it was including files with path

include/

which was wrong because classes include folder is up one level



// user and modules system includes
include 'includes/pnUser.php';
include 'includes/pnMod.php';


now this is from pnAPI.php which is itself in includes folder then why it is looking for another includes folder?

I am lost please help, i am getting empty index page..


thanks a lot
Topiatic
avatar
Professional
Professional
Posts: 1680

Posted:
6.Apr 2007 - 20:11

All scripts (including module scripts) are executed from index.php since that is the only file you actually open with the browser. Even in my modules I must cast my include paths from the PostNuke main directory (eg. modules/ModuleName/pnincludes/filename.inc) so that is correct the way you have it set up.

What version of PostNuke are you using? Versions prior to 0.76 have session bugs with PHP 5+ (it may be PHP 5.2 specificaly but I'm not sure).

--
Under Construction!
ellegaard
avatar
Softmore
Softmore
Posts: 51

Posted:
6.Apr 2007 - 20:15

Try to change the theme to ExtraLite, just to rule out any theme specific errors

--
Cars are afraid of trains...

Userfriendly design based on open source CMS PostNuke at www.eid.dk