Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Page Cache v1.5


Recommended Posts

Hi

 

I installed the page cache today and at the bottom of my index page I get these following errors

 

Can any1 help me get rid so i can test before applying to live site ?

 

Warning: fopen(/home/simply/public_html/shoptest/catalog//cache/_shoptest_catalog_index.php__english_GBP.cache): failed to open stream: No such file or directory in /home/simply/public_html/shoptest/catalog/includes/classes/page_cache.php on line 258

 

Warning: fwrite(): supplied argument is not a valid stream resource in /home/simply/public_html/shoptest/catalog/includes/classes/page_cache.php on line 259

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/simply/public_html/shoptest/catalog/includes/classes/page_cache.php on line 260

 

Charles

 

The URL if you want to see this is http://www.simplyeasier.com/shoptest/catalog

 

Thanks

 

Charles

A kite flies highest AGAINST the wind !

 

"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"

Link to comment
Share on other sites

Hi

 

I installed the page cache today and at the bottom of my index page I get these following errors

 

Can any1 help me get rid so i can test before applying to live site ?

 

Warning: fopen(/home/simply/public_html/shoptest/catalog//cache/_shoptest_catalog_index.php__english_GBP.cache): failed to open stream: No such file or directory in /home/simply/public_html/shoptest/catalog/includes/classes/page_cache.php on line 258

 

Warning: fwrite(): supplied argument is not a valid stream resource in /home/simply/public_html/shoptest/catalog/includes/classes/page_cache.php on line 259

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/simply/public_html/shoptest/catalog/includes/classes/page_cache.php on line 260

 

Charles

 

The URL if you want to see this is http://www.simplyeasier.com/shoptest/catalog

 

Thanks

 

Charles

 

 

maybe the double slash ?

 

catalog//cache

Treasurer MFC

Link to comment
Share on other sites

maybe the double slash ?

 

catalog//cache

 

 

Amanda

 

Very probable -

 

How do I get rid of the unnecessary slash ? I cut and pasted the code into application top, bottom and html - whatever so I did not manually type anything in - therefore not really sure where this error might be coming from.

 

Charles

A kite flies highest AGAINST the wind !

 

"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"

Link to comment
Share on other sites

Hi

 

I installed the page cache today and at the bottom of my index page I get these following errors

 

Can any1 help me get rid so i can test before applying to live site ?

 

Warning: fopen(/home/simply/public_html/shoptest/catalog//cache/_shoptest_catalog_index.php__english_GBP.cache): failed to open stream: No such file or directory in /home/simply/public_html/shoptest/catalog/includes/classes/page_cache.php on line 258

 

Warning: fwrite(): supplied argument is not a valid stream resource in /home/simply/public_html/shoptest/catalog/includes/classes/page_cache.php on line 259

 

Warning: fclose(): supplied argument is not a valid stream resource in /home/simply/public_html/shoptest/catalog/includes/classes/page_cache.php on line 260

 

Charles

 

The URL if you want to see this is http://www.simplyeasier.com/shoptest/catalog

 

Thanks

 

Charles

 

 

OK fixed - here's the lowdown

 

In the instal instructions in step 2 it says

 

STEP 2 - Create a new directory at your root called "cache"

Future versions will make this a setting that can be changed via the admin control panel but for now it is hard coded. If called in an URL it should look like http://yourstore.com/cache/

 

This works if your cart is installed in root ! - see the last sentence above.

 

In my test store where the problem arose my cart is in fact in path home/****/public_html/shoptest/catalog - i.e not in root !

 

I moved the Cache directory from out of root to within shoptest/catalog and bingo problem gone.

 

Now to test the page load speeds.

 

Charles

A kite flies highest AGAINST the wind !

 

"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...