Post by p4m » Tue May 19, 2009 9:31 pm

Hi,
I just uploaded my store that run well localy to my website host and when I try to enter the admin section, I get this error message:

Warning: require_once(E:\wamp\www\mysite.com\Opencart/system/startup.php) [function.require-once]: failed to open stream: No such file or directory in E:\hosting\member\portpas\Opencart\admin\index.php on line 6

Fatal error: require_once() [function.require]: Failed opening required 'E:\wamp\www\mysite.com\Opencart/system/startup.php' (include_path='.;C:\php5\pear') in E:\hosting\member\portpas\Opencart\admin\index.php on line 6


I changed htaccess.txt to htaccess,

I have no clue what to do else.

I nedd help please.

Thanks

p4m
New member

Posts

Joined
Mon May 04, 2009 7:53 pm

Post by Daniel » Tue May 19, 2009 10:46 pm

1. check if the startup file is there.
2. check the config files.
3. if still not working upload again

don't mess with the htaccess it has nothign to do with missing files.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by babaloo » Wed May 20, 2009 3:35 am

are you uploading yours files directery from WAMP to your HOST ?

sory my english :s

User avatar
New member

Posts

Joined
Sun Mar 29, 2009 1:44 am

Post by p4m » Wed May 20, 2009 4:24 am

I first uploaded direct from Wamp to Host. I realize that I didn't modify the paths in the config files. Then, I deleted everything and re-upload from opencart upload folder. I installed as explained in the install file and uploaded my 2 modified config.php and the stylesheet.css files in according folders.
After that I uploaded all the folders from my Wamp to be sure to forget nothing, including the other needed files like images, downloads, and languages.
Now I can access my front store but I get a lot of error messageslike:


Warning: fopen(E:\hosting\member\portraitspas\Opencart/cache/cache.product.latest.1.8.1242762400) [function.fopen]: failed to open stream: Permission denied in E:\hosting\member\portraitspas\Opencart\system\library\cache.php on line 39

Warning: fwrite(): supplied argument is not a valid stream resource in E:\hosting\member\portraitspas\Opencart\system\library\cache.php on line 41

Warning: fclose(): supplied argument is not a valid stream resource in E:\hosting\member\portraitspas\Opencart\system\library\cache.php on line 43

Warning: imagejpeg() [function.imagejpeg]: Unable to open 'E:\hosting\member\portraitspas\Opencart/image/cache/dvd189x230__12311-120x120.jpg' for writing: Permission denied in E:\hosting\member\portraitspas\Opencart\system\library\image.php on line 43

Warning: Cannot modify header information - headers already sent by (output started at E:\hosting\member\portraitspas\Opencart\system\library\image.php:43) in E:\hosting\member\portraitspas\Opencart\system\library\response.php on line 65


I am lost since my store is fully working with my local server...

Thanks for any help.

p4m
New member

Posts

Joined
Mon May 04, 2009 7:53 pm

Post by Daniel » Wed May 20, 2009 6:31 pm

you need to set the permissions on the images, cache and downloads folder.

chmod them to 0755

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by p4m » Wed May 20, 2009 11:06 pm

Sorry Daniel, can you explain a bit more ... I don't know nothing about linux/unix commands. Where do I have to write that?
Thanks

p4m
New member

Posts

Joined
Mon May 04, 2009 7:53 pm

Post by Daniel » Wed May 20, 2009 11:20 pm

try deleting files in your cache folders. both cache and image > cache

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by p4m » Wed May 20, 2009 11:35 pm

Done,

I still have same kinda messages :

Warning: fopen(E:\hosting\member\portraitspas\Opencart/cache/cache.product.latest.1.8.1242840305) [function.fopen]: failed to open stream: Permission denied in E:\hosting\member\portraitspas\Opencart\system\library\cache.php on line 39

Warning: fwrite(): supplied argument is not a valid stream resource in E:\hosting\member\portraitspas\Opencart\system\library\cache.php on line 41

Warning: fclose(): supplied argument is not a valid stream resource in E:\hosting\member\portraitspas\Opencart\system\library\cache.php on line 43

Warning: fopen(E:\hosting\member\portraitspas\Opencart/cache/cache.product.bestseller.1.5.1242840305) [function.fopen]: failed to open stream: Permission denied in E:\hosting\member\portraitspas\Opencart\system\library\cache.php on line 39

Warning: fwrite(): supplied argument is not a valid stream resource in E:\hosting\member\portraitspas\Opencart\system\library\cache.php on line 41

Warning: fclose(): supplied argument is not a valid stream resource in E:\hosting\member\portraitspas\Opencart\system\library\cache.php on line 43


And now I don't have anymore images showing on my pages.
I have reuploaded the image cache files to see my images again.

p4m
New member

Posts

Joined
Mon May 04, 2009 7:53 pm

Post by readyman » Sat May 23, 2009 3:07 am

Yeah, leave the cache folders as they were.

These warnings are showing due to your PHP settings on your host - they are showing ALL errors, including the tiny ones that are not going to hurt anyone (usually for debugging)

To turn these off in your opencart installation go to the startup.php file in the system folder and change the following:

Code: Select all

// Error Reporting
error_reporting(E_ALL);
to

Code: Select all

// Error Reporting
error_reporting(0);
Hopefully that should do the trick.

http://www.alreadymade.com
Follow me on twitter.com/alreadymade


User avatar
Global Moderator

Posts

Joined
Wed May 20, 2009 5:16 am
Location - Sydney

