alkhataat Posted May 10, 2007 Share Posted May 10, 2007 Hi every one, The cache folder was created and as per the manual 3 files were added : categories_box-english.cache manufacturers_box-english.cache also_purchased-english.cache but when I went to tools/cache control I got the following errors : Warning: filemtime() [function.filemtime]: Stat failed for /home/qazaeboo/public_html/cachecategories_box-english.cache (errno=2 - No such file or directory) in /home/qazaeboo/public_html/admin/cache.php on line 95 Warning: filemtime() [function.filemtime]: Stat failed for /home/qazaeboo/public_html/cachemanufacturers_box-english.cache (errno=2 - No such file or directory) in /home/qazaeboo/public_html/admin/cache.php on line 95 Warning: filemtime() [function.filemtime]: Stat failed for /home/qazaeboo/public_html/cachealso_purchased-english.cache (errno=2 - No such file or directory) in /home/qazaeboo/public_html/admin/cache.php on line 95 I could not fix that, following is the /home/qazaeboo/public_html/admin/cache.php file : <?php /* $Id: cache.php,v 1.23 2003/06/29 22:50:51 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); $action = (isset($HTTP_GET_VARS['action']) ? $HTTP_GET_VARS['action'] : ''); if (tep_not_null($action)) { if ($action == 'reset') { tep_reset_cache_block($HTTP_GET_VARS['block']); } tep_redirect(tep_href_link(FILENAME_CACHE)); } // check if the cache directory exists if (is_dir(DIR_FS_CACHE)) { if (!is_writeable(DIR_FS_CACHE)) $messageStack->add(ERROR_CACHE_DIRECTORY_NOT_WRITEABLE, 'error'); } else { $messageStack->add(ERROR_CACHE_DIRECTORY_DOES_NOT_EXIST, 'error'); } ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> <script language="javascript" src="includes/general.js"></script> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="2" cellpadding="2"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_CACHE; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_DATE_CREATED; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?> </td> </tr> <?php if ($messageStack->size < 1) { $languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { if ($languages[$i]['code'] == DEFAULT_LANGUAGE) { $language = $languages[$i]['directory']; } } for ($i=0, $n=sizeof($cache_blocks); $i<$n; $i++) { $cached_file = ereg_replace('-language', '-' . $language, $cache_blocks[$i]['file']); if (file_exists(DIR_FS_CACHE . $cached_file)) { $cache_mtime = strftime(DATE_TIME_FORMAT, filemtime(DIR_FS_CACHE . $cached_file)); } else { $cache_mtime = TEXT_FILE_DOES_NOT_EXIST; $dir = dir(DIR_FS_CACHE); while ($cache_file = $dir->read()) { $cached_file = ereg_replace('-language', '-' . $language, $cache_blocks[$i]['file']); if (ereg('^' . $cached_file, $cache_file)) { $cache_mtime = strftime(DATE_TIME_FORMAT, filemtime(DIR_FS_CACHE . $cache_file)); break; } } $dir->close(); } ?> <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)"> <td class="dataTableContent"><?php echo $cache_blocks[$i]['title']; ?></td> <td class="dataTableContent" align="right"><?php echo $cache_mtime; ?></td> <td class="dataTableContent" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_CACHE, 'action=reset&block=' . $cache_blocks[$i]['code'], 'NONSSL') . '">' . tep_image(DIR_WS_IMAGES . 'icon_reset.gif', 'Reset', 13, 13) . '</a>'; ?> </td> </tr> <?php } } ?> <tr> <td class="smallText" colspan="3"><?php echo TEXT_CACHE_DIRECTORY . ' ' . DIR_FS_CACHE; ?></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> The red line is suppose to be line 95, I am a newbie and could not solve that, can some one tells me what is missing there or what I suppose to add in that part? Thanks for your assistance Link to comment Share on other sites More sharing options...
♥FWR Media Posted May 10, 2007 Share Posted May 10, 2007 The clue is here .. /home/qazaeboo/public_html/cachecategories_box-english.cache Should be .. /home/qazaeboo/public_html/cache/categories_box-english.cache Note the / after cache Go into admin config cache and add a trailing / to the cache path Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
alkhataat Posted May 10, 2007 Author Share Posted May 10, 2007 The clue is here .. /home/qazaeboo/public_html/cachecategories_box-english.cache Should be .. /home/qazaeboo/public_html/cache/categories_box-english.cache Note the / after cache Go into admin config cache and add a trailing / to the cache path Hi Robert, Thanks for your assistance, very kind of you. I looked around following your point but did not find a place to add the “/” , as per the following error message : Warning: filemtime() [function.filemtime]: Stat failed for /home/qazaeboo/public_html/cachealso_purchased-english.cache (errno=2 - No such file or directory) in /home/qazaeboo/public_html/admin/cache.php on line 95 I understood that I need to add the / between public-html/cache/also_purchased , but this sentence is not existing within the admin/cache file as seen at the above cache file, it said in the manual to add those blank files “also_purchased-english.cache” In the cache folder. It is confusing, may be there is another file to amend ? Can you kindly have another look. Thanks again for your help Best wishes Link to comment Share on other sites More sharing options...
♥FWR Media Posted May 10, 2007 Share Posted May 10, 2007 I'm not talking of altering a file the cache path is in your admin configuration panel Click on CACHE then change the cache path Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
alkhataat Posted May 10, 2007 Author Share Posted May 10, 2007 I'm not talking of altering a file the cache path is in your admin configuration panel Click on CACHE then change the cache path Hi Robert, The problem is fixed. Thank you, that was tricky for a newbie like me, hope every one facing a similar problem can get benefit out of your guidance. Thanks again, much obliged Best regards Link to comment Share on other sites More sharing options...
RMD27 Posted September 8, 2011 Share Posted September 8, 2011 The clue is here .. /home/qazaeboo/public_html/cachecategories_box-english.cache Should be .. /home/qazaeboo/public_html/cache/categories_box-english.cache Note the / after cache Go into admin config cache and add a trailing / to the cache path Hi Robert, do you think there are any security issues using the default /tmp/ directory? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.