Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Pektsekye

Members
  • Content count

    193
  • Joined

  • Last visited


Reputation Activity

  1. Like
    Pektsekye got a reaction from cleve in Ultimate SEO URLs v3.0 Features   
    The solution is to replace:
     

    function SEO_DataBase($host, $user, $db, $pass){ $this->host = $host; $this->user = $user; $this->db = $db; $this->pass = $pass; $this->ConnectDB(); $this->SelectDB(); }
     
    With:

    function SEO_DataBase($host, $user, $db, $pass){ global $db_link; $this->host = $host; $this->user = $user; $this->db = $db; $this->pass = $pass; $this->link_id = $db_link; //$this->ConnectDB(); //$this->SelectDB(); }
     
    In the catalog/includes/classes/seo.class.php - Ultimate SEO URLs contribution class.
     
     
    The seo.class.php was written to connect to the database while the store is already connected.
    This cause a problem for some servers. The mysql_insert_id() function returns 0 .
    As you see I have added 2 lines to make the seo.class.php use the ready store DB connection $db_link
    And I have commented out the lines that connects to the database.
     
     
    Stanislav
×