Closed (fixed)
Project:
Classified Ads
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Reporter:
Created:
15 Mar 2009 at 20:04 UTC
Updated:
10 Jul 2009 at 02:30 UTC
You can view the error a user got at: http://i11.photobucket.com/albums/a184/McQ14/Picture1-3.png
ed_classified_utils.inc line 406
Site: nikonclassifieds.com
Comments
Comment #1
milesgillham commentedAh, I'm not surprised. There is a type clash. In lines 405-406 of ed_classified_utils.inc:
This is invoked by _ed_classified_get_longest_duration($terms) which thinks it is getting an array of term ids:
The problem is that $tid is assumed to be an int, but it's actually an object if we look further back through function _ed_classified_get_longest_duration($terms) to the original caller in ed_classified.module:
I'm not sure that this could ever work, $terms is an object (ie StdClass), not a list of term ids. What is going to be needed to make this work is modification to the function _ed_classified_form_submit($form, &$form_state) in ed_classified.module as follows by converting a term object into an array of term ids:
Unless anyone else has a better idea I'll do some testing and see if that works.
Cheers,
Miles
Comment #2
milesgillham commentedChange applied to 6.x development branch for further testing.