I installed HTTPRL together with Advagg in Drupal and JSMin (the C-version) on the server and enabled js compression with JSMin. Since then I receive evry so now and then the following notice and warning messages:
Notice: unserialize(): Error at offset 5 of 224 bytes in httprl_extract_background_callback_data() (line 1864 of /.../sites/all/modules/httprl/httprl.module).
Warning: Invalid argument supplied for foreach() in httprl_recursive_array_reference_extract() (line 1904 of /.../sites/all/modules/httprl/httprl.module).
The offset is always (?) 5 and the number of bytes vary.
Is this due to some settings I made in httprl or advagg?
Comment | File | Size | Author |
---|---|---|---|
#1 | httprl-2072919-1-fix-serialize.patch | 3.43 KB | mikeytown2 |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedThanks for the bug report. Following patch has been committed.
Long story short the serialize() function can cause issues with application/x-www-form-urlencoded content types, thus it needs to be base 64 encoded following the spec in rfc4648.
Comment #2
PROMESI saw you patched the dev version as well, I downloaded that file.
As far as I can see the patch does it work: no more notices / warnings in the pages I earlier found these.
Thanks for your quick patch.