[ALL form fields must be inside FORM TAG] adminFormPrepare IE 11 & Microsoft Edge trouble

More
7 years 9 months ago - 7 years 9 months ago #66412 by raksha
I have two select box in category list, one for ordering and another for limit items display on page. When I try to change sort order or limit value on Chrome, Mozilla, Android everything works fine, but in IE 11 and Microsoft Edge not working. I had used IE debugger and I saw following error: "Unable to get property 'match' of undefined or null reference" -> tmpl-common.js (57,3). Error appear in function adminFormPrepare in line var var_sep = fcform_action.match(/\?/) ? '&' : '?';

www.rezervaunloc.ro/restaurante

Can anyone help me please?
Thank you!
Last edit: 7 years 9 months ago by raksha.

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

More
7 years 9 months ago #66424 by ggppdk
Test this fix (and post back here):

Edit the file:
components/com_flexicontent/assets/js/tmpl-common.js

Find line:
Code:
if ( typeof fcform_action === "undefined" || fcform_action === null ) {

Replace with:
Code:
if ( typeof fcform_action === "undefined" || fcform_action === null || !fcform_action) {

Then in IE11 / Edge, click CTRL-F5 to reload the page
and then try changing the fields that give the error


-- 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 9 months ago - 7 years 9 months ago #66426 by raksha
Nothing changed! :(
Attachments:
Last edit: 7 years 9 months ago by raksha.

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

More
7 years 9 months ago #66434 by ggppdk
Hello

Looking at HTML
I see why this is happening

Both:
Limit items "Per page" and Ordering
are not placed inside an HTML <form> Tag

did you override FLEXIcontent template files for FORM ?
If you did not then this can be a bug


-- 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 9 months ago #66435 by ggppdk
Hello

looking at this, the reason for the happening
is because you seem to have customized form files and moved the 2 select fields outside the <form> TAG

I see that the other form fields (field filters) are inside the form tag


-- 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...
The following user(s) said Thank You: raksha

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

More
7 years 9 months ago #66439 by raksha
You have right. I tried with blog template and everything works fine. :)


Thank you very much!

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.798 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