No form tag generated

Home Forums Store Locator Plus No form tag generated

This topic contains 7 replies, has 2 voices, and was last updated by  David 1 year, 8 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #28042

    David
    Participant

    I upgraded and changed themes and now the search form no longer works. Changing back to the old theme, and downgrading to an older version, doesn’t help. Looking at the generated code, there is no <form> tag generated, so I don’t see how it could possibly work. In the Pro Pack Locator Layout, there is code that says [slp_search] – I think that is what is generating the form fields, right? Shouldn’t it also be generating the <form> tag? Site is at http://boatcapecod.org/business-directory/

    Help!

    #28108

    Lance Cleveland
    Keymaster

    The slp_search shortcode in the view layout adds the form.

    It looks like you have possibly customized the layout via Pro Pack (User Experience / View / Locator Layout and added search form elements there.

    If you did not customize the search layout and/or Pro Pack please let me know what add-on packs and base plugin version you have installed (Info / Plugin Environment tab) and provide screen shots of the UX/View/Locator Layout entry and UX / Search / Search Layout entry.

    The added search fields should automatically be included within the form elements which are rendering but in a higher div on your layout.

    #28151

    David
    Participant

    Yes, I did customize the layout, but even if I revert back to the default layout, there is still no form tag generated. This is what the plugin environments tab shows:
    <p class=”envinfo” style=”font-size: 13px; line-height: 1.5; margin: 0px; padding: 0px; color: #666666; font-family: sans-serif; background-color: #f1f1f1;”><span class=”label” style=”display: inline-block; padding: 4px; text-align: right; width: 180px; margin-right: 6px; background-color: #f0f0e0;”>Store Locator Plus Version:</span>4.2.25</p>
    <p class=”envinfo” style=”font-size: 13px; line-height: 1.5; margin: 0px; padding: 0px; color: #666666; font-family: sans-serif; background-color: #f1f1f1;”><span class=”label” style=”display: inline-block; padding: 4px; text-align: right; width: 180px; margin-right: 6px; background-color: #f0f0e0;”>Enhanced Search:</span>4.2.05 , 4.2.08UPDATE HERE</p>
    <p class=”envinfo” style=”font-size: 13px; line-height: 1.5; margin: 0px; padding: 0px; color: #666666; font-family: sans-serif; background-color: #f1f1f1;”><span class=”label” style=”display: inline-block; padding: 4px; text-align: right; width: 180px; margin-right: 6px; background-color: #f0f0e0;”>Pro Pack:</span>4.2.03 , 4.2.04UPDATE HERE</p>
    <p class=”envinfo” style=”font-size: 13px; line-height: 1.5; margin: 0px; padding: 0px; color: #666666; font-family: sans-serif; background-color: #f1f1f1;”><span class=”label” style=”display: inline-block; padding: 4px; text-align: right; width: 180px; margin-right: 6px; background-color: #f0f0e0;”>User Managed Locations:</span>4.2.02 , 4.2.03UPDATE HERE</p>
     
    <p class=”envinfo” style=”font-size: 13px; line-height: 1.5; margin: 0px; padding: 0px; color: #666666; font-family: sans-serif; background-color: #f1f1f1;”><span class=”label” style=”display: inline-block; padding: 4px; text-align: right; width: 180px; margin-right: 6px; background-color: #f0f0e0;”>WordPress Version:</span>4.1.1</p>
    <p class=”envinfo” style=”font-size: 13px; line-height: 1.5; margin: 0px; padding: 0px; color: #666666; font-family: sans-serif; background-color: #f1f1f1;”><span class=”label” style=”display: inline-block; padding: 4px; text-align: right; width: 180px; margin-right: 6px; background-color: #f0f0e0;”>Site URL:</span>http://boatcapecod.org</p&gt;
     
    <p class=”envinfo” style=”font-size: 13px; line-height: 1.5; margin: 0px; padding: 0px; color: #666666; font-family: sans-serif; background-color: #f1f1f1;”><span class=”label” style=”display: inline-block; padding: 4px; text-align: right; width: 180px; margin-right: 6px; background-color: #f0f0e0;”>MySQL Version:</span>5.0.96</p>
     
    <p class=”envinfo” style=”font-size: 13px; line-height: 1.5; margin: 0px; padding: 0px; color: #666666; font-family: sans-serif; background-color: #f1f1f1;”><span class=”label” style=”display: inline-block; padding: 4px; text-align: right; width: 180px; margin-right: 6px; background-color: #f0f0e0;”>PHP Version:</span>5.2.17</p>
    <p class=”envinfo” style=”font-size: 13px; line-height: 1.5; margin: 0px; padding: 0px; color: #666666; font-family: sans-serif; background-color: #f1f1f1;”><span class=”label” style=”display: inline-block; padding: 4px; text-align: right; width: 180px; margin-right: 6px; background-color: #f0f0e0;”>PHP Limit:</span>256M</p>
    <p class=”envinfo” style=”font-size: 13px; line-height: 1.5; margin: 0px; padding: 0px; color: #666666; font-family: sans-serif; background-color: #f1f1f1;”><span class=”label” style=”display: inline-block; padding: 4px; text-align: right; width: 180px; margin-right: 6px; background-color: #f0f0e0;”>Wordpress Limit:</span>40M</p>
    <p class=”envinfo” style=”font-size: 13px; line-height: 1.5; margin: 0px; padding: 0px; color: #666666; font-family: sans-serif; background-color: #f1f1f1;”><span class=”label” style=”display: inline-block; padding: 4px; text-align: right; width: 180px; margin-right: 6px; background-color: #f0f0e0;”>PHP Peak RAM:</span>45 MB</p>
    <p class=”envinfo” style=”font-size: 13px; line-height: 1.5; margin: 0px; padding: 0px; color: #666666; font-family: sans-serif; background-color: #f1f1f1;”><span class=”label” style=”display: inline-block; padding: 4px; text-align: right; width: 180px; margin-right: 6px; background-color: #f0f0e0;”>PHP Modules:</span></p>

    <pre style=”color: #666666; font-size: 12px; line-height: 18.2000007629395px; background-color: #f1f1f1;”>Array
    (
    [5] => apc
    [6] => bcmath
    [7] => calendar
    [43] => cgi-fcgi
    [8] => ctype
    [9] => curl
    [0] => date
    [10] => dba
    [11] => dom
    [35] => exif
    [13] => filter
    [14] => ftp
    [15] => gd
    [16] => gettext
    [12] => hash
    [18] => iconv
    [19] => json
    [1] => libxml
    [20] => mbstring
    [21] => mcrypt
    [22] => mhash
    [23] => mysql
    [32] => mysqli
    [2] => openssl
    [3] => pcre
    [26] => PDO
    [27] => pdo_mysql
    [28] => pdo_sqlite
    [29] => pspell
    [30] => Reflection
    [17] => session
    [24] => SimpleXML
    [33] => soap
    [25] => SPL
    [34] => SQLite
    [31] => standard
    [36] => tokenizer
    [37] => wddx
    [38] => xml
    [39] => xmlreader
    [40] => xmlwriter
    [41] => xsl
    [42] => zip
    [4] => zlib
    )
    The Pro Pack Locator Layout is as follows:

    <div id="sl_div">
    
    <div id="sl_top">
    
    <div id="sl_top_left" class="sl_leftcol">
    
    <div id="search_box">
    
    <div id="search_box_header">Search by a business name or location:
    
    </div>
    
    <div id="search_box_form">[slp_search]
    
    </div>
    
    </div>
    
    <div id="sl_mid">
    
    <div id="sl_mid_left" class="sl_leftcol">
    
    </div>
    
    <div id="sl_mid_right" class="sl_rightcol">[tagalong legend]
    
    </div>
    
    </div>
    
    <div id="sl_bottom">
    
    <div id="results_box">
    
    <div id="results_box_header">Local Businesses
    
    </div>
    
    <div id="results_box_output">[slp_results]
    
    </div>
    
    </div>
    
    </div>
    
    </div>
    
    <div id="sl_top_right" class="sl_rightcol">[slp_map]
    
    </div>
    
    </div>
    
    </div>

    And the Search Layout Field is this:

    <div id="address_search">[slp_search_element input_with_label="name"][slp_search_element input_with_label="address"][slp_search_element dropdown_with_label="city"][slp_search_element dropdown_with_label="state"][slp_search_element dropdown_with_label="country"][slp_search_element selector_with_label="tag"][slp_search_element dropdown_with_label="category"]<div class="search_item">[slp_search_element dropdown_with_label="radius"][slp_search_element button="submit"]</div></div>
    #28153

    David
    Participant

    Sorry, that didn’t format quite the way I was expecting from the WYSIWYG editor. Attached is a screen shot of the upper half of the plugin environment screen

    Attachments:
    You must be logged in to view attached files.
    #28194

    David
    Participant

    Examining the generated html a bit closer, it appears that the form tag is being generated, but there is an extra closing </div> tag being produced, for no apparent reason, that is causing the problem. My Locator Layout has 14 opening <div> tags and 14 closing </div> tags. The Enhanced Search Search Layout has 2 opening <div> tags and 2 closing </div> tags.

    The code generated within the <form> tag contains three opening <div> tags but four closing </div> tags. This is causing the form to close before the input elements are rendered. So where is this extra closing </div> tag coming from? It occurs right at the beginning of the form tag:

    <span class=”html-tag” style=”font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;”><span style=”color: #881280;”><div </span><span class=”html-attribute-name”>id</span><span style=”color: #881280;”>=”</span><span class=”html-attribute-value”>search_box_form</span><span style=”color: #881280;”>”></span><form <span class=”html-attribute-name”>onsubmit</span>='<span class=”html-attribute-value”>cslmap.searchLocations(); return false;</span>’ <span class=”html-attribute-name”>id</span>='<span class=”html-attribute-value”>searchForm</span>’ <span class=”html-attribute-name”>action</span>=”></span><span class=”html-tag” style=”font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;”><div <span class=”html-attribute-name”>id</span>=”<span class=”html-attribute-value”>address_search</span>”></span><span class=”html-tag” style=”font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;”></div></span><span class=”html-tag” style=”font-family: monospace; font-size: medium; line-height: normal; white-space: pre-wrap;”></div> <–this is the /div tag that causes the whole problem</span>

    Is there something in the php code of the plugin that is generating that extra </div>? How can I get rid of it?

    #28195

    David
    Participant

    Damn it, your WYSIWYG editor does not display things the way they are going to look when posted! Attaching a screen shot that shows the generated html and the extra closing div tag.

    Attachments:
    You must be logged in to view attached files.
    #28197

    David
    Participant

    Also, shouldn’t the code:
    [slp_search_element button=”submit”]

    within the Search Layout Field generate a Submit button? I get no Submit button on the front end, as you can see from the screenshot of the generated html.

    • This reply was modified 1 year, 9 months ago by  David.
    #28397

    David
    Participant

    So, one week later, and no response. Is it safe to assume I will be getting no assistance from you on this matter?

    I have upgraded to the latest version, have everything set to the default settings, and I get no working form tag and no submit button. The plugin is adding an extra closing </div> tag for no good reason, and even if I input bad html to make up for that, the form still does not work and the submit button is not generated. Very frustrating. Is this plugin simply not compatible with the latest version of WordPress? Does anyone have a working installation on WP 4.1.1?

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.