Closed (fixed)
Project:
Boxes
Version:
6.x-1.0-beta6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2010 at 16:32 UTC
Updated:
6 Jul 2010 at 12:50 UTC
when I run
module_invoke('boxes', 'block', 'view', $delta);
to display a box in an og space node I get this error
Cannot use object of type boxes_simple as array in ..... \boxes\boxes.module on line 453
when I run the same code in a normal node it works and prints the box.
Comments
Comment #1
tobiassjosten commentedI'm having this same problem, with the same version. However I don't "manually" output the box but I use Context to place the block instead.
Comment #2
jmiccolis commentedAre these fresh installs or upgrades from a previous version of boxes?
Comment #3
abbasmousavi commentedI have uninstalled beta 4 then installed beta 5
Comment #4
abbasmousavi commentedit seems that this patch solves the problem
Comment #5
abbasmousavi commentedwhen I use inline editing to save a box I get following error
it seems that $space->controllers->boxes->get($delta) returns null.
It can not also be saved from blocks administration page.
Comment #6
mrtorrent commentedPatch from #4 seems to work for me
Comment #7
mrtorrent commentedScratch that, when editing a box with the patch from #4, I get:
Exception: Cannot save box without a specified delta. in sites/all/modules/boxes/plugins/boxes_box.inc on line 103
Comment #8
mrtorrent commentedA really quick albeit incomplete fix is to just cast the box object to an array:
Really, though, this should be fixed properly. I'm afraid I don't have any idea what's going on here, so I can't be much help finding a better solution than this.
Comment #9
jmiccolis commentedJust seeing this issue again after posting http://drupal.org/node/812252#comment-3025718
I suspect these issues are related. Tests with that patch would be appreciated.
Comment #10
abbasmousavi commentedthe problem also exists in beta 6. with the patch in #4 I can see the box but I can not edit the box.
Comment #11
abbasmousavi commentedto :jmiccolis the patch does not solve the problem.
Comment #12
abbasmousavi commentedto: mrtorrent
casting the box object only solves the viewing problem, not editing problem. when I edit the box I get no error but the changes does not save.
Comment #13
tancTested patch from #6 in http://drupal.org/node/812252
Initial tests seem to indicate that the problem of editing the boxes and viewing the boxes in an OG space is fixed. Note that I updated to latest betas of context, spaces and boxes, upgraded db and then applied boxes patch.
Will report back if I find any more issues.
Comment #14
jmiccolis commented@abbasmousavi can you please test against cvs branch DRUPAL-6--1 directly, I've just committed a set of changes that should address your issue. I'll be rolling these changes into a release in the next day or so.
Comment #15
abbasmousavi commented@jmiccolis applying patch from #6 in http://drupal.org/node/812252 to beta6 solves the problem for me. thanks.
Comment #16
jmiccolis commentedGreat. There will be a new release of boxes a little later today.