Closed (fixed)
Project:
Event
Version:
5.x-2.x-dev
Component:
API
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2005 at 20:59 UTC
Updated:
16 Nov 2005 at 00:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
gtcaz commentedThis appears to be a PHP5 issue.
Here are the details for my PHP version:
PHP Version 5.0.4
Zend Engine v2.0.4-dev
Comment #2
robertgarrigos commentedI'm using exactly the same php and zend engine version on a Mac, cvs-head from 20th/oct., same line in includes/form.inc but I don't have any problems getting any admin page. Could this be a php.ini issue?
Comment #3
gtcaz commentedDo you have events installed? If not, would you be willing to install it, enable it, and see if you can navigate to the administer/settings/events page?
Comment #4
robertgarrigos commentedyou are right. Cannot access admin/settings/event page. This is the error message:
Event 4.6.0 does the same. Looking at it.
Comment #5
robertgarrigos commentedThis is not a php problem. This is a problem related to the new forms API included with HEAD (next 4.7). Just look at the, for instance, aggregator.module (cvs), within the aggregator_settings function, to see how a form radios element would need to be declared in 4.7
Where event.module uses the old method:
Just a couple of days, in Amsterdam, at the DrupalCon, core developers where talking about the need to update 4.6.x, and less, modules to work with 4.7 because of this new forms API. I guess discussions will continue during the week until the end of the DrupalCon. This is not yet documented at the drupaldocs.org.
Comment #6
drewish commentedIt looks like it was a bug in the form definition. There were two things that looked wanky.
First, $form['event_timezone_input']['tz_display'] was being assigned using
.=rather than=.The other seemed more like a typo. One of the options for
$form['event_timezone_display']['tz_settings']was'user" disabled' => t('Use the time zone of the user editing or creating the event'),which I assume should have been'user' => t('Use the time zone of the user editing or creating the event'),.In the patch, I reformated the form definition to make it more readable (as per the recent thread on drupal-devel).
Comment #7
killes@www.drop.org commentedchanging the formatting was a bad idea as it complicated the readability of the patch. I also do not really like that formatting and it has not been agreed upon.
Can you please provide a patch without reformatting?
Comment #8
killes@www.drop.org commentedI tried to apply it manually.
Comment #9
Thomas Sewell commentedSimilar error, different line number, listed in http://drupal.org/node/35998.
Comment #10
drewish commentedThomas, the relation is that modules haven't been fully updated for the new Forms API. The form setup happens in the module and then form.inc tries to parse it and finds that it isn't correct.
Comment #11
drewish commentedkilles, I'll acknowledge that changing the formatting in the patch wasn't a good idea. Perhaps I'd misunderstood what I thought to be the conclusion to that thread. That said I disagree, the multi-line format is far more readable. I think the other advantage is that patches to that format are also more readable.
Comment #12
(not verified) commented