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: Form action path error

Status Resolved
Add-on / Version Publisher 1.6.1
Severity
EE Version 2.9.2

Mephics (T) Ltd

Apr 29, 2015

Description: I have search forms one of them is

<form class=“form” method=“post” acti>
Some select, inputs here
</form>

When Rendering to EE i get:
<form class=“form” method=“post” acti data-publisher-updated=“true”>
Some select, inputs here
</form>

Detailed steps to reproduce the issue:
1.
<form class=“form” method=“post” acti data-publisher-updated=“true”>
Some select, inputs here
</form>

2. Also when the form produce error it takes me to “The page you requested was not found. history.go(-1);”]« Back ” with the link http://removed? it does not take me back to the previous link any solution for this?
3.

#1

BoldMinded (Brian)

Comment has been marked private.

#2

BoldMinded (Brian)

Please attach the entire EE template this form tag is in.

#3

BoldMinded (Brian)

Depending on what you are doing with the form, you can add data=”data-publisher-ignored” to the form tag and it will not try to parse it. If you need the form to post to a translated URL, then you can’t do this, it will need to be parsed.

#4

BoldMinded (Brian)

For reference, check out the very bottom of this page. https://boldminded.com/add-ons/publisher/template-tags

#5

Mephics (T) Ltd

Comment has been marked private.

#6

BoldMinded (Brian)

Don’t see a file attachment.

#7

Mephics (T) Ltd

Comment has been marked private.

#8

BoldMinded (Brian)

I took your template and put it in my local dev site, and the <form> tag parsed fine. It kept the action attribute intact and translated the URL.

Did you try adding data=“data-publisher-ignored” if you don’t need the action URL translated? Since you are hard coding the form open tag, you can probably get away with using this attribute b/c the form parsing is really meant to for Channel:form tags.

#9

Mephics (T) Ltd

Comment has been marked private.

#10

Brian Litzinger

Disable all other add-ons and see if it still happens. Its very weird that it is cutting it off at “acti”. Adding that ignored attribute means Publisher does not actually try to modify anything in that tag.

Also try hard coding the URL into action as opposed to using the path variable. Just set it to action=”foo/bar” and see what happens.

#11

BoldMinded (Brian)

Comment has been marked private.

#12

Mephics (T) Ltd

installing version 1.6.3 now Works with search forms ! but i am getting error on the pages

A PHP Error was encountered

Severity: Warning

Message: DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line: 11

Filename: Service/Parser.php

Line Number: 305
#13

BoldMinded (Brian)

One more try. This build fixed the same issue for someone else. https://www.dropbox.com/s/8rx7irzo4d6io5c/publisher-163-702fa625.zip?dl=0

#14

BoldMinded (Brian)

Fixed and will be in the 1.6.4 release.

#15

Mephics (T) Ltd

Hi it seem the build you gave me is now preventing simple search form, not giving search results … now getting …”your search did not return any results’.

#16

BoldMinded (Brian)

Please provide more info. What does the full form template code look like before page render? What does the rendered html look like? Are you searching the default language or secondary language? Did you inspect your POST parameters to make sure they look correct? What are those POST parameters?

#17

Mephics (T) Ltd

My Search Code is:

{exp:search:simple_form search_in="everywhere" form_class="formsearch" form_id="formsearch" limit="20" paginate="bottom"}
<span> <input name="keywords" class="editbox_search" id="editbox_search" placeholder="{phrase:search}" type="text"  /> </span>
     <input name="button_search" src="/images/site/search-icon.png" alt="" class="button_search" type="image" />
{/exp:search:simple_form}

Results Page: Search Results: Your search did not return any results. Return to Previous Page

#18

BoldMinded (Brian)

What is the HTML output that the form renders?

#19

Mephics (T) Ltd

Out put page code:

<div id="my_list">
            <ol>
   {exp:search:search_results}{exp:search_marker}
  <li><a href="http://{if"><strong>{title}</strong></a><br> {excerpt}</li>
        {/exp:search_marker}{/exp:search:search_results}
  {if paginate}<div class='navigasion cl'> <span class='pagecount'>{page_count}</span>  {paginate} </div>{/if}
           </ol>
        </div>
#20

BoldMinded (Brian)

I mean the form search tag HTML, not the results page. Before you hit the submit button to search, what does the HTML look like?

#21

Mephics (T) Ltd

Comment has been marked private.

#22

BoldMinded (Brian)

Can you take a video replicating the issue? My local tests indicate that the native search form works fine.

#23

BoldMinded (Brian)

Haven’t heard back in over a month. Closing this ticket. If its still an issue please create a new ticket and reference this one. Also include the video of the issue happening.

Login to reply