PDA

View Full Version : Object doesn't support this property or method


flic
07-15-2007, 08:32 PM
I have installed Fabrik 1.0.4b into Joomla 1.0.1.2 on an Apache/2.0.52(CentOS) web server running MySQL 4.1.2.0 and PHP 5.0.4. After the installation, I created a link on the main menu to the example contact form that comes with Fabrik and named it 'Test Contact'. When I click on the link, however, my browser (IE 7) displays a notification of a script error. The pop-up reads in part...

Problems with this web page might prevent it from being displayed properly or functioning properly.

Line: 1861
Char: 7
Error: Object doesn't support this property or method

You can see this for yourself at http://hostrock.com/

Click on 'Test Contact' in the 'Main Menu'.

I'm hoping you can help me get rid of this annoying notification.

andrelewis
07-15-2007, 09:35 PM
I saw some comments that they had fixed quite a few Javascript problems on later subversion revisions, however the latest build is broken.

I believe they are working on stabilizing the last revision, and it should include fixes for script bugs like the one you posted.

Andre

flic
07-15-2007, 10:18 PM
Just for fun I also installed version 2.0a and the bug is in it, too. Thanks for letting me know Andre!

flic
07-16-2007, 08:48 PM
Okay, I think I've tried out all the latest revisions located at http://joomlacode.org/svn/fabrik but this bug still persists. Is there anything else I need to do or will this post be enough to get this issue resolved in a timely manner??

rob
07-18-2007, 11:55 AM
hi

Will look now and get back to you with a response

Cheers
Rob

rob
07-18-2007, 03:20 PM
Hi

Its due to a conflict in Javascript libraries between mootools, which I guess one of the other components or modules is using) and prototype (which is the javascript library that fabrik uses )
For 2.0 we are swapping over to mootools and for the stable release of 1.0.4 we have decided to do the same.

I've just updated the SVN with a first stab at removing the prototype javascript, which might solve the issue you are having.
Also of note is that this version of the SVN has removed patTemplate from the code, and is using a php templating solution (similar to that which we will see in Joomla 1.5).
So each form template is stored in its own folder in :

/components/com_fabrik/views/form/tmpl/

and each table template is stored in its own folder in

/components/com_fabrik/views/table/tmpl/

Let me know if you get any errors and I will fix them asap

Cheers
Rob

flic
07-18-2007, 09:19 PM
Okay, that resolved the script bug issue, but now the validation has, in part, quit working.

For instance, if you fail to enter your first name the error message shoud read "Please enter your first name", however this messge does not display.

The general warning text message displays, but not the individual element error message.

rob
07-19-2007, 09:49 AM
this should also be fixed in the SVN as version 72

Cheers
Rob

flic
07-19-2007, 07:32 PM
Thank you!! And the form seems to load faster, too :)

flic
07-19-2007, 08:02 PM
I'm sorry. I thought everything was resolved, but, upon closer inspection, I'm afraid I've found another script bug.

Line: 331
Char: 3
Error: 'fbField' is undefined

Please advise.

andrelewis
07-20-2007, 12:53 AM
Rob's up to rev 78, what version are you working with now?

flic
07-20-2007, 01:14 AM
Well, I think I downloaded all the revisions since yesterday. Do you know of an easier way than cherry picking the updated files?

andrelewis
07-20-2007, 02:20 AM
Well the other way is to use subversion directly, you would have to install it on your machine to make batch downloads easier.

http://fabrikar.com/index.php?option=com_openwiki&Itemid=11&id=wiki:get_subversion
(http://fabrikar.com/index.php?option=com_openwiki&Itemid=11&id=wiki:get_subversion)

In terms of applying a patch I am creating a simple bash script, which I'm going to post up on the wiki as well.

Andre

flic
07-20-2007, 02:49 AM
Okay, I installed a Subversion client and definitely checked-out all of Revision 78 and now the script bug is gone and the Contact Form seems to work flawlessly. Sorry for the false alarm and thanks again Rob and Andre for all your help!!

rob
07-20-2007, 08:59 AM
cool glad to hear its working for you !

Cheers
Rob