WordPress.org

Ready to get started?Download WordPress

Forums

Simply Poll
[resolved] Server error when submitting votes (6 posts)

  1. mczinger
    Member
    Posted 2 years ago #

    Hi, I love this plugin because it's so simple yet elegant. But I can't figure out what's wrong with submit.php. Everytime I submit vote, I get this error:

    The website encountered an error while retrieving http://localhost/wp-content/plugins/simply-poll/lib/submit.php. It may be down for maintenance or configured incorrectly.
    Here are some suggestions:
    Reload this webpage later.
    HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

    Can you help me? Im very eager to know the solution becuse I want to use your plugin for its simplicity and elegance. Thanks!

    http://wordpress.org/extend/plugins/simply-poll/

  2. WolfieZero
    Member
    Plugin Author

    Posted 2 years ago #

    Hi mczinger,

    To best solve this you will need to go into your simply-poll plugin folder that can be found from the root of your WordPress install wp-content/plugins/simply-poll and edit a file called config.php.

    On line 6 where it says define('SP_DEBUG', false); can you change the value false to true so it reads define('SP_DEBUG', true);.

    Run the plugin a few times so you get the error message appear a few times. Then go back to the simply-poll folder and open the log file (with any text editor) and copy and paste the contents to the forum and I should be able to see where your issue possible occurred.

    Thanks!

  3. mczinger
    Member
    Posted 2 years ago #

    I tried doing it but when I checked the log file, it has no contents. Is it possible that the problem is my submit.php? When I encounter this error

    The website encountered an error while retrieving http://localhost/wp-content/plugins/simply-poll/lib/submit.php. It may be down for maintenance or configured incorrectly.
    Here are some suggestions:
    Reload this webpage later.
    HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

    and I try to reload the page by clicking the reload link in the error message, it will display SP_DIRECT_ACCESS

  4. WolfieZero
    Member
    Plugin Author

    Posted 2 years ago #

    Ah, I think I know exactly what your issue is.

    It seems as if the simplypoll.js file isn't being loaded; this normally happens due to the theme not having the wp_footer() function (normally located in the footer.php file of your theme. If it's not there then add it in just above the closing </body> tag.

    Really, any WordPress theme requires this function to keep plugins working (as the best time to call Javascript is at the end of a page load)

    Let me know if that works :)

  5. mczinger
    Member
    Posted 2 years ago #

    Awesome! Yes, it works. Thank you so much for your help and time! Finally I can use this wonderful plugin :)

  6. WolfieZero
    Member
    Plugin Author

    Posted 2 years ago #

    Awesome! Nice simple fix too :)

    Hope you enjoy the plugin and if you get any more issues or have any suggestions then feel free to contact me.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic