Moowoodle Plugin Residue Issue
If the Moowoodle plugin was installed earlier on WordPress installation and courses were synced through this plugin, it may cause an issue syncing Moodle courses via Edwiser-Bridge.
Solution (Kindly take a complete backup of the site before applying the below-mentioned changes.)
➤ Manual -
- Access MySQL database (with PHPMyAdmin or with WP-Phpmyadmin plugin)
- Find table “postmeta” with your WordPress table prefix ( by default it is wp_ so the table name will be wp_postmeta)
- Search table with “moodle_course_id” as meta key.
- Delete all these entries.
➤ Code Change
- Access plugin directory of WordPress installation
- Find edwiser-bridge/includes/class-eb-course-manager.php
- Find function is_course_presynced
- Add the following code before the closing of this function
if ( get_post_type( $course_id ) !== ‘eb_course’ ) { delete_post_meta( $course_id, ‘moodle_course_id’ ); $course_id = false;}
- Synchronize the courses again from Edwiser Bridge settings.
- This will delete all the residual which is causing conflict with the edwiser-bridge.
- Once all courses are synced, you can remove this code.