Jom Comment SMF Error?

Started by k9disc, March 29, 2008, 01:53:08 AM

Previous topic - Next topic

k9disc

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

Orstio

You will find better support for that integration at joomlahacks.com.

Advertisement: