TheNameHobbs
TheNameHobbs

Reputation: 729

Website suddenly stopped loading due to php include?

I was working on my website when suddenly it wouldn't load anymore. After investigating i found out that this no longer worked:

<?php include 'core/init.php'; ?>

But when i changed it to this:

<?php include '/core/init.php'; ?>

Those includes are at the top of my index.php so the page would load nothing. It worked fine, although none of my links no longer worked, it gave me internal 500 error.

Investigating further i got these errors from safari console:

[Error] Failed to load resource: the server responded with a status of 500 (Internal   Server Error) (localhost, line 0)
[Error] TypeError: 'undefined' is not a function (evaluating 'this.hide()')
close (content_start_0.js, line 1)

I've been working on my site for the past month using:

<?php include 'core/init.php'; ?> 

and never had a problem until a few moments ago.

Any ideas?

Upvotes: 1

Views: 1032

Answers (1)

OBCENEIKON
OBCENEIKON

Reputation: 397

The second error is caused by the Firebug Lite extension for Safari.

Go to your inspector, click resources, then expand Extension Scripts. There should be a file there named content_start_0.js.

You can make the error go away if you go into Preferences for Safari, click the Extensions tab, then uncheck "Enable Firebug Lite for Safari."

Upvotes: 3

Related Questions