Active
Project:
Taxonomy Subterms
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jun 2014 at 14:49 UTC
Updated:
25 Feb 2015 at 17:12 UTC
Jump to comment: Most recent
When trying to delete a Taxonomy Term the following PHP error is thrown:
[Sun Jun 15 15:43:52 2014] [warn] [client *.*.*.*] mod_fcgid: stderr: PHP Fatal error: Cannot use object of type stdClass as array in <path>/sites/all/modules/taxonomy_subterms/taxonomy_subterms.module on line 123, referer: http://<domain>/taxonomy/term/3/edit?destination=admin%2Fstructure%2Ftaxonomy%2Finfomration_pages&render=overlay
Comments
Comment #1
aout commentedI experienced the same problem. I was able to fix the issue by changing line 123 of taxonomy_subterms.module from:
$term=$form['#term'];
to:
$term=get_object_vars($form['#term']);
I have not had an opportunity to do much testing/validation on this however. Any thoughts on this fix?
Comment #2
matolog commentedThanks, This fix resolves this problem