1
chefry
Internal Server Error
  • 2009/5/4 19:51

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I just moved my website from my localhost (WAMP) to an online server.

I keep getting a 500 Internal Server Error

The root path is set properly (I think) so I can't understand the error

Here's the error log, can someone tell me what's wrong?

Quote:

[04-May-2009 08:38:11] PHP Warning: include(/home2/franksph/include/common.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home2/franksph/public_html/mainfile.php on line 97
[04-May-2009 08:38:11] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/home2/franksph/include/common.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/franksph/public_html/mainfile.php on line 97
[04-May-2009 08:38:11] PHP Warning: include_once(/home2/franksph/class/xoopsblock.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /home2/franksph/public_html/header.php on line 30
[04-May-2009 08:38:11] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/home2/franksph/class/xoopsblock.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/franksph/public_html/header.php on line 30
[04-May-2009 08:38:11] PHP Fatal error: Call to a member function stopTime() on a non-object in /home2/franksph/public_html/header.php on line 36
[04-May-2009 13:39:18] PHP Warning: include(/home2/franksph/include/common.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /home2/franksph/public_html/mainfile.php on line 97
[04-May-2009 13:39:18] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/home2/franksph/include/common.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/franksph/public_html/mainfile.php on line 97
[04-May-2009 13:39:18] PHP Warning: include_once(/home2/franksph/class/xoopsblock.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /home2/franksph/public_html/header.php on line 30
[04-May-2009 13:39:18] PHP Warning: include_once() [<a href='function.include'>function.include</a>]: Failed opening '/home2/franksph/class/xoopsblock.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/franksph/public_html/header.php on line 30
[04-May-2009 13:39:18] PHP Fatal error: Call to a member function stopTime() on a non-object in /home2/franksph/public_html/header.php on line 36


TIA
Frank

2
chefry
Re: Internal Server Error
  • 2009/5/5 11:01

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


BUMP!

3
chefry
Re: Internal Server Error
  • 2009/5/9 23:12

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


would be nice to get an answer or some help here....

Am I on "ignore" status?

4
Mamba
Re: Internal Server Error
  • 2009/5/9 23:21

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
Am I on "ignore" status?

Come on, Chefry, you know better that nobody ignores anybody here!

But people might not know the answer, or they are too busy.

When I look at your Errors, it seems to me that you messed up the directories. There are two different ones:
/home2/franksph/public_html/mainfile.php
/home2/franksph/include/common.php

Make sure that the paths in your mainfile.php are correct.

I think, the second one should be:

/home2/franksph/public_html/include/common.php
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

5
chefry
Re: Internal Server Error
  • 2009/5/9 23:27

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


That's why I can't understand the error

Mainfile.php is siet as

Quote:

// Physical path to the XOOPS documents (served) directory WITHOUT trailing slash
define( 'XOOPS_ROOT_PATH', '/home2/franksph/public_html' );


So I can't understand where that
Quote:

/home2/franksph/include/common.php

error is coming from

6
chefry
Re: Internal Server Error
  • 2009/5/9 23:30

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


lies 96-97 in mainfile.php are
Quote:

if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") {
include XOOPS_ROOT_PATH."/include/common.php";


should I change it to
Quote:

if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") {
include XOOPS_ROOT_PATH."/home2/franksph/public_html/include/common.php";

????

7
Mamba
Re: Internal Server Error
  • 2009/5/9 23:35

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


You shouldn't change anything there. The path should be relative.

PM me your mainfile.php, and I'll take a look.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

8
chefry
Re: Internal Server Error
  • 2009/5/9 23:47

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


ok, I sent it.

I was getting a server error with the php_flag on and I had to delete the .htaccess file. So now I'm just getting a blank page :(

9
chefry
Re: Internal Server Error
  • 2009/5/14 20:47

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I did a fresh install on the hosts server, rebuilt the entire website from scratch and it was working find.

Then they went and migrated all their accounts to a new server and I'm getting the same errors again. :(

Quote:

Warning: include(/home2/franksph/public_html/include/common.php) [function.include]: failed to open stream: No such file or directory in /home/franksph/public_html/mainfile.php on line 97

Warning: include() [function.include]: Failed opening '/home2/franksph/public_html/include/common.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/franksph/public_html/mainfile.php on line 97

Warning: include_once(/home2/franksph/public_html/class/xoopsblock.php) [function.include-once]: failed to open stream: No such file or directory in /home/franksph/public_html/header.php on line 30

Warning: include_once() [function.include]: Failed opening '/home2/franksph/public_html/class/xoopsblock.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/franksph/public_html/header.php on line 30

Fatal error: Call to a member function stopTime() on a non-object in /home/franksph/public_html/header.php on line 36


Notice some of the errors are calling for /home/franksph/ and some are calling from /home2/franksph/

I can't figure out where the call to /home/franksph/ is coming from. Mainfile.php specifies /home2/franksph/ which is the correct root.

Anyone know where this would be coming from?

And more importantly, how to fix it?

TIA

10
sailjapan
Re: Internal Server Error

Your site was running fine until your hosts moved your site to a new server? Looks to me like your problem is with your hosts, not with xoops.
Never let a man who does not believe something can be done, talk to a man that is doing it.

Login

Who's Online

214 user(s) are online (130 user(s) are browsing Support Forums)


Members: 0


Guests: 214


more...

Donat-O-Meter

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

Latest GitHub Commits