Closed (fixed)
Project:
Ubercart
Version:
7.x-3.0-beta3
Component:
Shipping
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2011 at 19:54 UTC
Updated:
22 Aug 2011 at 15:51 UTC
Click "packing slip" from shipments tab and fatal error displays:
Fatal error: Cannot use object of type stdClass as array in /home/bsb/domains/bsb/public_html/includes/theme.inc on line 813
Have tested with 7.x-3.0-beta3 and 7.x-3.x-dev from Jun 8 and with Bartik and Seven themes.
Comments
Comment #1
longwaveComment #3
mcctnt2000 commentedSame Error when attempting to print a packing slip;
Fatal error: Cannot use object of type stdClass as array in /home/content/53/8013653/html/includes/theme.inc on line 813
When looking at the theme.inc file, starting on line 813 I have this:
// If a renderable array is passed as $variables, then set $variables to
// the arguments expected by the theme function.
if (isset($variables['#theme']) || isset($variables['#theme_wrappers'])) {
$element = $variables;
$variables = array();
if (isset($info['variables'])) {
foreach (array_keys($info['variables']) as $name) {
if (isset($element["#$name"])) {
$variables[$name] = $element["#$name"];
}
}
}
else {
$variables[$info['render element']] = $element;
}
}
I am using fusion with the Acquia Prosper theme.
Not sure what the problem is, any input would be greatly appreciated.
Comment #4
tr commented#1 indicates this was fixed. To get the fix you will have to use a -dev version dated after 10 June.
Comment #5
adam clarey commentedIve just tried with beta4 and the latest dev and im still getting the same error above.
EDIT: My mistake, it was my code that was causing the error because it hadn't been updated to reflect the new changes.
Comment #6
adam clarey commented