Debugging File : [SYSTEM_ROOT]/core/lib/html_form/html_form.inc matrix errors


(Douglas (@finnatic at @waikato)) #1

Anyone have any tips for debugging "File : [SYSTEM_ROOT]/core/lib/html_form/html_form.inc" matrix errors?

 

We have some forms which were migrated into Matrix, and we see occasional errors which I'd like to properly diagnose and the error email doesn't appear to contain a clear "this is what failed" amongst the PHP back trace + other details.

 


(Douglas (@finnatic at @waikato)) #2

<bump> It would be really helpful if we could get some assistance with interpreting these </bump>


(Anthony Ponomarenko) #3

Do the errors include any line numbers at all?


(Douglas (@finnatic at @waikato)) #4

 

*Matrix Error*

File : [SYSTEM_ROOT]/core/lib/html_form/html_form.inc
Line : 673
Version : 5.3.4.0
DB Type : pgsql

 

There's a line number reported for html_form.inc which I haven't had time to track down and look at.  The error emails are a little daunting given the amount of detail in the back trace.


(Marcus Fong) #5

That line number appears to correspond to this block of code:

                case UPLOAD_ERR_PARTIAL :
                        trigger_localised_error('SYS0023', E_USER_WARNING, $nice_name);
                        return FALSE;
                break;

...so it seems like in that case, the file upload was cut off partway for some reason.