-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the engaging-quiz wiki!
- 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
) andwp-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.
-
- Solution 01:
In WP Engine dashboard:
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
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
- 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
- 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
http://data.mediaengagement.org/quiz-creator/#/sites
These are the details for a working version. In case you local env wont work in general or if the quiz embed pages are returning a 404:
- Web server: Apache
- PHP Version: ^8.0.0
- MySQL 8.0.16
- WordPress v6.3.2
- Theme: should work on any theme, but the working version was on GeneratePress Version: 3.3.1