Page 1 of 2

[SOLVED] Errors After Move to New Server

Posted: Fri Jan 08, 2010 3:14 am
by BAlGaInTl
I had my CMS Made Simple site up and running fine on a server, and just had to move it to a new server.

I've worked out a lot of the kinks, but now I'm getting the following errors at the top of every page.   Can anyone offer any insight?
Warning: include_once(/home/user/domains/domains.com/public_html/modules/Captcha/Captcha.module.php) [function.include-once]: failed to open stream: Permission denied in /home/user/domains/domains.com/public_html/lib/classes/class.moduleloader.inc.php on line 126

Warning: include_once() [function.include]: Failed opening '/home/user/domains/domains.com/public_html/modules/Captcha/Captcha.module.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/user/domains/domains.com/public_html/lib/classes/class.moduleloader.inc.php on line 126

Warning: Cannot modify header information - headers already sent by (output started at /home/user/domains/domains.com/public_html/lib/classes/class.moduleloader.inc.php:126) in /home/user/domains/domains.com/public_html/admin/login.php on line 313

Warning: Cannot modify header information - headers already sent by (output started at /home/user/domains/domains.com/public_html/lib/classes/class.moduleloader.inc.php:126) in /home/user/domains/domains.com/public_html/admin/login.php on line 314

Re: Errors After Move to New Server

Posted: Fri Jan 08, 2010 3:17 am
by BAlGaInTl
Is this a permissions problem with one of my files?

If so, any idea which one(s)?

Re: Errors After Move to New Server

Posted: Fri Jan 08, 2010 3:40 am
by replytomk3
Uninstall/install captcha

Verify files integrity

Try searching each individual error here on the forums

Re: Errors After Move to New Server

Posted: Fri Jan 08, 2010 4:18 am
by BAlGaInTl
replytomk3 wrote: Uninstall/install captcha

Verify files integrity

Try searching each individual error here on the forums
I'm not even sure how to go about doing those really....  captcha isn't available for download in the module manager.

My files seem fine, but I'm wondering if a permission got messed up somewhere.  I have no idea where to look though.

Re: Errors After Move to New Server

Posted: Fri Jan 08, 2010 4:26 am
by replytomk3
There are many posts on the forum about "Cannot modify header information".

You will have to wait for other people to give you detailed description of how to verify integrity or you can search the forums yourself.

You really need to search the forums as I expect this is the response you will get from others as well.

Re: Errors After Move to New Server

Posted: Fri Jan 08, 2010 5:17 am
by BAlGaInTl
Yes, I've found tons, but so far no help....

Starting to get a headache... LOL

Here are the errors I see at the top of my admin pages.  Maybe they will help shed some light for someone.  I will continue to search, but any input would be helpful.
Warning: include_once(/home/user/domains/domain.com/public_html/modules/Captcha/Captcha.module.php) [function.include-once]: failed to open stream: Permission denied in /home/user/domains/domain.com/public_html/lib/classes/class.moduleloader.inc.php on line 126

Warning: include_once() [function.include]: Failed opening '/home/user/domains/domain.com/public_html/modules/Captcha/Captcha.module.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/user/domains/domain.com/public_html/lib/classes/class.moduleloader.inc.php on line 126

Warning: Cannot modify header information - headers already sent by (output started at /home/user/domains/domain.com/public_html/lib/classes/class.moduleloader.inc.php:126) in /home/user/domains/domain.com/public_html/lib/classes/class.admintheme.inc.php on line 171

Warning: Cannot modify header information - headers already sent by (output started at /home/user/domains/domain.com/public_html/lib/classes/class.moduleloader.inc.php:126) in /home/user/domains/domain.com/public_html/lib/classes/class.admintheme.inc.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/user/domains/domain.com/public_html/lib/classes/class.moduleloader.inc.php:126) in /home/user/domains/domain.com/public_html/lib/classes/class.admintheme.inc.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/user/domains/domain.com/public_html/lib/classes/class.moduleloader.inc.php:126) in /home/user/domains/domain.com/public_html/lib/classes/class.admintheme.inc.php on line 178

Warning: Cannot modify header information - headers already sent by (output started at /home/user/domains/domain.com/public_html/lib/classes/class.moduleloader.inc.php:126) in /home/user/domains/domain.com/public_html/lib/classes/class.admintheme.inc.php on line 181

Warning: Cannot modify header information - headers already sent by (output started at /home/user/domains/domain.com/public_html/lib/classes/class.moduleloader.inc.php:126) in /home/user/domains/domain.com/public_html/lib/classes/class.admintheme.inc.php on line 186

Re: Errors After Move to New Server

Posted: Fri Jan 08, 2010 3:34 pm
by replytomk3
I'm waiting for the experts to respond...

Re: Errors After Move to New Server

Posted: Fri Jan 08, 2010 4:43 pm
by BAlGaInTl
Me too...

;)

More info that may help...

My control panel that I used to make the move is DirectAdmin

I moved the files using the reseller backup/restore utility as well as the user backup/restore utility.

All my other sites moved fine, it is only my CMSMS simple that is having an issue.

The server went from CentOS 4 to CentOS5

It is a VPS, but I only have limited knowledge of the command line, so I do most of my work from the DA control panel.

Most of what I was running was upgraded

Apache from 1.3.XX to 2.2

It is also running more recent versions of PHP and MySQL.

I don't have access to them directly from here, but I can provide the exact versions on the two servers later tonight if someone feels that would help.

Re: Errors After Move to New Server

Posted: Fri Jan 08, 2010 5:18 pm
by replytomk3
PHP and CMSMS versions will help.

