Fatal error

User 343595 Photo


Registered User
1 post

Hi Guys

Bit of a newbie with shop maker here, and will try and keep it short.
I created my site fine, uploaded it all ok so it says.
But every time I try to access the site I get

(www.zipps.co.uk/index.php)
Warning: require(\ccdata/php/page.cls.php) [function.require]: failed to open stream: No such file or directory in \\NAS43ENT\domains\z\zipps.co.uk\user\htdocs\index.php on line 11

Fatal error: require() [function.require]: Failed opening required '\ccdata/php/page.cls.php' (include_path='.;C:\php5\pear') in \\NAS43ENT\domains\z\zipps.co.uk\user\htdocs\index.php on line 11

I contacted the host to see if there meeting the requirements and to run a test.
http://zipps.co.uk/phpinfo.php
and it turns looks to me there fine, but still I can't get my head arond this error.

Can someone help please?
Thanks
Dave

User 514521 Photo


Registered User
129 posts

Hi Anthony, I'm sure you've checked, but are all of the files uploaded correctly? You could verify it by doing a "File, Export for Upload" and check to see that the files created are the same as what you have already put on your host.
User 1889005 Photo


Guest
19 posts

This is the issue. you need to comment out the following line
$absPath = substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], '/') + 1);

put a // in front of the line so it looks like this
//$absPath = substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], '/') + 1);

you will need to do this in
index.php
cart.php
viewcategory.php
checkoutgc.php
viewitem.php
and
checkoutpp
line 11 in all of them.

this is due to the newer versions of PHP 5. Which we... they got rid of the adspath command.
Just open the files in word pad or notepad++ and comment out the lines. you will be fine.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.