Closed (fixed)
Project:
Orange
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 May 2010 at 20:27 UTC
Updated:
17 Feb 2011 at 01:48 UTC
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
Comment #1
nomonstersinme commentedI 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! :)
Comment #2
nomonstersinme commentedChanging the version in this issue to the 2.x-dev release.. can anyone confirm that this is fixed for them in this release?
Comment #3
luckysmack commentedcant 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
Comment #4
luckysmack commentedI 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
Comment #5
nomonstersinme commentedyeah that was a global d.o issue.. you shouldn't have any problems downloading it now.
Comment #6
nomonstersinme commented