When using ubercart, i came across this issue which seems to have an issue converting an object into a string.

* recoverable fatal error: Object of class stdClass could not be converted to string in /var/www/drupal/sites/all/themes/orange/template.php on line 212.

Heres the code

208    foreach ($attributes as $attribute => $data) {
209      if (is_array($data)) {
210        $data = implode(' ', $data);
211      }
212      $items[] = $attribute .'="'. $data .'"';
213    }

replacing it with this seems to do the trick:

208    foreach ($attributes as $attribute => $data) {
209      if (is_array($data)) {
210        $data = implode(' ', $data);
211      }
212      if (is_string($data)) {
213        $items[] = $attribute .'="'. $data .'"';
214      }
215    }

Another on the ubercart forums seems to confirm this fixes the issue as well.

Comments

nomonstersinme’s picture

I have updated this in the 6.x-2.x-dev version. I have not seen an error.. please let me know if there is one and thanks for fix! :)

nomonstersinme’s picture

Version: 6.x-1.3 » 6.x-2.x-dev

Changing the version in this issue to the 2.x-dev release.. can anyone confirm that this is fixed for them in this release?

luckysmack’s picture

cant seem to download the -dev release. file seems to not exist on drupals server

http://ftp.drupal.org/files/projects/orange-6.x-2.x-dev.tar.gz

luckysmack’s picture

I am unable to download the dev release. i get file not found errors

http://ftp.drupal.org/files/projects/orange-6.x-2.x-dev.tar.gz

nomonstersinme’s picture

yeah that was a global d.o issue.. you shouldn't have any problems downloading it now.

nomonstersinme’s picture

Status: Needs review » Closed (fixed)