On a site with Simple Cache enabled I get this error every time Panels tries to fetch cached content if there is nothing in the cache:

recoverable fatal error: Object of class stdClass could not be
converted to string in
/sites/all/modules/panels/templates/panels-pane.tpl.php
on line 39.

It is only a 3.x-dev problem, no problem with version 3.2

CommentFileSizeAuthor
#15 panels-cache-problem-655268-13.patch1.46 KBkosmikko

Comments

merlinofchaos’s picture

Priority: Minor » Normal

This seems higher priority than minor.

Anonymous’s picture

subscribing. seeing same issue here with jan 21 build.

dicreat’s picture

subscribing

stephthegeek’s picture

Looks like the same issue here: http://drupal.org/node/701914

Chad_Dupuis’s picture

sub - seems like the issue I'm having with the 3.3 release...

butler360’s picture

Also getting this issue. Rolling back to 3.2 fixes it, so I guess it's something in the 3.3 release.

dddave’s picture

Title: Cache problem with 3.x-dev » Cache problem with 3.x-dev / also present in 3.3 release
Version: 6.x-3.x-dev » 6.x-3.3

Updating (problem confirmed btw)

#702382: 3.3 Stops Fusion Theme System from Working With Panels seems to be a dub

bensemmel’s picture

Having the same problem with version 3.x-dev...

skyredwang’s picture

subscribe

stieglitz’s picture

same issue after adding google adsense to a pane.

Chad_Dupuis’s picture

If it's helpful, I only have 3 panes and all 3 had a google ad in one of the blocks... So maybe there is something to that...

stieglitz’s picture

Turns out it wa not the adsense causing the problem. I believe it is the simple cache. I turned it off on the only pane which was custom content and it seems to have taken care of the problem. Perhaps it is a combination of custom content AND simple cache?

hughworm’s picture

Same problem, caused by a new line in panels/includes/plugins.inc line 73:
$content->content = $cache->content;
which I think should read:
$content = $cache->content;
(consistent with line 61) since it's the $content object that is in the cache.

That fixes it. Can someone do a patch?? Beyond me! :-)

dddave’s picture

Status: Active » Needs review

Although this isn't a patch and I am unable to provide one, I think this approach could need the eye of someone familiar with the panels code. There might be some reason why this new line was introduced.

Merlin perhaps? ;)

kosmikko’s picture

StatusFileSize
new1.46 KB

Here's a patch for #13

butler360’s picture

I tried that patch but it didn't work for me.

skyredwang’s picture

Status: Needs review » Needs work

set the status back to needs work since #16 reports the patch doesn't work

merlinofchaos’s picture

Status: Needs work » Needs review

Hmm. I can't see why #15 wouldn't work -- butler360 can you provide more information? Are you sure you applied the patch correctly? Are you sure you're experiencing the same problem?

merlinofchaos’s picture

In fact, my tests reproduce the problem and fix the problem.

dddave’s picture

Status: Needs review » Reviewed & tested by the community

Changed the line manually and this fixed the problem. Unless the patch should do something in addition and not only change the line, this is rtbc.

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

#15 committed to -dev.

butler360’s picture

Strangely enough, when I updated to the dev version of Panels, I lost my homepage (a Panels page) on each site in my multisite config. Upgrading to ctools to dev fixed it and now everything works. Weird.

Edit: It works on some of my sites. On one platform, certain content still isn't rendered. When editing the panel page, the styling sometimes changes around and I get errors like these on occasion: http://drupal.org/node/621634 and http://drupal.org/node/455918

Edit2: Content isn't rendered if there's something in the title field but nothing in the body field. It worked before, though. It's not a big deal for me, as it can be worked around, though.

merlinofchaos’s picture

This is probably because Panels tends to move its CTools version requirement up as new things happen. If you upgrade Panels without CTools, Panels will see that CTools is too old and remove itself. The alternative is crashing.

yann_riviere’s picture

#15 works for me.

Status: Fixed » Closed (fixed)

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

AntiNSA’s picture

+1

shyam541’s picture

Bookmarking...