matrix2223 Posted April 27, 2006 Posted April 27, 2006 I installed the latest version of cname and pname seo url rewrite from Chemo And I get the folloeing errors: Warning: fopen(/seo_english.cache): failed to open stream: Read-only file system in /mnt/web_z/d11/s44/b025debf/www/catalog/includes/seo_cache.php on line 160 Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/web_z/d11/s44/b025debf/www/catalog/includes/seo_cache.php on line 161 Warning: fclose(): supplied argument is not a valid stream resource in /mnt/web_z/d11/s44/b025debf/www/catalog/includes/seo_cache.php on line 162 Warning: main(/seo_english.cache): failed to open stream: No such file or directory in /mnt/web_z/d11/s44/b025debf/www/catalog/includes/seo_cache.php on line 165 Warning: main(): Failed opening '/seo_english.cache' for inclusion (include_path='.:/usr/local/nf/lib/php') in /mnt/web_z/d11/s44/b025debf/www/catalog/includes/seo_cache.php on line 165 I have checked the following lines that this reffers to but not really sure as to how to fix this Any help will be appricated Thanks Quote
Jack_mcs Posted April 27, 2006 Posted April 27, 2006 If your server supports mod_rewite, then use Ultimate SEO instead. cName & pName was the first attempt at doing this and, as far as I know, is no longer being updated. Ultimate SEO does a far better job. If your host doesn't offer mod_rewrite, then still use Ultimate SEO but use version 2.0 instead of 2.1. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
matrix2223 Posted April 27, 2006 Author Posted April 27, 2006 Ok how do I get the .htaccess file to work my host says it support .htaccess but everytime I place it in there I recieve a internal server error. Quote
Jack_mcs Posted April 28, 2006 Posted April 28, 2006 Internal Server errors can indicated any number of erors. If you just added the code from Ultimate SEO into the .htaccess file, it should work. But if that file has php code in it, it has to be surrounded with code to prevent such an error. Your host should be able to tell ypu the cause of the Internal Server error in any event. Jack Quote Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
ddp Posted April 28, 2006 Posted April 28, 2006 Ok how do I get the .htaccess file to work my host says it support .htaccess but everytime I place it in there I recieve a internal server error. Check that your host supports both the options directive and mod rewrite functions for .htaccess If not they SEO won't work. Quote Backup before making changes. Backup before making changes! Backup before making changes!! You did do a backup? eh?
matrix2223 Posted April 28, 2006 Author Posted April 28, 2006 I thnk its my host they are at the bottom as far as I am concerned Thank you for your reply Quote
matrix2223 Posted April 28, 2006 Author Posted April 28, 2006 Hello, For all that may use this contrib because their host companies may not or limit .htaccess mod rewrite rules heres the scope, this does install and work however there is missing information in the install.html file 1) Cache has to be set to true 2) The /tmp/ or /temp/ has to be added in the catalog directory with 777 permissions rwx rwx rwx 3) Make sure the directory name right under the Cache set to true matches the one that you create. 4) Go to /path_to_catalog/catalog/includes/seo_cache.php and find the section where it writes to the tmp file # Enter the FULL FILE SYSTEM PATH to the cache directory. Include the ending slash $cache_dir = '/tmp/'; # Enable compression? Highly recommended $cache_compress = 'true'; # Set the compression level to 1 for best performance $cache_compression_level = 1; And thats it If you want to use SEO safe urls set to true and it replaces all ? and = in the url. If you get ERROR cant determine page link I have the crue for that to go to catalog/includes application_top.php look foor this code // set php_self in the local scope if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; change it to read this: // set php_self in the local scope if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; if ($PHP_SELF != $SCRIPT_NAME) { $PHP_SELF = $SCRIPT_NAME.$PHP_SELF; } This bit of code will replace all the errors and product not found messages this is something that should have been added or atleast someone should know, Well now we all know, Thanks, Eric Quote
pollino Posted May 1, 2006 Posted May 1, 2006 I installed the latest version of cname and pname seo url rewrite from Chemo And I get the folloeing errors: Warning: fopen(/seo_english.cache): failed to open stream: Read-only file system in /mnt/web_z/d11/s44/b025debf/www/catalog/includes/seo_cache.php on line 160 Warning: fwrite(): supplied argument is not a valid stream resource in /mnt/web_z/d11/s44/b025debf/www/catalog/includes/seo_cache.php on line 161 Warning: fclose(): supplied argument is not a valid stream resource in /mnt/web_z/d11/s44/b025debf/www/catalog/includes/seo_cache.php on line 162 Warning: main(/seo_english.cache): failed to open stream: No such file or directory in /mnt/web_z/d11/s44/b025debf/www/catalog/includes/seo_cache.php on line 165 Warning: main(): Failed opening '/seo_english.cache' for inclusion (include_path='.:/usr/local/nf/lib/php') in /mnt/web_z/d11/s44/b025debf/www/catalog/includes/seo_cache.php on line 165 I have checked the following lines that this reffers to but not really sure as to how to fix this Any help will be appricated Thanks Try this, I tried it and it worked for me. Go to your catalog/includes/seo_cache.php and find this area and put this code in the spot where it says cache_dir= # Enter the FULL FILE SYSTEM PATH to the cache directory. Include the ending slash $cache_dir = ' /mnt/web_z/d11/s44/b025debf/www/catalog/includes/ '; # Enable compression? Highly recommended $cache_compress = 'true'; # Set the compression level to 1 for best performance $cache_compression_level = 1; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.