Recoverable fatal error: Object of class stdClass could not be converted to string in require_once() (line 98 of ... adaptivetheme/at_core/inc/forms/at_core.submit.info.inc)

CommentFileSizeAuthor
#3 problem.png61.22 KBmathieso

Comments

techpassion’s picture

I have the same issue. Any update on this??

Jeff Burnz’s picture

Category: bug » support

What version of Adaptivetheme, I can't reproduce this on 7.x-3.x

mathieso’s picture

StatusFileSize
new61.22 KB

Same issue here.

Only happens when I upload an image.

Attached a debugging screenshot. Line 128 (where the problem is) uses $setting_value as a string. $setting_value is set in a foreach in line 118, from the $theme_settings array. In the variables list at the bottom of the screenshot, you can see that $theme_settings includes a stdClass object, $header_upload.

That might be the source of the problem. However, sometimes I have been able to upload an image without any problem.

Tried Noggin 1.1 and dev.

Using AT 7.x-3.1. Pixture Reloaded 7.x-3.0-rc1. Using a subtheme of a subtheme of Pixture Reloaded, in case that makes a difference. This has to do with using domain access to give users domain-level theme control.

BTW, Jeff - AT, Noggin, and friends are impressive pieces of work. The complexity they handle would make my brain explode. I appreciate the depth of your work.

Kieran

mathieso’s picture

The problem: $theme_settings['header_upload'] has a file object (stdClass) in it when this line in at_core.submit.info.inc is run:

foreach ($theme_settings as $setting_name => $setting_value) {

So $setting_name is 'header_upload', and $setting_value is a stdClass object.

The foreach loop has this in it:

$dynamic_settings_info[] = "settings[$setting_name] = $setting_value";

This is the line that causes the error: Object of class stdClass could not be converted to string.

Should the file object be serialized before being being put into settings? I don't know. Grasping at straws.

Balbo’s picture

Any news?

jamesoakley’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

Is this still an issue for people? I'm not clear if this is an issue with Noggin or Adaptive Theme.

If anyone is still fighting this error, please post here with further information.

jamesoakley’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Please reopen with more information if this is still an issue.