Post by p4m » Sat May 23, 2009 9:40 pm

readyman, thanks 1000 times, error lines are gone.

p4m
New member

Posts

Joined
Mon May 04, 2009 7:53 pm

Post by webvet » Sat May 30, 2009 11:09 pm

Am a newcomer to opencart - have trawled these topics for tips during my initial dabblings.

Must just say a great thank you to everyone who contributes - had some error reports at top of pages once moved everything onto a 'live' site and found this thread and problem solved.

Thanks again!

Genuine, Honest Opencart Support @ http://webvetservices.com


User avatar
Active Member

Posts

Joined
Thu May 14, 2009 2:04 am
Location - Shropshire, UK

Post by Daniel » Tue Jun 02, 2009 12:42 am

readyman wrote:Yeah, leave the cache folders as they were.

These warnings are showing due to your PHP settings on your host - they are showing ALL errors, including the tiny ones that are not going to hurt anyone (usually for debugging)

To turn these off in your opencart installation go to the startup.php file in the system folder and change the following:

Code: Select all

// Error Reporting
error_reporting(E_ALL);
to

Code: Select all

// Error Reporting
error_reporting(0);
Hopefully that should do the trick.
Bad advice!!!


Its better to fix the problem with his folder settings than to disable error reporting.

now next time he has an error he will not know there is one.

User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by webvet » Tue Jun 02, 2009 8:39 pm

I reloaded the index.php file via ftp but this time used binary (rather than ascii) and have resolved the few problems I had - AND now turned error reports back ON without having the previous reports at top of home page.

Thanks

Genuine, Honest Opencart Support @ http://webvetservices.com


User avatar
Active Member

Posts

Joined
Thu May 14, 2009 2:04 am
Location - Shropshire, UK

Post by giosol81 » Thu Jul 09, 2009 12:41 am

I've got the same kind of errors at the top of all the pages:
Warning: fopen(D:\Inetpub\webs\mysitecom\opencart/cache/cache.product.latest.2.8.1247074347) [function.fopen]: failed to open stream: Permission denied in D:\Inetpub\webs\mysitecom\opencart\system\library\cache.php on line 39

If I set error_reporting(0); in the startup.php obviously I don't get any error message anymore but anyway I should solve the problem. Cache doesn't work at all.

It seems I don't have right to write in the folders. I also have the same problem at installation stage: it couldn't write anything in the config.php. It said the installation was successful but both the config.php remained empty and i had to write it manually by myself.

In the pre-installation page it's written that all the file and the folders are writeable and checking the permissions on the servers folders are set to 777 and files to 666, so I don't know why I have permission problems.
The server is windows.
P.S.
Register Globals is set to ON
Magic Quotes GPC is set to ON
cURL is OFF
I don't know if any of these could cause this problem.

Thanks for any help.

Newbie

Posts

Joined
Thu Jul 09, 2009 12:21 am

Post by Daniel » Thu Jul 09, 2009 1:02 am

Register Globals is set to ON

should be off

Magic Quotes GPC is set to ON

should be off

cURL is OFF

should be on


contact your host! this is obvwersly nothing to do with opencart if you don;t have the server configured properly.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by giosol81 » Thu Jul 09, 2009 1:14 am

Thanks for quickly reply.

Yes, I know these are host settings and nothing to do with opencart, but I'm not sure they are related to my current problem.
I will contact my provider but you know...I don't aspect too much helpfulness from them so...in the meantime
if you had any suggestion about the problem with the permissions I would try them...

By the way...I'm new in the "php.ini/hosting world". Is there any way to change the php settings on the server by myself? Do I need special permissions? Or should I just prey they will change the settings for me?

Thanks

Newbie

Posts

Joined
Thu Jul 09, 2009 12:21 am

Post by Daniel » Thu Jul 09, 2009 7:11 am

you need the folders with 777 permissions.

do some research. type in google about foler permissions. your host shoudl help you out.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by giosol81 » Fri Jul 10, 2009 12:02 am

Problem solved!
In my hosting space (which is on windows server) is not possible to change permissions on the files (like chmod on linux). Anyway there is a default folder which is named "public" with R and W permissions. cache and everything need to be writeable should move into this folder. In the config.php then you can change the paths to address the new locations.
Hope to be useful for someone else...
;)

Newbie

Posts

Joined
Thu Jul 09, 2009 12:21 am

Post by Amfie » Wed May 08, 2013 1:21 am

Hi I am new member to the forum and a beginner with opencart!

I am setting a demo page to bplaced.net and at the Step 2 - Pre Installation all set ok, except the cURL that is OFF!
What is cURL doing to opencart? Who can I set this ON?
Is it possible to do it my self someway?
If the host don't allow to set it to ON, what can I do? My demo page with opencart will work with cURL OFF or not?

Thanks in advance :)

Amfie

User avatar
Newbie

Posts

Joined
Wed May 08, 2013 12:34 am

Post by i2Paq » Wed May 08, 2013 1:30 pm

Amfie wrote:Hi I am new member to the forum and a beginner with opencart!

I am setting a demo page to bplaced.net and at the Step 2 - Pre Installation all set ok, except the cURL that is OFF!
What is cURL doing to opencart? Who can I set this ON?
Is it possible to do it my self someway?
If the host don't allow to set it to ON, what can I do? My demo page with opencart will work with cURL OFF or not?

Thanks in advance :)

Amfie
Talk to you hoster, they can switch it on.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands
Who is online

Users browsing this forum: No registered users and 25 guests