e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
322 stars 214 forks source link

"Fatal exception - spl_autoload_* required." when trying to upgrade from 1.0.3 to v2.0 alpha #227

Closed Agent3 closed 11 years ago

Agent3 commented 11 years ago

I had 1.0.3 installed and running, but wanted to upgrade to v2.0 alpha before building the website. I downloaded the upgrade package as zip file, unpacked it and uploaded it to the server via ftp. When I enter my domainname in the url bar of my browser, I get the following error:

Fatal exception - splautoload* required.

I've read the README and README_UPGRADE files, made sure I did not overwrite the e107_config.php and checked the correct file/folder permissions. Am I doing something wrong or is this a bug?

The server is running PHP Versie: 5.0.4 and MySQL: 4.1.20-log.

By the way: I've also deleted all e107 files and folders, trying to install v2 as if for the first time but ended up with the same fatal exception.

MarcoV1980 commented 11 years ago

Did you also get to the install.php part and did you get the full package?

Agent3 commented 11 years ago

Thanks for your quick reply!

First attempt: I got the e107_v1.x_to_2.0_upgrade_alpha1.zip file, unpacked it in a seperate (local) folder and then ftp'ed it to the server. Did not see any install.php file, neither in my local folder nor on the server.

Second attempt: I removed everything from my public_html folder, downloaded the full package (e107_2.0_full_alpha1) and unzipped it in a seperate folder. I could't find the folders e107_files/public/ and e107_files/cache/ in this version.

I uploaded all files from this folder succesfully to the server via ftp. This included install.php. I set the file/folder permissions to 777 according to the README.html file (except the folders e107_files/public/ and e107_files/cache/ since I did not see them).

Next, I opened my web browser and navigated to install.php (http://mydomainname.com/install.php). This resulted again in Fatal exception - splautoload* required.

MarcoV1980 commented 11 years ago

Correct me if im wrong, but isnt that a PHP error ?

Im not very technical, so perhaps someone else can answer that.

STR82U commented 11 years ago

Upgrades aren't going to have install.php or e107_config.php in them.

I think the references to e107_files/ is old, you can see the files that exist in v2 by going to the main page here at Github.

The /cache/ folder you're looking for is created into e107_system during install in a different folder, you'll know it when you see it it'll look something like this --> e107_system/6517bcd5e3/cache/

The /public/ folder may not exist anywhere anymore.

Agent3 commented 11 years ago

@MarcoV1980: It is indeed a php error, but that's all I know. My php knowledge is very basic. Hopefully someone can shine a light on this.

@STR82U: I was suspecting that some folders had been renamed/relocated/ceased to exist in v2, just mentioned it to be as clear as possible about my work flow. However, when I look in e107_system, all I see is an empty index.html plus .htacces file

STR82U commented 11 years ago

@Agent3 something about your upgrade/install did not complete as dialed. I think your second attemp is a cached page by your browser (I clear the cache every install.upgrade on multiple browsers and you may too, but let us know).

The e107_system/ folder will look like that until the install/upgrade is complete, the system generates a new folder inside there with all the other folders inside it.

MarcoV1980 commented 11 years ago

Can you open http://yourhost/e107_admin/phpinfo.php by any chance?

Moc commented 11 years ago

@Agent3 Could you show us a screenshot of the error please?

Agent3 commented 11 years ago

@MarcoV1980: unfortunately not: http://myhost/e107_admin/phpinfo.php automatically redirects to http://myhost/e107_admin/install.php

Agent3 commented 11 years ago

@Moc I'm afraid that won't help you much; all it says is Fatal exception - splautoload* required without further details:

fatal-exception-screenprint

Agent3 commented 11 years ago

@STR82U I've cleared my browser cache and checked again to no avail; I keep staring at the Fatal exception - splautoload* required error.

Thanks for all your suggestions though guys!

MarcoV1980 commented 11 years ago

Isnt it a flag thats not set with his php installation?

Shame you cant use that php test script without having to login, or can it be modified?

Moc commented 11 years ago

@Agent3 Can you confirm your PHP version please? You need at least PHP 5.1.2 to pass the check of which you are getting an error now. Preferably the PHP version should be PHP 5.3+ as that is going to be the set requirement in the near future for e107. Older versions may be supported 'by accident' but no effort is made to do so.

Running anything below PHP 5 (e.g. PHP 4.x) is unacceptable for any decent webhosting provider as the version is no longer supported by PHP anymore for years.

EDIT: I should proofread more accurately.. fixed typos

CaMer0n commented 11 years ago

From the README file:

Requirements