• Resolved ed

    (@wesleysoccer)


    Your plugin conflicts with WP Simple Survey (which is a great plugin, so is yours)…When both are installed the simple survey works fine but your plugin breaks…It will not load search results on the page…it always says no results…ugh…any help or fix will send a donation.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Do you have a URL for the site?

    Thread Starter ed

    (@wesleysoccer)

    https://www.encorecoatings.com – I don’t have the survey plugin activated right now…

    Try this zip code in the authorized locator: 64068
    It will work now because the other plugin is not activated

    I can’t really troubleshoot it while it’s not broken ??
    My guess is that the other plugin has a JS error that is stoping the script before SimpleMap can load. Another possibility is that they aren’t enqueuing the JS correctly and have two versions of jQuery or something.

    Thread Starter ed

    (@wesleysoccer)

    I will activate the plugin now…do u have time to troubleshoot…let me know and I will activate it

    I can look at it shortly if you activate it now, yes.

    Thread Starter ed

    (@wesleysoccer)

    ok I will activate in one minute

    Thread Starter ed

    (@wesleysoccer)

    activated ?? Thanks.

    Ok. You can deactivate it now.
    If you want to look before you do, check out the following URL both before and after you deactivate the other plugin:

    https://encorecoatings.com/?sm-xml-search=1&lat=33.749&lng=-84.388&radius=50&namequery=33.7489954,%20-84.3879824&query_type=all&limit=25&sm_category=OR,9&sm_tag=&address=&city=&state=&zip=

    It’s adding extra white space to the top of the XML script that returns your locations.
    I don’t have time tonight to look for it in their code but I might be able to do it over the weekend. You may also want to email that plugin author and tell him / her that the plugin is generating extra white space.

    Thread Starter ed

    (@wesleysoccer)

    Thanks so much for your help…I have contacted them but have not heard back…If you can help, if they don’t I will surely send a donation…cheers…

    I will post back tomorrow….thanks again.

    Thread Starter ed

    (@wesleysoccer)

    Glenn, Thanks so much for the support on Friday…If you have anytime to resolve my issue I would grateful…Thanks again.

    Hi,
    Yeah, the other plugin author had some white space being generated outside of his PHP blocks before headers are sent. This is a problem on many server setups.

    If you’re comfortable editing code, you need to open up wp-content/plugins/wordpress-simple-survey/output_quiz.php and go to lines 26 – 28 and remove the closing and opening PHP. When you’re finished it should look like this:

    <form id="wpssform" name="wpssform" action="'.WPSS_SUBMIT_RESULTS.'" method="post" >';
    
    foreach($questions as $i => $question){

    I sent the author a diff. Here’s the content of the diff if you’re familiar with applying patches: https://pastebin.com/wRrgfZrZ

    Thread Starter ed

    (@wesleysoccer)

    So just remove the closing and opening php…that’s it?

    Yep. That should do it. Silly, huh?

    Thread Starter ed

    (@wesleysoccer)

    <form id="wpssform" name="wpssform" action="'.WPSS_SUBMIT_RESULTS.'" method="post" >';?> <?php foreach($questions as $i => $question){
    <form id="wpssform" name="wpssform" action="'.WPSS_SUBMIT_RESULTS.'" method="post" >'; foreach($questions as $i => $question){

    so I will remove ?> and <?php

    Yep. That should do it.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Conflicts with WP Simple Survey’ is closed to new replies.