Blank admin page after 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.
User avatar
Darwin Web Design
Forum Members
Forum Members
Posts: 212
Joined: Tue May 30, 2006 3:12 am

Blank admin page after successful installation

Post by Darwin Web Design »

Hello there
I've already noticed some other people have this same problem whether its a blank admin page after install or a blank website page... I still do not understand how to rectify the problem however as I'm not a programmer and perhaps just need an extra hint or two.  In my case, the installation seemed to go fine and the welcome web page is all up and running with each page working just fine.  The admin login section however returns a blank page, a white screen.

I've installed the CMS on a remote web hosting service:
PHP 4.4.2
Powered by Zend
Linux
mySQL 5.0.19

From what I can gather this problem has something to do with session.save_handler and it must be set to "files" not "user".  The problem is that I don't know which file to edit to change this setting. (and I don't really know what this means as I'm not a programmer).

Apparently I must change the save path from /tmp to the full directory of my home directory and to also change the code to make it set to "files"...  but which file do I do this to?  or is it a few files to edit?

Could someone possibly please tell me which file/s to edit and what I need to type in the file? 

Any additional hints would be greatly appreciated.

Thanks  ::)
User avatar
Darwin Web Design
Forum Members
Forum Members
Posts: 212
Joined: Tue May 30, 2006 3:12 am

Re: Blank admin page after successful installation

Post by Darwin Web Design »

Hi again
Well it seems that I may have been able to solve my own problem (I hope).  After lots of research and thinking I found a solution and thought I'd share it here incase it could help someone else:

1) I created a directory and uploaded to the server called "_sessions"
2) I added the following to the "include.php" file

ini_set("session.save_handler", "files");
session_save_path ("full url/_sessions/");


***

The full url as above on the second line, was something I had to get from my hosting company because it was longer and different to the usual http://www. etc type of address.  It had more folders.

Also ofcourse you could call the sessions folder something other than "_sessions" and then make sure you repeat the same name in the second line of the code.

I actually firstly put the code above towards the bottom of the include.php file but nothing happened infact I also lost my test/demo website.  I then moved it to the top of the file and it worked and now I can view everything, the website, the login, admin - the lot.

I hope what I've done is correct and won't muck up anything else as it was a bit of trial and error.  I'm not a programmer and have next to zilch experience with PHP etc.

It turns out that the web hosting I'm using has their session.save_handler set to "user" by default so the setting of "files" in the "include.php" file over-rides this default setting and gives it to all other php files within CMSMS folders.

This is also the case with the session folder, normally on a server it is defaulted to /tmp but on mine it wasn't, so I had to tell it to go to my URL/folder.

Hope this helps someone as I'm often getting help from other people from the forums and always appreciate it.  Good luck!
:P
JPMStation

Re: Blank admin page after successful installation

Post by JPMStation »

Also got the Problem that I can't open my the Admin Page and tried your way of solving it but wouldn't work.
Does anyone by chance know a different way of solving it?
???
culturec

Re: Blank admin page after successful installation

Post by culturec »

Me too, and I find noway to solve this. Maybe because of apache2
JPMStation

Re: Blank admin page after successful installation

Post by JPMStation »

Can't be Apache 2 got it running on my Offlineserver without any problems. But Backend won't run on my Webserver  :'(!
Webserver-Adress:
Frontend: http://www.jpmstation.de/cmsmadesimple/
Backend: http://www.jpmstation.de/cmsmadesimple/admin/

Anyone got an Idea  ????
Piratos

Re: Blank admin page after successful installation

Post by Piratos »

This means Firefox (in german):
Fehler: Umleitungsfehle

Die aufgerufene Website leitet die Anfrage so um, dass sie nie beendet werden kann.
This means that it is a recursiv redirection.
JPMStation

Re: Blank admin page after successful installation

Post by JPMStation »

And what can I do about it? Searched google but haven't found a solution.  ??? Need help.
Piratos

Re: Blank admin page after successful installation

Post by Piratos »

This may be a session problem with your webserver. See the solution in this thread 2. posting.
Piratos

Re: Blank admin page after successful installation

Post by Piratos »

The solution of Aussie Gecko works and here is the generic solution:

1.  create a folder with the name sessions in the root of the cms.

2. open include.php and edit this lines

from

#Setup session with different id and start it
@session_name("CMSSESSID");

to this

#Setup session with different id and start it
@ini_set("session.save_handler", "files");
@session_save_path ($dirname."/sessions/");
@session_name("CMSSESSID");


That is all.
neeltje57

Re: Blank admin page after successful installation

Post by neeltje57 »

I also had this problem, a blank screen after a succesfull installation. In my case the problem was that although the installation said it was sucesfull, it was not. When i looked in the database, it was completey empty, no tables, nothing.

The installation obviously did not check if the data is loaded ok. In my case, i had to change 'localhost' to 'mysql' and re-install (yahoo webhosting requires 'mysql' and not 'localhost' although it says 'localhost' in phpmyadmin).

Maybe this will help you.

Success.

.
JPMStation

Re: Blank admin page after successful installation

Post by JPMStation »

Thanks 4 all the post. Looked up my database and checked but installation worked 100%ly. I tried another 1000 times to use Aussie Gecko Method but it won't work in my case. There must be a different solution. I am hosting at all-inkl.com maybe there is someone here hosting cmsmadesimple there too? Close to giving it up.  :-[!
JPMStation

Re: Blank admin page after successful installation

Post by JPMStation »

So as I simply am not finding any solution I thought I'll start off by posting my include.php. Maybe someone would be so kind to check that it's okay.
include.php: http://www.jpmstation.de/include.txt
Piratos

Re: Blank admin page after successful installation

Post by Piratos »

That looks good - have you write permissions on sessions folder ?
JPMStation

Re: Blank admin page after successful installation

Post by JPMStation »

777 more I can't give ;-)!
Piratos

Re: Blank admin page after successful installation

Post by Piratos »

set config-debug to true and post the results.
Locked

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