Hi all!
since I upgraded my clientside_validation from 1.38 to 1.39 I have the error on saving media, more precisely, images.
The error is the following:
An AJAX HTTP request terminated abnormally.
Bebugging information follows.
Path: /site/media/file_id/edit/ajax?manualcrop[entity_type]=node&manualcrop[bundle]=page&manualcrop[field_name]=field_images
Status: n/a
Respose Text: Fatal error: Cannot use object of type stdClass as array in ..../modules/contrib/clienside_validation/clientside_validation.module on line 39
ReadyState: undefined
There is already an issue about /clientside_validation.module on line 39
here https://www.drupal.org/node/2289453 and the solution that works but solves another problem.
I have a suspicion that in my case there is a conflict between ajax calls of different modules, ex. clientside_validation (7.x-1.39), media(7.x-2.0-unstable7), manualcrop(7.x-1.4+81-dev) or file_entity(7.x-2.0-unstable7).
as well I tried to exclude some of the paths like
media/*/edit/*
media/browser/*
file/*/edit
in clientside_validation general settings, still get the same error.
Updating the modules did not solve anything either.
Any help is appreciated.
If it is more of a manualcrop or media or file_entity issue, I will gladly move my question there.
Comment | File | Size | Author |
---|---|---|---|
#6 | clientside_validation-stdClass_error-2309111-6.patch | 724 bytes | aschiwi |
#2 | clientside_validation-stdClass_error-2309111-2_0.patch | 723 bytes | dunecat |
Comments
Comment #1
dunecat CreditAttribution: dunecat commentedComment #2
dunecat CreditAttribution: dunecat commentedhere is a patch that solved my issue.
Comment #3
tondeuse CreditAttribution: tondeuse commentedThis patch fails for me in version = "7.x-1.39" datestamp = "1391025808"
I had to tweak the same function, slightly differently, inside the loop. Seems to do the job, other side effects unknown.
Comment #4
jenlamptonThe patch in #2 solves the problem for me, thank you.
Comment #5
fjgarlin CreditAttribution: fjgarlin as a volunteer and at Amazee Labs commentedI'm using 7.45 version of the module and confirm that applying this patch solved the issue too. It applies to 7.x-1.x too so no need to re-roll.
Marking RTBC.
Comment #6
aschiwi CreditAttribution: aschiwi at undpaul commentedIt worked for me too, but the patch doesn't apply to 1.46 anymore. Here's a new patch.