Fatal Error on fresh install of c5 v.8 (and two include() errors)

Permalink
I'm getting the following errors when accessing the root directory where c5 is installed (most recent version.)

Warning: include(/home/MYUSERNAME/public_html/application/bootstrap/autoload.php): failed to open stream: No such file or directory in /home/MYUSERNAME/public_html/concrete/bootstrap/autoload.php on line 10
Warning: include(): Failed opening '/home/MYUSERNAME/public_html/application/bootstrap/autoload.php' for inclusion (include_path='/home/MYUSERNAME/public_html/concrete/vendor:.:/opt/php56/lib/php') in /home/MYUSERNAME/public_html/concrete/bootstrap/autoload.php on line 10
Fatal error: Class 'Symfony\Component\ClassLoader\Psr4ClassLoader' not found in /home/MYUSERNAME/public_html/concrete/src/Foundation/Psr4ClassLoader.php on line 6


Can anyone help?

dihakz
 
dihakz replied on at Permalink Reply
dihakz
Does anyone have any potential lead? Any one I could ask? Help?
hutman replied on at Permalink Reply
hutman
Do those files exist in that location on your server?
dihakz replied on at Permalink Reply
dihakz
Well, I can't blame ya for asking. As tech support calls go, the first thing they ask is if the thing is turned on. :-)

Here is the thing: (just referring to one of the files)
It looks like it is looking for the /application folder in the root, where it is not. It is in the /concrete folder (and, yes, autoload.php is there.)

When uncompressing the install file, why would it be in a different directory than what is referenced? Should I make the change by moving the file(s) or the reference in the php page?

I didn't check on the second, but the third is a fatal error. Any idea about that one?
PHP Fatal error:  Class 'Symfony\Component\ClassLoader\Psr4ClassLoader' not found in /home/MYUSERNAME/public_html/concrete/src/Foundation/Psr4ClassLoader.php on line 6
hutman replied on at Permalink Reply
hutman
Ok, so just to clarify your path looks like /home/MYUSERNAME/public_html/concrete/application/ and /home/MYUSERNAME/public_html/concrete/concrete/? Because that's not the path it's looking in, which means that your subdirectory isn't being used (which is causing this error I'm sure)
dihakz replied on at Permalink Reply
dihakz
I'm sorry -- I'm not quite getting it. Here is the structure of my www root directory:
/home/MYUSERNAME/public_html/

Concrete resides here:
/home/MYUSERNAME/public_html/concrete/

Pertaining to the errors above, there are two locations for the referenced file (both exist, though I'm not sure they both SHOULD exist!) Files:
/home/MYUSERNAME/public_html/concrete/application/bootstrap/autoload.php
/home/MYUSERNAME/public_html/concrete/bootstrap/autoload.php

Sounds like we're onto something here. What is the correct directory structure for c5 v5.8?
hutman replied on at Permalink Reply
hutman
Something is very wrong if you have a /concrete/application your structure should be

/home/MYUSERNAME/public_html/application/bootstrap/autoload.php
/home/MYUSERNAME/public_html/concrete/bootstrap/autoload.php


Both of those files should exist. If your application directory is inside your concrete directory something is wrong with your file setup.

On clean install you should have

/home/MYUSERNAME/public_html/application/
/home/MYUSERNAME/public_html/concrete/
/home/MYUSERNAME/public_html/packages/
/home/MYUSERNAME/public_html/updates/
/home/MYUSERNAME/public_html/index.php
dihakz replied on at Permalink Reply
dihakz
Wow. Okay, so I corrected that. I'm not sure how that happened.

Good news: no onscreen errors are showing.
Bad news: the screen is blank (and the error_log is showing nothing)
hutman replied on at Permalink Reply
hutman
In your application/config/generated_overrides/concrete.php can you make sure that these things exist?

'debug' => array(
    'detail' => 'debug',
    'display_errors' => true,
),


That should make it so error show on the screen, hopefully this will do something. Also, if you view source there might be something important there, I'm not sure depends on the error.
dihakz replied on at Permalink Reply
dihakz
Curiouser and curiouser. First, viewing page source showed nothing. But after looking in /application/config I found only an empty folder (i.e. no /generated_overrides directory or anything else.)

It's starting to sound like I should start from scratch.
hutman replied on at Permalink Best Answer Reply
hutman
I think it might be faster to just empty your database, delete everything from your webroot and upload everything again, it certainly seems like something got mixed up.
dihakz replied on at Permalink Reply
dihakz
Cool... I'll give it a shot (that's pretty much where I was going if this turned fruitless... if your candy bar does not come out, kick the vending machine!)

Thank you for your help.
dihakz replied on at Permalink Reply
dihakz
Holy cow. It worked. Sorry to inconvenience you... probably a bum install!

Thanks for the help.