Results 1 to 2 of 2

RC4 - SEO URLs disabled - endless loop

This is a discussion on RC4 - SEO URLs disabled - endless loop within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; Hi I'm currently experimenting with RC4 and hit an interesting issue. Whilst I'm setting up I turned off seo -cache ...

      
  1. #1
    Member mfleeson's Avatar
    Join Date
    Aug 2004
    Location
    Lindisfarne, UK
    Posts
    40
    Rep Power
    0


    Default RC4 - SEO URLs disabled - endless loop

    Hi
    I'm currently experimenting with RC4 and hit an interesting issue. Whilst I'm setting up I turned off seo-cache however everytime I clicked on a product it went into an endless loop of redirects. I ended up using wget to track down the problem, the browser just went into endless 301 redirects.

    I took a look at the SEO config and it showed Redirect = true, whilst enable SEO = false, so it shouldnt have been redirecting.

    I turned redirect off and everything sorted itself.

    I looked at the code seo.class.php and found:

    if ($this->attributes['USE_SEO_CACHE_GLOBAL'] == 'true'){
    $this->cache_file = 'seo_urls_v2_';
    $this->cache_gc();
    if ( $this->attributes['USE_SEO_CACHE_PRODUCTS'] == 'true' ) $this->generate_products_cache();
    if ( $this->attributes['USE_SEO_CACHE_CATEGORIES'] == 'true' ) $this->generate_categories_cache();
    if ( $this->attributes['USE_SEO_CACHE_MANUFACTURERS'] == 'true' ) $this->generate_manufacturers_cache();
    if ( $this->attributes['USE_SEO_CACHE_ARTICLES'] == 'true' && defined('TABLE_ARTICLES_DESCRIPTION')) $this->generate_articles_cache();
    if ( $this->attributes['USE_SEO_CACHE_TOPICS'] == 'true' && defined('TABLE_TOPICS_DESCRIPTION')) $this->generate_topics_cache();
    if ( $this->attributes['USE_SEO_CACHE_INFO_PAGES'] == 'true' && defined('TABLE_INFORMATION')) $this->generate_information_cache();
    } # end if

    if ($this->attributes['USE_SEO_REDIRECT'] == 'true'){
    $this->check_redirect();
    } # end if

    Now I might be wrong but shouldnt


    **** if ($this->attributes['USE_SEO_REDIRECT'] == 'true'){
    $this->check_redirect();
    } # end if
    *****

    be moved inside the above block so it is positioned below the line
    defined('TABLE_INFORMATION')) $this->generate_information_cache();

    Wasnt sure if this was a bug or me misunderstanding so thought I'd post here before bugtracking it.

    p.s. Any idea when RC4 will be approved for basic production use?

    Best Wishes

    Mark

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default Re: RC4 - Possible Bug

    Not a bug. You forgot to remove the rewrite rules in .htaccess file. Comment them out and your problem goes away.

    RC4 still has some other real bugs that need to be fixed before full release, but it is already being commonly used in production without issues by those that are skilled enough to work around or correct the small issues themselves. There are a lot of smaller issues that add up to a headache for most users though.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. Admin Login loop after server move
    By klittl06 in forum osCommerce 2.2 Installation Help
    Replies: 8
    Last Post: 08-09-2007, 08:42 PM
  2. Rogue TDs in Product Listing Columns - Broken Loop
    By where_s_gary in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 10-03-2005, 01:31 PM
  3. Disabled for Security Reasons
    By dnjdesigns.net in forum osCMax v1.7 Installation
    Replies: 4
    Last Post: 06-06-2005, 05:49 PM
  4. Foreign shipping getting stuck in loop on checkout
    By gheffron in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 05-31-2005, 04:33 PM
  5. php-error: register_globals is disabled in php.ini
    By Anonymous in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 11-05-2002, 02:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •