PHP Classes

Error caused by an undefined variable

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Error caused by an undefined variable  >  (Un) Subscribe thread alerts  
Subject:Error caused by an undefined variable
Summary:Undefined variable: warning (at line 1941)
Messages:6
Author:Josep Sanz Campderrós
Date:2016-08-13 06:13:24
 

  1. Error caused by an undefined variable   Reply   Report abuse  
Picture of Josep Sanz Campderrós Josep Sanz Campderrós - 2016-08-13 06:13:24
2016-08-12 10:57:55.1189: ***** PHP Error *****
2016-08-12 10:57:55.1189: Undefined variable: warning (code 8)
2016-08-12 10:57:55.1190: ***** Details *****
2016-08-12 10:57:55.1190: Error on file 'lib/phpclasses/mime_parser.php' at line 1941
2016-08-12 10:57:55.1190: ***** Backtrace *****
2016-08-12 10:57:55.1190: 0 => __error_handler (in file lib/phpclasses/mime_parser.php at line 1941)
2016-08-12 10:57:55.1190: 1 => Decode (in class mime_parser_class) (in file php/getmail.php at line 107)
2016-08-12 10:57:55.1190: 2 => __getmail_mime_decode_protected (in file php/getmail.php at line 463)
2016-08-12 10:57:55.1190: 3 => __getmail_insert (in file php/action/getmail.php at line 452)
2016-08-12 10:57:55.1190: 4 => include (in file index.php at line 91)

  2. Re: Error caused by an undefined variable   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-08-13 06:43:44 - In reply to message 1 from Josep Sanz Campderrós
Oh, that is a harmless bug but I can fix it faster if you provide a complete example message with headers and body that helps me figure if I have fixed it correct.

Can you please upload somewhere a minimal message that I can use to reproduce the problem?

  3. Re: Error caused by an undefined variable   Reply   Report abuse  
Picture of Josep Sanz Campderrós Josep Sanz Campderrós - 2016-08-13 21:46:39 - In reply to message 1 from Josep Sanz Campderrós
Hi Manuel.

This bug was detected by a SaltOS's user that don't know what message originate the problem. Currently, this user is using a previous version of the mime_parser.php file to solve the detected bug. I have requested to this user to return to use the latest release of the mime_parser.php file to get an example able to reproduce the problem.

Josep.

  4. Re: Error caused by an undefined variable   Reply   Report abuse  
Picture of Josep Sanz Campderrós Josep Sanz Campderrós - 2016-08-27 14:28:32 - In reply to message 2 from Manuel Lemos
Hi Manuel.

I can prepare an example that allow to see the problem in action:

================================================================================
BEGIN
================================================================================
To: example@example.com
CC:
Date: Sat, 27 Aug 2016 07:17:49 +0000

This is a test message

================================================================================
END
================================================================================

Thanks in advance.

Josep.

  5. Re: Error caused by an undefined variable   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-08-27 23:39:40 - In reply to message 4 from Josep Sanz Campderrós
OK, I have fixed the issue and uploaded the fixed version. It was just a copy and paste bug.

Just let me know if you still find any issues.

  6. Re: Error caused by an undefined variable   Reply   Report abuse  
Picture of Josep Sanz Campderrós Josep Sanz Campderrós - 2016-08-28 00:45:49 - In reply to message 5 from Manuel Lemos
Thanks Manuel by your quick response.

If I detect some thing, I inform you about it.

Josep.