Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Date problem in form (Edited by admin)

[SOLVED] Date problem in form (Edited by admin) 28 Sep 2011 09:00 #31

  • doob
  • doob's Avatar
  • Offline
  • Junior Member
  • Posts: 22
  • Thank you received: 2
  • Karma: 5
Hi,

J!1.7 ... own jQuery menu, sobipro nothing else ...

After installation of generated component, contained date type field in administration Item form I doesn't have date input, instead of that I have

Date : 'date', 'dataObject' => $this->event, 'dateFormat' => "%Y-%m-%d", 'required' => true, 'validatorHandler' => "datetime", )); ?>

When I submit that form I receive normal JS error form validation and ...

Warning: get_class() expects parameter 1 to be object, array given in /home/radwlan/public_html/prod-oil/administrator/components/com_genericcalendar/models/event.php on line 201


I turned on E_ALL and I received that :

Here is only few random notices, there is much more ....

Notice: Undefined property: JDomHtml::$options in /home/radwlan/public_html/prod-oil/administrator/components/com_genericcalendar/dom/dom.php on line 304

Notice: Undefined property: JDomHtml::$options in /home/radwlan/public_html/prod-oil/administrator/components/com_genericcalendar/dom/dom.php on line 316

Notice: Undefined index: options in /home/radwlan/public_html/prod-oil/administrator/components/com_genericcalendar/dom/dom.php on line 316

Notice: Undefined index: styles in /home/radwlan/public_html/prod-oil/administrator/components/com_genericcalendar/dom/dom.php on line 304
Last Edit: 02 Oct 2011 14:51 by admin.
The administrator has disabled public write access.

Re: [ hello | problem | component after instalation ] 30 Sep 2011 08:05 #43

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
I tried to download and test your component, it seems to work.

Try it on a fresh install of 1.7 and please give a review.


The JDom notices will be cleaned in next version.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: [ hello | problem | component after instalation ] 02 Oct 2011 11:16 #75

  • doob
  • doob's Avatar
  • Offline
  • Junior Member
  • Posts: 22
  • Thank you received: 2
  • Karma: 5
griiettner wrote:
Ok.. I found the Issue and it is a bugg on the system
<?
echo JDom::_('html.form.input.calendar', array(
									'dataKey' => 'date_from',
									'dataObject' => $this->ticket,
									'dateFormat' => "%Y-%m-%d",
									'required' => true,
									));
?>

As you can see on the code above the PHP tag is open as short tag, and this can lead to miss interpratarion of some servers... so... I just added the <?php and worked perfect... so... this may a bugg when generating the component package.. I think it is a very easy thing to solve


Thanks to griiettner we know solution! j-cook :) Do not use SHORT_TAG :) :P
The administrator has disabled public write access.
Time to create page: 0.078 seconds

Get Started