With the UC Attributes module enabled, you receive the following error for any product node that has an attribute:

recoverable fatal error: Object of class stdClass could not be converted to string in /xxxxx/sites/all/themes/omega/template.php on line 233.

This is due to the use of $vars['node_attributes'] = $vars['node']->attributes; in preprocess-node.inc.

I'm not sure why you have a check against that, as its pretty much always not set, except in this situation. What happens is that an object of the attributes is added to your $vars['node_attributes'] array, and when you implode the array, it throws out that error. The solution I came up with is to remove the check and simply set $node_attributes to an array. Patch attached for that fix.

Files: 
CommentFileSizeAuthor
omega-preprocess-node-attributes.patch556 bytesincrn8

Comments

I will dig deeper into this issue, This was code as default provided by the Studio theme. From their code, the only preprocess that I have scoured intensely was the preprocess_page code, and never dug much further for the core development of the theme. Also, some of this functionality may be broken based on currently not including a node.tpl.php in the Omega theme (@todo)

I'll see what I come up with, and get ubercart setup in a sandbox this weekend to play around.

Assigned:Unassigned» himerus
Status:Active» Closed (fixed)

Fixed in 6.x-1.0-alpha4 release.

Status:Closed (fixed)» Fixed

Status:Fixed» Closed (fixed)

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