0

When getting an error page, there is always a line at the beginning of the file, that states where the error happened, for example:

a:5:{i:0;s:172:"Cannot send headers; headers already sent in path/to/the/file/Sales/Order/Pdf/Items/Invoice.php, line 1";i:1;s:1539:"

or

a:5:{i:0;s:25:"No date part in '' found.";i:1;s:6372:"#0 path/to/the/file/code/core/Zend/Date.php(1091): Zend_Date->_calculate('set', false, NULL, 'en_US')

What exactly do these i:0;s:25, i:0;s:172:, i:1;s:6372, i:1;s:1539:, parts mean?

  • put Invoice.php code – Amit Bera Sep 2 '14 at 8:27
  • this question is not meant to search for an answer for those particular errors. I would like to know what those i and s statements mean, in general. – user3432078 Sep 2 '14 at 8:35
1
i:0;s:25, i:0;s:172:, i:1;s:6372, i:1;s:1539:

The error message along with other information it being serialized by the error handler so you see what would be a php array/object in it's serialized form.

This will give you more details on how serialize works.

0

user3432078,you have echo or print or var_dump at Invoice.php Just remove echo or print and var_dump

  • thanks, for your help, but the error messages was just an example. I updated the question to make it more clear. – user3432078 Sep 2 '14 at 8:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.