Please note that Form2Content is no longer being developed. All files from the latest version can be found on Github.

Form2Content Forum

Questions and answers for Form2Content, a Joomla CCK.
  1. Aaron
  2. F2C Front-end / menu settings
  3. Wednesday, 15 March 2017
  4.  Subscribe via email
Running: F2C Pro 6.15.0 for Joomla 3.x
On Joomla 3.6.5

I've tried searching but can't seem to find a good answer to this problem. My form is set up, the back end works fine. Publishing works fine. Just can't save new from the front end submission form. The save, save & close, and the cancel buttons just do nothing.

Permissions are set for public/guests to 'allowed' for: Create, Edit Own, Edit State, Edit State Own.

I am getting errors only on F2C pages:

ReferenceError: Joomla is not defined
/index.php?option=com_form2content&view=form&layout=edit&Itemid=854&lang=en:132

ReferenceError: Joomla is not defined
/index.php?option=com_form2content&view=form&layout=edit&Itemid=854&lang=en:369

ReferenceError: Tips is not defined
/index.php?option=com_form2content&view=form&layout=edit&Itemid=854&lang=en:127



Line 132 is:
(function() {
Joomla.JText.load({"JLIB_FORM_FIELD_INVALID":"Invalid field:&#160"});
})();

Line 369 is:
Joomla.submitbutton = function(task)

Line 127 (which may not have to do with this component) is:
var JTooltips = new Tips($('.hasTip').get(), {"maxTitleChars": 50,"fixed": false});


Any ideas what I should be looking for???

Thanks!
Responses (10)
Accepted Answer Pending Moderation
Update:
When i run Chome's Console, and i click the Save button, or any button, i get this error:

Uncaught ReferenceError: Joomla is not defined
at HTMLButtonElement.onclick (index.php?option=com_form2content&view=form&layout=edit&Itemid=854&lang=en:395)


I have also now installed Jquery Easy as suggested in the documentation and nothing changed.

-Aaron
  1. more than a month ago
  2. F2C Front-end / menu settings
  3. # 1
Accepted Answer Pending Moderation
Hi Aaron,

Sorry for the inconvenience and thanks for the detailed info. Couple of questions to narrow down the issue:

- Are you using submission form template override (setting at the bottom of the content type configuration)? If yes please switch off while testing.
- Have you got fields set to "required". If so can you test without and than if it works switch on one after the other so we can narrow down?
- Do you have a online link to your website/form?

I will also talk to our programmer of course but his wife just had surgery so his response might be a bit later.

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. F2C Front-end / menu settings
  3. # 2
Accepted Answer Pending Moderation
Hi Patrick

Thanks for the reply

1. Template is off.
2. No required fields
3. Site is in link below.

And I'm seeing this error at the bottom of the page too:

An internal error occurred: 54ADC3AC411F0.A6B338A.640E4DFB

I'm still also seeing these two errors:

ReferenceError: Joomla is not defined
/index.php?option=com_form2content&view=form&layout=edit&Itemid=854&lang=en:131

ReferenceError: Joomla is not defined
/index.php?option=com_form2content&view=form&layout=edit&Itemid=854&lang=en:370
References
  1. http://liveinlambton.ca/index.php?option=com_form2content&view=form&layout=edit&Itemid=854&lang=en
  1. more than a month ago
  2. F2C Front-end / menu settings
  3. # 3
Accepted Answer Pending Moderation
Hi Aaron,

As I posted in the other reply I would suggest you switch OFF the re-captcha. That might solve it since it seems that the script reference has changed.

I also see that you load 30 scripts!! That is a LOT. It's well worth it to see what you don't need.

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. F2C Front-end / menu settings
  3. # 4
Accepted Answer Pending Moderation
Hi Patrick

Ok, re-captcha is off, but its still not working.

And yes, a lot of scripts. Unfortunately from what I see, most are necessary for one part of the site or another.

And the problem is this is a live site, so we can't test too many plugins by turning them off.

In your experience, is something like this normally a plugin/component conflict, or can we see if its something else?

-Aaron
  1. more than a month ago
  2. F2C Front-end / menu settings
  3. # 5
Accepted Answer Pending Moderation
Hi Aaron,

My experience it's a conflict. If this was a common issue many users would run into it.

At the moment our programmer has very little time because of personal circumstances but maybe I can see if something isn't set correct in the back-end. Can you send me an admin account to support at opensourcedesign dot nl?

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. F2C Front-end / menu settings
  3. # 6
Accepted Answer Pending Moderation
Hi Aaron,

I think the error and resulting conflict comes from the template not loading the /media/system/js/core.js.

It's a native Joomla script that gives the error:
< script type ="text/javascript" >
(function() {
Joomla.JText.load({"JLIB_FORM_FIELD_INVALID":"Invalid field: "});
})();
< /script >

Please google the error with reference to JText.load and you will find more info like this page: https://github.com/joomla/joomla-cms/issues/4839

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. F2C Front-end / menu settings
  3. # 7
Accepted Answer Pending Moderation
Hi Patrick

Yes forcing those files to load got the buttons to do something!

But now its just going to an error page saying:

"1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE item_id = 286' at line 1 SQL=UPDATE #__mycontent_versions SET state = WHERE item_id = 286"

We use a component called My Content and Workflow to help authors and editors of other content, so I'm assuming that this component doesn't play well with yours and wants content submitted/saved differently.

I'm contacting the other developer to see if they have a work around, but just wanted to know if you've seen this issue before while saving on the front end.

Back end saving still works fine.

Thanks

Aaron
  1. more than a month ago
  2. F2C Front-end / menu settings
  3. # 8
Accepted Answer Pending Moderation
Haven't had this issue yet. We try to do everything the Joomla way. It's possible that "on submit" triggers some of their processes if they haven't limited it to com_content.

Good luck, hope they can help you solve it further.

Regards,
Patrick
Please read the F2C documentation before asking questions! Thank you if you've done so ;)
  1. more than a month ago
  2. F2C Front-end / menu settings
  3. # 9
Accepted Answer Pending Moderation
Thanks Patrick

I'll post here if we find a solution.

Aaron
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.