Skip to Content Skip to Menu

UddeIM api not saving new messages

12 years 11 months ago #180633 by bernardnoguez
UddeIM api not saving new messages was created by bernardnoguez
Hey there community!!

My problem is this, I'm using a plugin for a Help Desk application on my Joomla site (Mibew Messenger), i managed to integrate the plugin (not joomla) and make the plugin send messages to the users via the UddeIM api.
Everything is working fine on my development and test environments, however, when we moved to production it stopped working, the only error i get is a "SQL error when attempting to save a message" thrown by the includes.db.php in the UddeIM files, however Joomla says that the "functions on the database didn't report any error".
I'm kinda stuck here, any word of advice would be greatly appreciated (I'm kinda new using Joomla and everything related).

Thanks!!

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
12 years 11 months ago #180652 by slabbi
Replied by slabbi on topic Re: UddeIM api not saving new messages
Can you post the full error message, plz? Without that message and the line the error appears it is impossible to help.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

12 years 11 months ago #180722 by bernardnoguez
Replied by bernardnoguez on topic Re: UddeIM api not saving new messages
Hey there sorry for that.

Here's the code:
Code:
$uddeim = new uddeIMAPI(); $user =& JFactory::getUser(); $userId = $user->id; switch($groupid){ case '1': $recipientId = '57'; break; case '2': $recipientId = '58'; break; case '3': $recipientId = '56'; break; case '4': $recipientId = '50'; break; default: die('No group defined'); } $uddeim->sendNewMessage($userId,$recipientId,$body);

The error is thrown by the last line, which reports nothing but the following:

"SQL error when attempting to save a message Las funciones de la base de datos, no reportan ningún error"

The first part (English) is thrown by includes.db.php, and the last part is a Joomla message which i have localized to Spanish, but its saying that the functions on the database are not reporting any error.

Let me know if you think any other piece of info would be useful

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
12 years 11 months ago #180751 by slabbi
Replied by slabbi on topic Re: UddeIM api not saving new messages
Can you enable site debugging please. I need the original SQL error, not the error that is thrown by the API.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

12 years 11 months ago - 12 years 11 months ago #180757 by bernardnoguez
Replied by bernardnoguez on topic Re: UddeIM api not saving new messages
Problem is that's the output even with site debugging on.

Even the Apache error log has nothing reported.

I activated the MySql server Query Log and it seems as the uddeim insert query is not making it to the sever. :S
Last edit: 12 years 11 months ago by bernardnoguez.

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum