Author Topic: Error: text is null  (Read 2735 times)

Guanijei

  • Newbie
  • *
  • Posts: 3
    • View Profile
Error: text is null
« on: August 05, 2009, 04:56:30 pm »
I keep getting this error message sometimes when I try to get emails from the server. It seems it's an error caused by some spam emails, but when I go to the server and delete those spams I get it to work again. Someone told me this was going to get fixed with 1.5.1 version, but it keeps happening.

Does anybody know what could be going wrong?

Thanks.

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: Error: text is null
« Reply #1 on: August 05, 2009, 05:34:02 pm »
What is the error message?
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

Guanijei

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Error: text is null
« Reply #2 on: August 05, 2009, 05:53:25 pm »
Exactly that:

Text is null

Maybe there is a way of getting more information about it

thanks

Found this in Log.php

Session "default" started at 2009-08-06T11:53:09+0000
#1 DEBUG: SQL ERROR: Query failed with message 'Algo está equivocado en su sintax cerca '2'"!'  LIMIT 1' en la linea 1' - SELECT `id` FROM `og_mail_contents` WHERE `account_id` = 11 AND `uid` = '=O,!!?8]"!8\l"!'2'"!'  LIMIT 1
#2 ERROR: Error: json_encode() [<a href='function.json-encode'>function.json-encode</a>]: Invalid UTF-8 sequence in argument in 'C:\Archivos de programa\EasyPHP 3.0\www\opengoo\application\views\json.php' on line 1 (error code: 2)
Time since start: 2.3662750720978 seconds
« Last Edit: August 06, 2009, 08:56:53 am by Guanijei »

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: Error: text is null
« Reply #3 on: August 06, 2009, 11:01:20 am »
Hi,

Replace line 16 of /application/models/mail_contents/MailContents.class.php with this one:
Code: [Select]
$sql = "SELECT `id` FROM `". TABLE_PREFIX ."mail_contents` WHERE `account_id` = $account_id AND `uid` = '".mysql_real_escape_string($uid)."' $folder_cond LIMIT 1";

greetings

Guanijei

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Error: text is null
« Reply #4 on: August 06, 2009, 02:53:18 pm »
Gracias Alvaro!!!

It seems problem is fixed... let me test it for a little while to see what happens.

thanks again.