Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Errors With Forms (Low Search and Freeform Pro)

Status Resolved
Add-on / Version Publisher 1.6.7
Severity
EE Version 2.10.1

Gary McCarthy-James

Nov 22, 2015

 

When using Solspace Freeform Pro 4.2.4 the English version of the form submits fine. English is the default language of the site.

http://testing-server.com/contact-us

But when the site is in Chinese the Freeform submission returns this error:

http://testing-server.com/cn/contact-us posts to <a href="http://testing-server.com/cn/contact-us?ACT=79">http://testing-server.com/cn/contact-us?ACT=79</a> and show this error:

Missing required valid POST variable - params_id

Are you able to provide any advice on how I can enable forms to work while in the translated version of the site?

Thanks.

 

 

 

 

 

#1

Gary McCarthy-James

It appears I am having issues with all forms on the site when in Chinese. Low Search is also having errors. I just went and bought your paid add-on for Low Search thinking that was the issue but it made no difference.

When in English Low Search wants to post to http://testing-server.com/ and it all works fine. But when in Chinese Low Search wants to post to http://testing-server.com/cn/ and a search returns to the home page. If I change the search post URL via dev tools when in Chinese to be http://testing-server.com/ then Low Search works in Chinese “mode”.

I hope this additional information is helpful in trying to track the issue I’m experiencing.

#2

BoldMinded (Brian)

Can you please share a screenshot of your Publisher settings page? Also, is there a URL in which I can actually see this occurring?

#3

BoldMinded (Brian)

Is the form on the home page of the site? And do you have the hide language code on homepage setting turned off? If so that may explain things. It may be trying to redirect mid-form submission, which explains why the POST data is gone. Try making sure the page that contains the form also has the language segment in the url, e.g. testing-server.com/cn.

#4

Gary McCarthy-James

Comment has been marked private.

#5

BoldMinded (Brian)

What is the URL containing the form? Steps to recreate please.

#6

BoldMinded (Brian)

The screenshot is too small to read. Try using the Support form in the Publisher menu, it’ll email me your setting values.

#7

Gary McCarthy-James

Comment has been marked private.

#8

Gary McCarthy-James

Comment has been marked private.

#9

BoldMinded (Brian)

Try turning off the hide prefix on default language setting. See if the forms submit then.

#10

BoldMinded (Brian)

Also scroll to the bottom of the docs https://boldminded.com/add-ons/publisher/template-tags

Try adding data-publisher-ignored=”yes” to the form tag (leave the hide prefix on default language to your original setting of on)

#11

Gary McCarthy-James

I have added data-publisher-ignored=“yes” to both the contact and search forms and the errors persist.

#12

BoldMinded (Brian)

Did you try it by turning on the language prefix for the default language?

#13

Gary McCarthy-James

Comment has been marked private.

#14

BoldMinded (Brian)

Have you been able to replicate this with only Publisher and Freeform installed?

Try removing the language prefix all together and see if it submits then. Also, do you have a dev environment? Is this a production site?

#15

BoldMinded (Brian)

If you can provide a public development environment replicating this issue with only Publisher and Freeform installed and provide FTP access I can take a look at it.

#16

BoldMinded (Brian)

I setup a basic Freeform in my local environment and its submitting data just fine. I’m not getting the same POST error. Its not redirecting to the return page correctly, which I’m looking into, but its at least submitting the form. You’ll need to replicate this in a clean environment as mentioned above with only Publisher and Freeform installed, or start uninstalling add-ons until the POST error goes away. It sounds like something is conflicting, which you’ll need to resolve (by identifying which add-on is conflicting) first before I can try to fix it.

#17

BoldMinded (Brian)

As for the return parameter it looks like Freeform is doing it in a way in which Publisher can’t automatically add the language prefix, so you’ll have to add that manually. I’ll update my docs with this info too. After making this update, the form submits fine in my local environment.

return="{publisher:current_language_code}/layouts/index"
#18

Gary McCarthy-James

I’ll take a look at this on the Freeform form shortly. What do I do about the Low Search redirecting to the homepage when in Chinese?

Thanks.

#19

BoldMinded (Brian)

Same thing, replicate it in an environment with only Publisher and Low Search installed. It seems like something is messing up redirects because I know the Low Search thing should be working. Take a look at other add-ons, .htaccess file etc. Anything that can modify a redirect.

#20

Gary McCarthy-James

Comment has been marked private.

#21

BoldMinded (Brian)

Adding data-publisher-ignored=“yes” to the form tag is supposed to stop the prefix from getting added to the action.

#22

Gary McCarthy-James

I’m using that. This is the start of my contact form:

{exp:freeform:form form_name=”contact” return=”{current_url}/success” form:id=”enquiry-form” data-publisher-ignored=”yes” }

#23

BoldMinded (Brian)

But if you look at the html its not getting rendered into the form tag, so its not actually getting used. Not sure how Freeform handles adding additional parameters like that, but once you figure out the right way it should work.

Your form is rendering as

<form action="http://ew.testing-server.com/cn/contact-us?ACT=79" accept-charset="utf-8" id="enquiry-form" method="post" data-publisher-updated="true" novalidate="novalidate">
#24

Gary McCarthy-James

Comment has been marked private.

#25

BoldMinded (Brian)

I’m not saying you’re on your own, but this isn’t something I can replicate locally, so when that happens, as mentioned in the terms before posting a ticket, you need to setup the clean environment to replicate the issue. If you can pinpoint another addon that is conflicting or can replicate the issue in the clean environment then I’m more than happy to look into this more if you can provide FTP access to that clean environment.

#26

BoldMinded (Brian)

Basically my support does not include debugging live environments and digging through someone’s site with 30 addons and lord knows what other customizations to find a conflict.

#27

Gary McCarthy-James

Comment has been marked private.

#28

BoldMinded (Brian)

Let me know when you have a clean environment setup and I’ll take a look as soon as I can. Tonight and tomorrow night are most likely, after that due to the Thanksgiving holiday I won’t be near a computer much.

#29

BoldMinded (Brian)

Have not heard back in 2 months. Closing the ticket. If its still an issue please open a new ticket and link to this one. Thanks.

Login to reply