• Resolved clownguts

    (@clownguts)


    Hi,

    The submit button isn’t working on my quiz. It will come up with an error if the user misses a question however when you complete all the questions and press submit it does nothing. I disabled on the plugins and tested and it didn’t work either. It comes up with this error in the console when pressing the submit key:
    Uncaught SyntaxError: Unexpected token <(anonymous function) @ qmn_quiz.js?ver=4.3.1:107j @ jquery.js?ver=1.11.3:2k.fireWith @ jquery.js?ver=1.11.3:2x @ jquery.js?ver=1.11.3:5b @ jquery.js?ver=1.11.3:5
    In Internet Explorer:

    SCRIPT1014: Invalid character
    qmn_quiz.js (107,3)

    You can test it at http://www.auroramarketing.com.au/basic-tender-writing-test/ Login: GaryMcGee Password: Gary2015

    Thanks

    https://wordpress.org/plugins/quiz-master-next/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Greetings clownguts,

    Thank you for choosing to use this plugin! I took a look at your plugin and your wp-admin url seems to redirect back to the homepage. WordPress uses the wp-admin folder to run any dynamic loading such as loading the results.

    So, WordPress is trying to access this url: http://www.auroramarketing.com.au/wp-admin/admin-ajax.php to make the dynamic request but is encountering a redirect and is not able to perform its function which is what this plugin hooks into. Do you have any type of redirect script or plugin in your WordPress or on the server that might be causing the wp-admin url to redirect to your homepage?

    Thread Starter clownguts

    (@clownguts)

    Hi Frank,

    When I go to that link it loads up a page with a 0 on it. It isn’t redirecting to the homepage. I don’t have any redirects active.

    Nathan

    Hmmm….strange, if you go to the link directly, you do see just a 0 which is how it should work. However, when the quiz tries to access that page, it returns a 302 redirect pointing to the homepage where the quiz sees the beginning “<!DOCTYPE html>” of the homepage HTML which is resulting in the “Invalid character” character in the console. If you are familiar with the console, you can view the Network tab where you will see the admin-ajax.php appear when you click submit and then it returns the 302 as I described.

    I haven’t come across this error before. Do you have any plugin that modifies the htaccess such as a security plugin or similar?

    Also, could you try temporarily switching to a default theme such as Twenty Fifteen to rule out a theme conflict?

    Thread Starter clownguts

    (@clownguts)

    Ok looks like a theme conflict as when i switched to 2015 it worked fine. What should I be looking at with the theme?

    Interesting…. I did a quick search and it appears that the most common cause is an issue inside the functions.php file of the theme. Issues seem to stem from misspellings in register_functions to having incorrect filters.

    If you have FTP access, could you temporarily remove everything in the functions.php and save it as an empty file. Try to take your quiz. If it works, then we at least narrowed it down to the functions.php file. Of course, add all the code back in and then save it again to restore it back to how it was.

    Greetings clownguts,

    Thank you for choosing to use this plugin!
    We haven’t heard back from you in a little while so we are going to go ahead and close the ticket. However, feel free to come back anytime and comment here if necessary. Thanks again for using our plugin.

    Hi Frank. I used QSM and made a quiz ready for publishing. All fine except that i am not able to find the publish button. Though status shows “published”, the quiz doesn’t appear in the blog. What should i do?

    Hi Frank. I used QSM and made a quiz ready for publishing. All fine except that i am not able to find the publish button. Though status shows “published”, the quiz doesn’t appear in the blog. What should i do?

    Hey incubatefuture,

    In order to publish the quiz onto your blog, you must add the shortcode to your post or page. First, navigate to the Quizzes page. Then, go to the Quiz Shortcode column and copy the shortcode for your quiz. Then, go to the post or page you would like the quiz in and paste the shortcode anywhere in the post or page. Don’t forget to update your post or page.

    This should cause the quiz to appear on your blog, let me know if it doesn’t!

    Cheers

    Anonymous User 15030078

    (@anonymized-15030078)

    Hi, when I hit the submit button on my webpage with the quiz on it, I get NO reaction at all. Everything worked perfectly in the Preview. Received my results page and the 2 emails O set up. But I don’t even get an error message.

    What could be going on? Thanks.

    http://www.drjoanny.com/9-signs-of-a-hidden-brain-injury/

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Submit button not working’ is closed to new replies.