Have you tried another restore, to a subfolder on your server, or on your computer (XAMPP)?

What files did you move, all files from old server to new server, or did you install a new copy of CMSMS first?

There is a link in my signature to a page which tells you how to move just the stuff that you need, and not all the files from installation.

You can also PM me a link to your database and I can do a quick install.

Try to install a new version of CMSMS to a subfolder, move only the files that my website says to and on step 5 uncheck "create tables and install sample content).

Re: Errors After Move to New Server

Posted: Fri Jan 08, 2010 5:26 pm
by Rolf
Hi BAlGaInTl

Have you tried to clear the cache yet?
Site Admin >> Global Settings >> Advanced Setup > Clear Cache

Can you put your System Information here?
Site Admin >> System Information >> View Text Report (suitable for copying into forum posts)

Got a link of the website?

...


Regards Rolf  :)

Re: Errors After Move to New Server

Posted: Fri Jan 08, 2010 6:30 pm
by BAlGaInTl
replytomk3 wrote: PHP and CMSMS versions will help.

Have you tried another restore, to a subfolder on your server, or on your computer (XAMPP)?

What files did you move, all files from old server to new server, or did you install a new copy of CMSMS first?

There is a link in my signature to a page which tells you how to move just the stuff that you need, and not all the files from installation.

You can also PM me a link to your database and I can do a quick install.

Try to install a new version of CMSMS to a subfolder, move only the files that my website says to and on step 5 uncheck "create tables and install sample content).
I have not tried to restore to another subfolder.

I moved everything.  I used the DirectAdmin control panel backup and restore.

I will check out your links when I get home.  I'm sitting a hotspot right now as I can't access my site from work.  I may try a new install and manually moving over what I need to as a last resort.

Re: Errors After Move to New Server

Posted: Fri Jan 08, 2010 6:36 pm
by BAlGaInTl
Rolf wrote: Hi BAlGaInTl

Have you tried to clear the cache yet?
Site Admin >> Global Settings >> Advanced Setup > Clear Cache

Can you put your System Information here?
Site Admin >> System Information >> View Text Report (suitable for copying into forum posts)

Got a link of the website?

...


Regards Rolf  :)
I tried cleaning the cache, and that did not have an effect.

The php version is 5.2.12

The website is http://www.lostsons.com

I uploaded a quick phpinfo file here

http://www.lostsons.com/info.php

Here is my system information from CMSMS:
----------------------------------------------

Cms Version: 1.6.6

Installed Modules:

    * CMSMailer: 1.73.14
    * FCKeditorX: 1.0.5
    * MenuManager: 1.6.2
    * ModuleManager: 1.3.1
    * News: 2.10.3
    * nuSOAP: 1.0.1
    * Search: 1.6.1
    * ThemeManager: 1.1.1
    * Guestbook: 1.1.10
    * Smileys: 0.1.3
    * FileManager: 1.0.1
    * Printing: 1.0.4
    * Captcha: 0.3.1


Config Information:

    * php_memory_limit:
    * process_whole_template: true
    * max_upload_size: 16000000
    * default_upload_permission: 664
    * assume_mod_rewrite: false
    * page_extension:
    * internal_pretty_urls: false
    * use_hierarchy: false


Php Information:

    * phpversion: 5.2.12
    * md5_function: On (True)
    * gd_version: 2
    * tempnam_function: On (True)
    * magic_quotes_runtime: Off (False)
    * memory_limit: 128M
    * max_execution_time: 30
    * safe_mode: Off (False)
    * session_save_path: /tmp (1777)
    * session.use_cookies: On (True)


Server Information:

    * Server Api: apache2handler
    * Server Db Type: MySQL (mysql)
    * Server Db Version: 5.1.42


----------------------------------------------

Re: Errors After Move to New Server

Posted: Fri Jan 08, 2010 7:11 pm
by Dr.CSS
To clear up captcha go to extensions > modules and hit the uninstall link when it is done hit the install link in the same place...

As far as all the other problems look to system info page for yellow ! or red X...

Another way is to put the install folder from the version you have back in and run install...

BUT AT STEP 5 FOR DB INFO DON'T CREATE TABLES OR INSTALL DEFAULT CONTENT

2 tick boxes at the bottom of it, this will fix any path issues and tell you if you have any other problems as it moves thru the install process...

Re: Errors After Move to New Server

Posted: Fri Jan 08, 2010 7:28 pm
by BAlGaInTl
Dr.CSS wrote: To clear up captcha go to extensions > modules and hit the uninstall link when it is done hit the install link in the same place...

As far as all the other problems look to system info page for yellow ! or red X...

Another way is to put the install folder from the version you have back in and run install...

BUT AT STEP 5 FOR DB INFO DON'T CREATE TABLES OR INSTALL DEFAULT CONTENT

2 tick boxes at the bottom of it, this will fix any path issues and tell you if you have any other problems as it moves thru the install process...
Captcha is not showing up under Modules.  I tried to uninstall the captcha already.  I went to the Module manager and it tells me it can't be downloaded.

The only red X if for my /public_html directory.  That seems odd.

Re: Errors After Move to New Server

Posted: Fri Jan 08, 2010 7:44 pm
by replytomk3
Experts are in! To summarize:

http://mkrd.info/software-discussions/cms-made-simple/backin-up-and-restoring-cmsms.html This is what you need to move the website, and not all files.

You must have captcha listed as a module in the Module Manager. See attachment. If it is not there then something is wrong.

Look in system info page (Dr CSS)

Try running /install again (Dr CSS)