1
hydrO
problem after moving server
  • 2005/7/11 22:29

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


I am having a blank page when i moved my hosting to another server. None of the pages seem to show anything. when i turned on debuggin via MySQL these are the errors that are showing on my homepage.

Notice [PHP]: Use of undefined constant _LANGCODE - assumed '_LANGCODE' in file class/template.php line 89
Notice [PHP]: Use of undefined constant _CHARSET - assumed '_CHARSET' in file class/template.php line 89
Notice [PHP]: Use of undefined constant _USERNAME - assumed '_USERNAME' in file modules/system/blocks/system_blocks.php line 88
Notice [PHP]: Use of undefined constant _PASSWORD - assumed '_PASSWORD' in file modules/system/blocks/system_blocks.php line 93
Notice [PHP]: Use of undefined constant _LOGIN - assumed '_LOGIN' in file modules/system/blocks/system_blocks.php line 94
Notice [PHP]: Use of undefined constant _CLOSE - assumed '_CLOSE' in file modules/system/blocks/system_blocks.php line 111
Error [Xoops]: Class XoopsModuleHandler does not exist
Handler Name: module in file include/functions.php line 491


Any useful hits would be well appreciated.
Download Dhivehi mp3s
[size=x-small]http://www.gnatoll.com[/size]

2
hydrO
Re: problem after moving server
  • 2005/7/13 1:05

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


No one having a clue as to what might be causing the problem?
Download Dhivehi mp3s
[size=x-small]http://www.gnatoll.com[/size]

3
jdseymour
Re: problem after moving server

Looks like possibly some files may have gotten corrupted in the FTP transfer. Make sure that the upload is in binary mode and reupload the files. See if that clears it up.

4
hydrO
Re: problem after moving server
  • 2005/7/14 9:36

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


I have uploaded all the files again. All of the other errors have gone expect this one.

Error [Xoops]: Class XoopsModuleHandler does not exist
Handler Name: module in file include/functions.php line 491

Can somoeone please help me with this.
Download Dhivehi mp3s
[size=x-small]http://www.gnatoll.com[/size]

5
hydrO
Re: problem after moving server
  • 2005/7/14 10:02

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


I realised that when i rename the modules folder to something else, some files show up on the homepage.

I am running a shared hosting and currently using the ip address to access my site.

This is weird, could it be that i have still not propagated the DNS to the new server?
Download Dhivehi mp3s
[size=x-small]http://www.gnatoll.com[/size]

6
jdseymour
Re: problem after moving server

Is this version of XOOPS the same version as was on your old server?

Is the file xoopsmodule.php in your class folder? I do not see a file named xoopsmodulehandler in my current install. So it may be referencing the above file, but I am not 100% sure.

7
jdseymour
Re: problem after moving server

Quote:

hydrO wrote:
I realised that when i rename the modules folder to something else, some files show up on the homepage.

I am running a shared hosting and currently using the ip address to access my site.

This is weird, could it be that i have still not propagated the DNS to the new server?


That also could be. Because it is pulling the virtual path from mainfile.php, which will be wrong until DNS updates.

8
hydrO
Re: problem after moving server
  • 2005/7/14 10:10

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


I am having a new version than on my previous hosting. I did all the upgrades and changes on my local comp, took a backup of everything, including database and uploaded to the new hosting.

Yes there is a file called xoopsmodule.php in my class folder.
Download Dhivehi mp3s
[size=x-small]http://www.gnatoll.com[/size]

9
hydrO
Re: problem after moving server
  • 2005/7/14 13:45

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


My DNS has resolved, but still the problem exists.
Download Dhivehi mp3s
[size=x-small]http://www.gnatoll.com[/size]

10
hydrO
Re: problem after moving server
  • 2005/7/14 14:28

  • hydrO

  • Not too shy to talk

  • Posts: 105

  • Since: 2004/1/8 8


I think this is where the problem lies, in XOOPS /include/functions.php around line 490.

Quote:

function &xoops_gethandler($name, $optional = false )
{
static $handlers;
$name = strtolower(trim($name));
if (!isset($handlers[$name])) {
if ( file_exists( $hnd_file = XOOPS_ROOT_PATH.'/kernel/'.$name.'.php' ) ) {
require_once $hnd_file;
}
$class = 'Xoops'.ucfirst($name).'Handler';
if (class_exists($class)) {
$handlers[$name] = new $class($GLOBALS['xoopsDB']);
}
}
if (!isset($handlers[$name]) && !$optional ) {
trigger_error('Class '.$class.' does not exist
Handler Name: '.$name, E_USER_ERROR);
}
return isset($handlers[$name]) ? $handlers[$name] : false;
}


I don't know php well, so if someone knows this please explain me. I am having the idea that there is a variable called modulehandler which cannot be loaded for some reasons.
Download Dhivehi mp3s
[size=x-small]http://www.gnatoll.com[/size]

Login

Who's Online

378 user(s) are online (329 user(s) are browsing Support Forums)


Members: 0


Guests: 378


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits