Hi, I fixed this notice and propose this patch for review.

CommentFileSizeAuthor
memcached.patch497 bytesrsvelko

Comments

rsvelko created an issue. See original summary.

rsvelko’s picture

more info / bug analysis: some of the $pieces dont have ->data because they are == NULL - I saw this using easy_kint's d() function to see all $piece variables in the foreach($pieces as $piece) - some of them had $piece->data set and not empty, but other $piece vars were /are NULL...
my patch fixes the php notice via the usual "if isset" method.

sketman’s picture

I had this error too, patch made it for me. Thanks!

sketman’s picture

Status: Needs review » Reviewed & tested by the community
jeremy’s picture

Status: Reviewed & tested by the community » Closed (works as designed)

This shouldn't happen; and, putting together NULL pieces will likely re-assemble an invalid option. Possibly this was from https://www.drupal.org/node/2415109 -- if you're using memcached instead of memcache with the latest release, you can still run into this error. Alternatively, perhaps you're seeing some evictions.