[SOLVED] Blank page after moving CMSMS to new server

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

[SOLVED] Blank page after moving CMSMS to new server

Post by Milhaus »

Hi,
I moved my CMSMS site from localhost to remote server. Made all settings, etc. When I tried to access it, I obtained blank page. So I turned Error reporting on and got these errors:

Code: Select all

/home/www/www/spolek/beta/include.php :: 57 :: Assigning the return value of new by reference is deprecated
/home/www/www/spolek/beta/include.php :: 128 :: Assigning the return value of new by reference is deprecated
/home/www/www/spolek/beta/include.php :: 206 :: Assigning the return value of new by reference is deprecated
I do not know, if this is problem,though. You can see phpinfo of that server.

What should I do now?

EDIT:This problem is solved now. Please look at the last message in this thread.
Last edited by Milhaus on Fri Oct 12, 2007 1:59 pm, edited 1 time in total.
alby

Re: Blank page after moving CMSMS to new server

Post by alby »

Milhaus wrote: Hi,
I moved my CMSMS site from localhost to remote server. Made all settings, etc. When I tried to access it, I obtained blank page. So I turned Error reporting on and got these errors:

Code: Select all

/home/www/www/spolek/beta/include.php :: 57 :: Assigning the return value of new by reference is deprecated
/home/www/www/spolek/beta/include.php :: 128 :: Assigning the return value of new by reference is deprecated
/home/www/www/spolek/beta/include.php :: 206 :: Assigning the return value of new by reference is deprecated
I do not know, if this is problem,though. You can see phpinfo of that server.

What should I do now?

I don't know if is concern but you have safe mode On
Try, in php, with: ini_set('safe_mode', false);

(Pay attention becuase you have register_globals On)

Alby
peedub

Re: Blank page after moving CMSMS to new server

Post by peedub »

I'm also having this same problem after copying the CMSMS folder from one XP Pro machine with XAMPPLite to another XP Pro machine also with XAMPPLite, both using the same path (c:\xampplite\htdocs).

I would also appreciate an explanation :).
Milhaus

Re: Blank page after moving CMSMS to new server

Post by Milhaus »

Hi,
thanks Alby, I tried it, but no success. Do you need more informations (e.g. server error logs)? I desperately need to solve this issue.
alby

Re: Blank page after moving CMSMS to new server

Post by alby »

Milhaus wrote: I tried it, but no success. Do you need more informations (e.g. server error logs)? I desperately need to solve this issue.
Yes.
- Check server error logs
- Match your data (path/url) in config.php
- Check presence of .htaccess in root folder

Alby
peedub

Re: Blank page after moving CMSMS to new server

Post by peedub »

Milhaus wrote: Hi,
thanks Alby, I tried it, but no success. Do you need more informations (e.g. server error logs)? I desperately need to solve this issue.
Hi Milhaus,

I think what's going wrong here is that you've simply copy/pasted your CMS files to the server but without setting up the database.

You need to use your local machine's phpMyAdmin or similar export or "dump" your database to a file (.sql). Remember the name of the database which is used for the CMS. Then, go to your web server's control panel, go into phpMyAdmin and create a new database with the same name as your local machine's. Import the .sql file.

You may have to modify paths and such in your config.php file in your CMS root directory.

Now the website should actually have some data to display.

Let me know how that goes for ya ;)
Pierre M.

Re: Blank page after moving CMSMS to new server

Post by Pierre M. »

Hello Milhaus,
peedub wrote: Hi Milhaus,

I think what's going wrong here is that you've simply copy/pasted your CMS files to the server but without setting up the database.
Really ? Milhaus, have a look at the documentation.

Pierre M.
peedub

Re: Blank page after moving CMSMS to new server

Post by peedub »

Yes, it would appear so.
Milhaus

Re: Blank page after moving CMSMS to new server

Post by Milhaus »

peedub & Pierre M.: Thanks for help. I checked this and my config.php settings seem OK. I had error in my .htaccess configuration (didn't change rewrite_base) but I think now it is correct.

So it seems my only chance are server logs. I will post them here if I manage to get them.

Thanks once again,

Milhaus
Milhaus

Re: Blank page after moving CMSMS to new server

Post by Milhaus »

Hi again,

I was able to look to server logs (both for php and apache), but wasn't able to find any errors... Any other suggestions?

Again, I desperately need to solve this..

Milhaus
Pierre M.

Re: Blank page after moving CMSMS to new server

Post by Pierre M. »

Humm...
You hadn't reported this :

Code: Select all

/home/www/www/spolek/beta/index.php :: 28 :: Undefined variable: tohle
Is this CMSms' official code ?
With register globals ON you may have been hacked.
Secure your hosting, then try a reinstall. You may want to uncheck the "create tables" checkbox to keep your current content.

Pierre M.
Milhaus

Re: Blank page after moving CMSMS to new server

Post by Milhaus »

Hi Pierre,

thanks for your suggestion. Error you mentioned is part of error output mode, which might help to solve this issue, so no hack. BTW. I plan to set register_globals off through .htaccess file (I can luckily do these changes, because we are on academic host).

I tried to install new installation, with same result - in this case I wasn't able to install, because of blank page. Blank page appeared, when folder permissions were OK, until that, errors of installer were appearing.

Milhaus
alby

Re: Blank page after moving CMSMS to new server

Post by alby »

Milhaus wrote: thanks for your suggestion. Error you mentioned is part of error output mode, which might help to solve this issue, so no hack. BTW. I plan to set register_globals off through .htaccess file (I can luckily do these changes, because we are on academic host).

I tried to install new installation, with same result - in this case I wasn't able to install, because of blank page. Blank page appeared, when folder permissions were OK, until that, errors of installer were appearing.

Code: Select all

# grep -r "tohle" *
#
Nothing in CMSMS 1.1.4.1.
You have a module with this. Try a CLEAN install.

Alby


EDIT: Pierre, where is this code? I lost something?
Pierre M. wrote: You hadn't reported this :

Code: Select all

/home/www/www/spolek/beta/index.php :: 28 :: Undefined variable: tohle
Last edited by alby on Tue Oct 09, 2007 7:47 pm, edited 1 time in total.
Milhaus

Re: Blank page after moving CMSMS to new server

Post by Milhaus »

Alby, thanks for suggestion. Please see my answer to Pierre higher.

Milhaus

BTW. I removed error reporting code from page, since it doesn't make any sense now (I think). Now you can see blank page again.
alby

Re: Blank page after moving CMSMS to new server

Post by alby »

Milhaus wrote: Alby, thanks for suggestion. Please see my answer to Pierre higher.

BTW. I removed error reporting code from page, since it doesn't make any sense now (I think). Now you can see blank page again.
Ok, but you have installed a "clean" cmsms version?
In install have you all green check?

Alby
Locked

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