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?

CommentFileSizeAuthor
#1 httprl-2072919-1-fix-serialize.patch3.43 KBmikeytown2
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikeytown2’s picture

Status: Active » Fixed
FileSize
3.43 KB

Thanks 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.

PROMES’s picture

I 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.