Skip to content
Luke C Hartman edited this page Nov 15, 2022 · 7 revisions

Welcome to the engaging-quiz wiki!

Troubleshooting

Embed quizes are showing 404 (or other) errors

Reason:

  • Multiple versions of the plugin are installed (ex. /plugins/enp-quiz/ and /plugins/engaging-quiz/)
    • Solution 01:
      • Delete the /plugins/engaging-quiz/ plugin.

    • Solution 02:
      • Check the quiz related files that get created in the directory root (public/enp-quiz-database-config.php) and wp-content folder (wp-content/enp-quiz-config.php). There may be duplicates or incorrect paths. Compare with your file structure to make sure the paths are correct.

      • If they’re messed up, use one of the staging or dev sites as an example for the file paths that need updating. The .htaccess file can sometimes be an issue there as well.

WP Engine .htaccess depreciation

In WP Engine dashboard:

Redirect rules:

quiz-embed:

Redirect name: quiz-embed Domain: mediaengagement.org Source: ^/quiz-embed/([0-9]+)?$ Destination: /wp-content/plugins/enp-quiz/public/quiz-take/templates/quiz.php?quiz_id=$1 Advanced settings/Rewrite type: break

ab-embed:

Redirect name: ab-embed Domain: mediaengagement.org Source: ^/ab-embed/([0-9]+)?$ Destination: /wp-content/plugins/enp-quiz/public/quiz-take/templates/ab-test.php?ab_test_id=$1 Advanced settings/Rewrite type: break

Web Rules/Rewrite rules:

quiz-embed:

  • Add rule
  • Action: Permanent redirect
  • Source: ^quiz-embed/([0-9]+)?$
  • Destination: /wp-content/plugins/enp-quiz/public/quiz-take/templates/quiz.php?quiz_id=$1
  • Keep or discard original query string: Discard

ab-embed:

  • Add rule
  • Action: Permanent redirect
  • Source: ^ab-embed/([0-9]+)?$
  • Destination: /wp-content/plugins/enp-quiz/public/quiz-take/templates/ab-test.php?ab_test_id=$1
  • Keep or discard original query string: Discard

Look at the data:

http://data.mediaengagement.org/quiz-creator/#/sites

Clone this wiki locally