Jump to content
salmiak

[Solved] including index.php doesn't work

Recommended Posts

All of a sudden Bootstrapping processwire doesn't work anymore. This morning it was working fine but now it isn't.

I made the following file to test.

<?php
// Bootstrap ProcessWire
include("../index.php");
echo 'success';

When I open this in the browser (debug mode on) I get a 'connection reset' timeout. 

When I start it from the command line I get a bunch of notices and warnings regarding the session that don't show if I disable sessions. (I read in another topic these are normal)
After that the process just hangs indefinitely somewhere in the boot process. 

The website seems to function normally otherwise. There are no related errors in the logs.

Where to go from here.

 

Share this post


Link to post
Share on other sites

NAMESPACE - NAMESPACE - NAMESPACE - NAMESPACE  🙂

<?php namespace ProcessWire;

 

Share this post


Link to post
Share on other sites

Added namespace but sadly it doesn't change the result.

[EDIT] I solved it by restoring a backup. Still kinda strange...

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...