I have a D6 installation with OG and Location. The nodes that are edited collaboratively keep revisions, but I am having problems showing the differences.
When I choose two revisions and hit on Show Diff button, I get a fatal error with this message.
Cannot use object of type stdClass as array in /[...]/sites/all/modules/location/location.module on line 1436
When going to another page from that error, I get the following warning:
warning: Missing argument 3 for location_diff() in /[...]/sites/all/modules/location/location.module on line 1345.
Any idea?
Comments
Comment #1
steckels00 commentedI am seeing the same issue in 5.x-3.0 with all of our content types, just a different line number. As it's the same issue/different version thought I'd post this as well. Using Drupal 5.14
Cannot use object of type stdClass as array in /[...]/sites/all/modules/location/location.module on line 1412Comment #2
bdragon commentedMarking as master.
This is now fixed, I had to rename the api function location_diff() to do it, so I changed location_api_variant() to 2.
http://drupal.org/cvs?commit=162978
http://drupal.org/cvs?commit=162979
http://drupal.org/cvs?commit=162982
Comment #3
bdragon commentedDuplicates marked.
#352604: Location error on diff of multiple revisions
#349220: location(dif)
Comment #4
bdragon commentedDuplicate marked.
#356622: Incompatible with Diff Module
Comment #6
fgmSame problem here again in 6.x.
Comment #7
bdragon commentedUh, no, all 3 branches were fixed simultaneously, it's a post rc2 change. Actually, it's a post 1.0 change too.
Comment #8
bdragon commentedErr, I meant 3.0 of course.
Duplicates marked.
#362623: Multiple uses of object as array when combined with diff.module
Comment #9
bdragon commentedDuplicate #381384: error with location module and diff marked.
Comment #10
richard.e.morton commentedso this is fixed in 3.x, when will this be released?
can/should the dev be used on a beta site?
thanks
Comment #12
Rainy Day commentedProblem persists in 6.x-3.0, but appears to be fixed in 6.x-3.1-rc1.
Comment #13
richard.e.morton commentedexcellent, RC1 works fine now with diff. thanks very much on your work with this.
subsequent to swapping the location module versions but prior to updating db the following error does show when completing a difference on revisions (although the rest of the output seems to be correct):
warning: Missing argument 3 for location_diff() in /var/www/vhosts/nafof.org.uk/httpdocs/sites/all/modules/location/location.module on line 1345.
Thanks again
Richard
WebMaster of NaFoF - Multi Activity and Social clubs in the UK
Comment #14
Marko B commentedI am getting similar error with latest dev
Fatal error: Cannot use object of type stdClass as array in C:\wamp\www\travel\sites\all\modules\location\location.module on line 1436
array(4) { ["type"]=> int(1) ["message"]=> string(43) "Cannot use object of type stdClass as array" ["file"]=> string(61) "C:\wamp\www\travel\sites\all\modules\location\location.module" ["line"]=> int(1436) } n/a
Comment #15
yesct commenteddeepM, Please confirm the date of the recent dev version you are using, and provide a step by step, starting with a blank test site, with how to reproduce this bug. That will really help others be able to test this out and help find a solution. Thanks.
Comment #16
legolasboClosing old D6 issues as D6 is end of life