I get this error:
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /sitename/?q=batch&id=110&op=do StatusText: error ResponseText: Recoverable fatal error: Object of class stdClass could not be converted to string in _term_merge_insert_field_values() (line 469 of /var/www/sitename/sites/all/modules/term_merge/term_merge.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | merge-1279912-5.patch | 1.59 KB | jakonore |
Comments
Comment #1
createnouui commentedSubscribing:
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?render=overlay&id=193&op=do StatusText: Service unavailable (with message) ResponseText: Recoverable fatal error: Object of class stdClass could not be converted to string in _term_merge_insert_field_values() (line 469 of /home/sites/shared/sitename/live/site/modules/term_merge/term_merge.module).
Closing the overlay reveals a system message saying the terms are merged, but alas they have not been.
Comment #2
jakonore commentedsubscribe. I Have the exact same problem
Comment #3
dwkitchen commentedI get the same error
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=441&op=do StatusText: error ResponseText: Recoverable fatal error: Object of class stdClass could not be converted to string in _term_merge_insert_field_values() (line 469 of /home/betacssd/public_html/sites/all/modules/term_merge/term_merge.module).
I have moved this up to a major bug as the module is useless otherwise.
Comment #4
luketsimmonsHi guys,
I can provide a patch for this later, but essentially it's the fact that any references to $update_data_arr['dest_tid'] are wrong, as it's an object not a string.
So on lines, 449, 460, 469 -
$update_data_arr['dest_tid']Should be -
$update_data_arr['dest_tid']->tidThe error only occurs initially because the object is trying to be used as a string in the output (as it says in the error). If you just fix line 469, it will error again for the database update because on line 449 the TID is being set with the object and not the string of $update_data_arr['dest_tid']->tid.
With the three simple fixes this got the module working again for us. As I said when I get time I can post a patch.
Thanks,
luke
Comment #5
jakonore commentedThanks luke for finding the problem.
I created a patch with your changes. It works fine for me now.
Comment #6
dusov commentedIts better to change one line in function term_merge
Line 348
'dest_tid' => $destto
'dest_tid' => $dest -> tid,Comment #7
Qylie commentedThanks fixed!
Comment #8
hekele commentedthanks for the patch!
Comment #9
brycesenz commentedThis fixed my issue. Marking as "reviewed and tested", as it has proven to work for several of us.
Comment #10
azinck commentedConfirmed: patch fixes it for me.
Comment #11
nylin commentedPatch committed in the last dev version and upcoming beta-2, thank you very much and sorry for my inactivity!
Comment #12
nylin commented