Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Joomla Bridge Support => Topic started by: k9disc on March 29, 2008, 01:53:08 AM

Title: Jom Comment SMF Error?
Post by: k9disc on March 29, 2008, 01:53:08 AM
Hi,

I'm having some problems with the joomlahacks SMF bridge and Jom Comment.

Here's the error:
QuoteDatabase Error: No database selected
File: /home/k9disc/public_html/speak/Sources/Load.php
Line: 2008
Warning: Unknown: A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

Warning: Unknown: A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

and here's the pertinent code:


   
Quote// First try to update an existing row...
   $result = db_query("
      UPDATE {$db_prefix}sessions
      SET data = '" . addslashes($data) . "', last_update = " . time() . "
      WHERE session_id = '" . addslashes($session_id) . "'
      LIMIT 1", __FILE__, __LINE__);

   // If that didn't work, try inserting a new one.
   if (db_affected_rows() == 0)
      $result = db_query("
         INSERT IGNORE INTO {$db_prefix}sessions
            (session_id, data, last_update)
         VALUES ('" . addslashes($session_id) . "', '" . addslashes($data) . "', " . time() . ")", __FILE__, __LINE__);

   return $result;
}

Any help would be appreciated.

Cheers,
Ron
Title: Re: Jom Comment SMF Error?
Post by: Orstio on March 29, 2008, 03:27:07 PM
You will find better support for that integration at joomlahacks.com.