Hi there.
I'm running OpenPublish, and every time I try and run cron or access some panels pages, I get the following error:
Fatal error: Class name must be a valid object or a string in /home/socialpu/public_html/sites/all/modules/ctools/includes/export.inc on line 905

I've asked in the OpenPublish group and had no response, but since it specifically references CTools I thought I'd post here.

I have tried this with and without the CTools Export module active, and it makes no difference, I just get an error whenever I try and run cron or access panels pages.

Does anyone have any idea what might be causing this?

Thanks.

Comments

marco88’s picture

Hi there,

I got what seems to be a similar issue on upgrading panels from 5.x to 6.28. The error occurs while running update.php. Looking into the watchdog logs an error on a select was raised because table panels_layout was not created.

I ran again the update.php script and the error didn't appear any more. I tested a small panel page and it worked fine.

Hope this helps,

Kind regards,
Marc.

bigkevracer’s picture

Thanks Marc.

I tried that with no change.

I then tried downgrading to the version of panels that shipped with OpenPublish. I uninstalled the version I had installed, then installed the version straight out of the OpenPublish distribution (6.x-3.8), and now I get this error:
Fatal error: Call to undefined method stdClass::render() in /home/socialpu/public_html/sites/all/modules/panels/panels.module on line 1023

Any more ideas?

nedjo’s picture

mohit0604’s picture

Hi bigkevracer
I am getting the same issue

Fatal error: Class name must be a valid object or a string in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\paniim\httpdocs\sites\all\modules\ctools\includes\export.inc on line 905

when running the drupal project from localhost

and after commenting the code in this file, I got this error : Fatal error: Call to undefined method stdClass::render()

You must have found a solution by now.
Please let me know if anyone has any solution to this problem.

anawillem’s picture

I am also getting:

Fatal error: Call to undefined method stdClass::render() in /home/dev/devsmoke/sites/all/modules/panels/panels.module on line 1023

Using:
ctools 6.x-1.8
panels 6.x-3.9

anawillem’s picture

Project: Chaos Tool Suite (ctools) » Panels
Version: 6.x-1.8 » 6.x-3.9

changing issue to panels.

merlinofchaos’s picture

Project: Panels » Chaos Tool Suite (ctools)
Version: 6.x-3.9 » 6.x-1.8

#5 doesn't look anything like the original error. All you are accomplishing is to muddle an existing issue.

merlinofchaos’s picture

As for the initial error, it would appear that some module is implementing export.inc API and has declared that its objects are of a class; however, when an object is loaded that class is not available. It's hard to tell, from the error message, where that might be happening, but in Drupal 6 it is going to be the responsibility of that module to ensure that its class is available.

anawillem’s picture

merlinofchaos i agree that my changing the project on the issue was a nasty no good trick, and i love you and your work so much. so i am sorry.

the error i noted was the same error as bigkevracer #2 noted above which made me think i might be able to get in under the radar like the sneeky, sneeky dog that i am.

i have created a ticket here:

http://drupal.org/node/1312680

if you have any thoughts, which have always been helpful in the past, i would love to hear them.
thanks!

goofken’s picture

Had the same error runningOpenpublish when trying to view a Topic hub You have to activate the ctools module "Custom content panes" in module control panel.

nedjo’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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