Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

failed to open stream: No such file or directory


alvinho

Recommended Posts

Hello everyone,

Could anyone tell me, how can I fix this error?

 

Warning: fopen(/tmp/categories_box-english.cache24): failed to open stream: No such file or directory in C:\Inetpub\vhosts\eurobrews.com\httpdocs\catalog3\includes\functions\cache.php on line 22

 

If you guys go to my online store, just click in any Item so you can see the error message.

http://www.eurobrews.com/catalog3/login.php

 

Thanks!

Alvaro

Link to comment
Share on other sites

Hello everyone,

Could anyone tell me, how can I fix this error?

 

Warning: fopen(/tmp/categories_box-english.cache24): failed to open stream: No such file or directory in C:\Inetpub\vhosts\eurobrews.com\httpdocs\catalog3\includes\functions\cache.php on line 22

 

If you guys go to my online store, just click in any Item so you can see the error message.

http://www.eurobrews.com/catalog3/login.php

 

Thanks!

Alvaro

 

Alvaro,

 

In your Admin under configuration, there is a "cache" section, try setting "use cache" to "no", then load the store and see if error exists. It should not, but you really would want "use cache" set to "yes".

 

The Cache directory needs to actually exist, yet I've not been able to cause this error, even after removing the "tmp" folder from my server.

 

Can't really see much else from the code except that it is pulling the images from the cache directory, but not finding the files.

 

What http server software are you using? It appears to be a Windows machine running this site, and having your website in a folder named "Inetpub" may indicate that you may be using a very unsecure http server?

 

It does appear that you webserver might be looking at c:/tmp for your files... But I might be wrong?

 

Tapuahk

Link to comment
Share on other sites

Alvaro,

 

In your Admin under configuration, there is a "cache" section, try setting "use cache" to "no", then load the store and see if error exists. It should not, but you really would want "use cache" set to "yes".

 

The Cache directory needs to actually exist, yet I've not been able to cause this error, even after removing the "tmp" folder from my server.

 

Can't really see much else from the code except that it is pulling the images from the cache directory, but not finding the files.

 

What http server software are you using? It appears to be a Windows machine running this site, and having your website in a folder named "Inetpub" may indicate that you may be using a very unsecure http server?

 

It does appear that you webserver might be looking at c:/tmp for your files... But I might be wrong?

 

Tapuahk

 

Dear Tapuahk,

What is happening is this:

This online store used to be running in a linux machine.

Now, I am moving it to a dedicated server, that runs WIN 2003/IIS/Mysql.

 

What I did then, was just copied my catalog folder from the linux machine, to the windows machine, and copy the database over.

 

I think I am having this problems because, the configure.php files on the linux box, uses "/" instead of "\" on windows:

 

For ex.:

define('DIR_FS_CATALOG', '/srv/www/html/default/catalog3'); // absolute path required

Instead of

define('DIR_FS_CATALOG', 'C:\Inetpub\vhosts\eurobrews.com\httpdocs\catalog3'); // absolute path required

 

I am having a hard time changing the setup

I can not even login to the de Admin area of my catalog.

I get this error message: http://www.eurobrews.com/catalog3/admin/

no return page

 

 

 

Do you know a easier way to do that?

tranfer my catalog from linux to windows?

 

Thanks very much

Alvaro

Link to comment
Share on other sites

Dear Tapuahk,

What is happening is this:

This online store used to be running in a linux machine.

Now, I am moving it to a dedicated server, that runs WIN 2003/IIS/Mysql.

 

What I did then, was just copied my catalog folder from the linux machine, to the windows machine, and copy the database over.

 

I think I am having this problems because, the configure.php files on the linux box, uses "/" instead of "\" on windows:

 

For ex.:

define('DIR_FS_CATALOG', '/srv/www/html/default/catalog3'); // absolute path required

Instead of

define('DIR_FS_CATALOG', 'C:\Inetpub\vhosts\eurobrews.com\httpdocs\catalog3'); // absolute path required

 

I am having a hard time changing the setup

I can not even login to the de Admin area of my catalog.

I get this error message: http://www.eurobrews.com/catalog3/admin/

no return page

Do you know a easier way to do that?

tranfer my catalog from linux to windows?

 

Thanks very much

Alvaro

 

Alvaro,

 

First I would like to state that I tell everybody not to run a store on IIS if you can help it. ;)

 

As for making the transition between Linux a great system to Windows 2003, not without greater effort than you already are taking.

 

Your talking about a big shift in the parameters of your store. You are changing all the configure.php defines as well as most of the rest of the "includes" directory files.

 

My first guess would be to look at the configure.php and double check that each define is set up correctly, especially you DIR*s with trailing slashes (ie 'classes/' ). On a Windows system "http://yoursite.com//catalog" is the same as "http://yoursite.com/catalog".

 

Just don't put a slash after a database name. :)

 

The other option is to backup your database and start a new install on the windows system and post it up after your add-ons in place and have your layout reset.

 

That might take you several weeks to do with your store. I would suggest you back up to flash media regularly just to make sure you could return to a stable build, if you got lost in the changes.

 

Tapuahk

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...