Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • doob
  • doob's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 22
  • Thank you received: 2
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

Please Log in or Create an account to join the conversation.

Last edit: by admin.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

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

  • doob
  • doob's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 22
  • Thank you received: 2

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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.077 seconds
  I still don't believe he can really be human to do all this ! From all of the forums that I've ever participated in this is certainly the one that most encapsulates the feeling of being truly open source where everyone's opinions and contributions can and will shape the development of the service! It's truly awesome! Hope you enjoy cooking and look forward to reading and contributing to any of the editorial work that you proposed too!! Thanks
Gez (audibleid - JED)

Get Started