Hello,

first sorry for my english but i will try to do my best.

I have found a little mistake in panels_simple_cache.module on line 74.

warning: unserialize() expects parameter 1 to be string, object given in /.../sites/all/modules/panels/panels_simple_cache/panels_simple_cache.module on line 74.

return unserialize($cache->data);

replace with

return $cache->data;

The cache_get function unserialize the cache->data so you don't unserialize in panels_simple_cache_get_cache function.

CommentFileSizeAuthor
#1 panels_simple_cache.patch238 byteslealex

Comments

lealex’s picture

StatusFileSize
new238 bytes
avpaderno’s picture

Title: warning: unserialize() ... panels_simple_cache.module on line 74 » Wrong parameter for unserialize()

That is evident in the function documentation, where in the function code is visible the following lines:

  $cache->data = db_decode_blob($cache->data);
  if ($cache->serialized) {
    $cache->data = unserialize($cache->data);
  }

-- Kiam
Kiam la luno renkontas la sunon

avpaderno’s picture

Title: Wrong parameter for unserialize() » unserialize() must not be called for data get from cache_get()
merlinofchaos’s picture

Status: Needs review » Closed (won't fix)

Panels 2 is no longer available and is unsupported. Marking all Panels 2 issues won't fix.