Closed GoogleCodeExporter closed 8 years ago
Are you opening the field definition? Or just a post that is using this field?
Could you please attach your .cctm.json exported definitions file (under the
CCTM --> Tools menu). Thanks.
Original comment by ever...@fireproofsocks.com
on 10 Jan 2012 at 11:26
Yes the error occurs when trying to open the field definition to edit the
button label. The spcific feild is Ride Feature Image (rideimg). Definitions
file attached.
Original comment by pswsa...@gmail.com
on 11 Jan 2012 at 4:20
Attachments:
I tested this on the oldest version of PHP I have: 5.2.13 and I can't reproduce
this.
There's not much going on line 1666 -- it's inside the parse function, which
gets used a lot (not just for field definitions). Specifically this:
$hash['help'] = '<ul>';
foreach ($all_placeholders as $p) {
$hash['help'] .= "<li>[+$p+]</li>";
}
$hash['help'] .= '</ul>';
You can safely comment out that entire block: it's only to aid you if/when you
customize the manager HTML
(http://code.google.com/p/wordpress-custom-content-type-manager/wiki/Customizing
ManagerHTML)
My hunch is that it's a Windows error. If you could set me up with an FTP
login, I could verify that suspicion. It could also be something with PHP
5.2.6 (or a combination thereof).
Original comment by ever...@fireproofsocks.com
on 11 Jan 2012 at 5:08
what email can I send the login credentials to?
Original comment by pswsa...@gmail.com
on 11 Jan 2012 at 8:22
http://fireproofsocks.com/contact/
Original comment by ever...@fireproofsocks.com
on 11 Jan 2012 at 8:27
Interesting. The $hash parameter is coming into the function not as an
associative array, but as an IMAGE.
Man, this server is slooooooow. Hard to track this down when page loads take
so long.
But I HAVE identified the problem: the image, relation, and media fields are
incorrectly handling the returned value from the CCTM::get_thumbnail()
function. To reproduce this issue, you must set a default value for one of
those fields.
To fix this, ~line 234, the code has been updated to this:
$hash = $Q->get_post($def['default_value']);
$hash['thumbnail_url'] = CCTM::get_thumbnail($def['default_value']);
This will be included in the next patch. For now, you can update to the dev
version.
Committed revision 488525.
Original comment by ever...@fireproofsocks.com
on 12 Jan 2012 at 3:56
Original issue reported on code.google.com by
pswsa...@gmail.com
on 10 Jan 2012 at 11:23