custom frontend item form broken after fc-update

More
7 years 2 months ago - 7 years 2 months ago #65723 by kath
hi there,

ok, this one is urgent i'm afraid (because it's live):

My customized frontend-item-form is broken since I updated Flexicontent from v3.1.0-rc2 to 3.1.1.

pressing the submit-button does not submit but produces "TypeError: a is null"

I get these error details:
TypeError: a is null[Weitere Informationen] core.js:1:1990
a.removeMessages [...]/media/system/js/core.js:1:1990
a.renderMessages [...]/media/system/js/core.js:1:1266
JFormValidator/isValid [...]/components/com_flexicontent/assets/js/validate.js:640:4
Joomla.submitform [...]/components/com_flexicontent/assets/js/admin.js:267:17
a.submitbutton [...]/media/system/js/core.js:1:415
flexi_submit [...]/components/com_flexicontent/assets/js/validate.js:808:2
<anonym> [...]/my-upload-page:1957:5
n.event.dispatch [...]/media/jui/js/jquery.min.js:3:12392
n.event.add/r.handle [...]/media/jui/js/jquery.min.js:3:9156

(i got into this situation because: the fc universal module didn't show well in BE (question was answered here: www.flexicontent.org/forum/21-troublesho...-backend-broken.html ))

Where do I have to edit my form.php? (the standard fc- form.php has some 1700 lines)

Thanks a lot!
Last edit: 7 years 2 months ago by micker.

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

More
7 years 2 months ago #65737 by ggppdk
Hello

that is a JS error when clicking submit

there is probably a JS error when the form loads
that is there JS error that is need

open browser tools , and go to JS console, and refresh the page
do you get a JS error on form load ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
7 years 2 months ago - 7 years 2 months ago #65742 by kath
no, I don't get Errors on load, but I do get an error on submit:
TypeError: a is null

[detail]
And that is because I have a form.php in /templates/{my_template}/html/com_flexicontent/item/
And there I found:

< script >
jQuery(function(){

// override save
jQuery('#flexi_form_submit_btns').find('.btn-success')
.attr('onclick', null)
.on('click', function(){
var b = jQuery('#adminForm').valid();
if(b==true)
{
flexi_submit('save', 'flexi_form_submit_btns', 'flexi_form_submit_msg');
}
})
;
// override save END

[...]
Last edit: 7 years 2 months ago by kath.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.273 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline