Jump to content

stephen495

Members
  • Content count

    12
  • Joined

  • Last visited

Posts posted by stephen495


  1. Hello, Can anyone help me on the install instructions for this contribution?

     

    Is this include to be added after */

     

    >3) in top of index.php add:

     

    >include(DIR_WS_FUNCTIONS.'category_discount.php');

     

     

    Can you show me what the nested and products sections look like?

     

    >4) in index.php in the "nested" AND in the "products" section you add

     

    >echo category_discount_display($current_category_id);

     

    Thanks,

     

    Stephen


  2. Hi all,

     

    I hope someone out there can give me some help. I have install the Ultimate SEO URLs v2.1 contribution (BTW: great stuff), but when I ture it on in the Admin section I am getting an "404 File Not Found" error

    ----

     

    The requested URL /catalog/mustang-c-21.html was not found on this server.

     

    ----

     

    My config is a follows:

     

    php4.4 for apache

    apache2

    osCom 2.2 (installed into /var/www/localhost/htdocs/catalog/...)

    mysql 4.1.14

    OS LINUX 2.6.15-r1 (GenToo)

    htdocs dir (/var/www/localhost/htdocs)

    ---------

    .......

    Options +FollowSymLinks

    RewriteEngine On

    RewriteBase /

     

     

    Thanks,

    Brian

     

     

    Try changing

    RewriteBase /

    to

    RewriteBase /catalog/


  3. Make sure that you have that rewrite rule in your .htaccess file. The v2.X contribution rewrites more pages than just the categories and product pages...so be sure that you also updated your .htaccess file to accomodate these extra pages.

     

    DevX,

    I do have the above popup rule in .htaccess:

    RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING}

    and here is the other .htaccess info:

    Options +FollowSymLinks

    RewriteEngine On

    RewriteBase /torostore/catalog/

     

    I have worked around the problem by commenting out: // FILENAME_POPUP_IMAGE, in seo_class.php

     

    So pop-up urls are not rewritten, instead using the original format: /catalog/popup_image.php?pID=86,

    but at least the pop-ups display.

     

    The same problem was also worked around in Product reviews information by commenting out the line:

    FILENAME_PRODUCT_REVIEWS_INFO

    Here is the rewrite rule in .htaccess:

    RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING}

     

    and again in Product reviews:

    FILENAME_PRODUCT_REVIEWS, commented out allows product reviews to be made when non exist.

    RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING}

     

    Thanks for the help. Unless you can think of anything else DevX, I'll just limp along without the above rewrites.


  4. I Just upgraded to latest version of SEO Urls, 2.1d. It is working fine except clicking the product on the product page results in a 404 error: The requested URL /catalog/roving-pi-29.html was not found on this server. This problem only effects the popup images, all other images display properly.

    Version 1 of SEO Urls worked fine but it was more than a year old.

    Any ideas?


  5. I seem to recall some other sites having the same problem but I don't recall the solution, if there was one. You should look through the SEO Assistant support thread.

     

    Jack

     

    Thanks again!

    This works to resolve bad arguments on line 162

    Found the solution at post #116: comment out the following in seo link popularity.

     

    // check HotBot

    $path ="http://www.hotbot.com/default.asp?query=linkdomain%3A".$link_url."&ps=&loc=searchbox&tab=web&provKey=Inktomi";

    if(!file_exists($path)) {

    $data = strtolower(strip_tags(implode("", file($path))));

    $data = substr($data, strpos($data, "results 1 - ")+11, strlen($data));

    $data = substr($data, 0, strpos($data, ")"));

    $data = trim(substr($data, strpos($data, "of")+3, strlen($data)));

    if(eregi("[[:alpha:]]", $data)) {

    $results['hotbot'] = array('0', $path);

    } else {

    $results['hotbot'] = array($data, $path);

    $total+=str_replace(',', '', $data);

    }

    } else {

    $results['hotbot'] = array('n/a', $path);

    }


  6. Take a look in includes/boxes and make sure you don't have duplicates of information.php. Many times, a shop owner will rename one to information_oig.php when they are installing a change. If you do have such files, just delete them or move them to another location.

     

    Jack

     

    Thank you very much! That did it, no more duplicates in sitemap. Are duplicate .php files always best keep in a separate backup directory?


  7. I have installed the SEO Assistant 1.3.3. I get this error when I run Link Popularity:

     

    Warning: implode(): Bad arguments. in /home/virtual/site9/fst/var/www/html/catalog/admin/includes/functions/seo_link_popularity.php on line 162


  8. Thanks for Easymap. It is working well except for a conflict with On the Fly Thumbnailer:

    Division by Zero error in On the Fly Thumbnailer module at line 83 of html_outputp.php (see at the bottom of pasted code)

    Any ideas on how to exclude Google maps from the thumbnailer process, or other possible fixes?

     

     

    // "On the Fly Thumbnailer" using PHP GD Graphics Library by Nathan Welch (v1.5)

    // Scales product images dynamically, resulting in smaller file sizes, and keeps

    // proper image ratio. Used in conjunction with product_thumb.php t/n generator.

    function tep_image($src, $alt = '', $width = '', $height = '', $params = '') {

     

    // Set default image variable and code

    $image = '<img src="' . $src . '"';

     

    // Don't calculate if the image is set to a "%" width

    if (strstr($width,'%') == false || strstr($height,'%') == false) {

    $dont_calculate = 0;

    } else {

    $dont_calculate = 1;

    }

     

    // Do we calculate the image size?

    if (CONFIG_CALCULATE_IMAGE_SIZE && !$dont_calculate) {

     

    // Get the image's information

    if ($image_size = @getimagesize($src)) {

     

    $ratio = $image_size[1] / $image_size[0];

     

    // Set the width and height to the proper ratio

    if (!$width && $height) {

    $ratio = $height / $image_size[1];

    $width = intval($image_size[0] * $ratio);

    } elseif ($width && !$height) {

    $ratio = $width / $image_size[0];

    $height = intval($image_size[1] * $ratio);

    } elseif (!$width && !$height) {

    $width = $image_size[0];

    $height = $image_size[1];

    }

     

    // Scale the image if larger than the set width or height

    if ($image_size[0] > $width || $image_size[1] > $height) {

    [Line 83] $rx = $image_size[0] / $width;


  9. Hmmm,

     

    could be something to do with the database name having a dash in it (a bit of a guess...). Anyway, you could try editing that query in the file so that it produces this:

     

    show tables from `threewatersfarm_com_-_main` like 'supertracker'

     

    Or failing that, it may just be simpler to install/update the db table manually with phpmyadmin or similar using the fallback SQL code included in the readme file.

     

    Regards,

    Mark

     

     

    Your suggestion worked!

    Result with DB setup script was New Supertracker Database Table Successfully CreatedEnd of Report

     

    Thanks for the help

     

    Stephen

    Three Waters Farm


  10. I have just installed supertracker components and upon accessing the script page:http://www.yourdomain.com/catalog/supertracker_setup_db.php

     

    I get the following error.

    1064 - You have an error in your SQL syntax near '-_main like 'supertracker'' at line 1

     

    show tables from threewatersfarm_com_-_main like 'supertracker'

     

    [TEP STOP]

     

    Any ideas?

    Stephen


  11. I am also getting file upload errors with easy populate. Is there a soulution to this?

    Here is the error I get when attempting to upload:

     

    File uploaded.

    Temporary filename: /tmp/phpSSJIfH

    User filename: EP2004Dec30-1604u.txt

    Size: 977

     

    Warning: file(): Unable to access /home/virtual/site9/fst/var/www/html/catalog//catalog/temp/EP2004Dec30-1604u.txt in /home/virtual/site9/fst/var/www/html/catalog/admin/easypopulate.php on line 657

     

    Warning: file(/home/virtual/site9/fst/var/www/html/catalog//catalog/temp/EP2004Dec30-1604u.txt): failed to open stream: No such file or directory in /home/virtual/site9/fst/var/www/html/catalog/admin/easypopulate.php on line 657

     

    Warning: Invalid argument supplied for foreach() in /home/virtual/site9/fst/var/www/html/catalog/admin/easypopulate.php on line 680

     

     

    And if I use temp dir. then I get this error:

    Easy Populate 2.74-MS2 - Default Language : English(1)

     

     

     

    Filename: EP2004Dec30-1604u.txt

     

    Warning: file(): Unable to access /home/virtual/site9/fst/var/www/html/catalog//catalog/temp/EP2004Dec30-1604u.txt in /home/virtual/site9/fst/var/www/html/catalog/admin/easypopulate.php on line 675

     

    Warning: file(/home/virtual/site9/fst/var/www/html/catalog//catalog/temp/EP2004Dec30-1604u.txt): failed to open stream: No such file or directory in /home/virtual/site9/fst/var/www/html/catalog/admin/easypopulate.php on line 675

     

    Warning: Invalid argument supplied for foreach() in /home/virtual/site9/fst/var/www/html/catalog/admin/easypopulate.php on line 680

×