dharmeshbarot
Forum Replies Created
-
Hello there,
Greetings!
We have received an update from our developer’s team. Kindly refer to the details provided below:
- Problem: We’ve identified that a fatal error was occurring because the
get_post_meta()function was returning a string instead of an array, which is required byarray_merge(). - Root Cause: This happened because the post meta data was occasionally stored as a string. Our code was not checking the data type before attempting the merge, leading to the error.
- Fix Applied: We have added a type check to ensure that the variable is always an array before calling
array_merge(). - Next Steps: Please override the shared file at the path below. We have implemented this fix, and we need you to confirm that the solution is now working for you.
- File Name:
class-eb-post-types.php - File Path:
/wordpress/wp-content/plugins/edwiser-bridge/includes/class-eb-post-types.php - File – https://we.tl/t-xR30R5AYsY
- File Name:
We look forward to your confirmation.
Edwiser Support
Forum: Reviews
In reply to: [Edwiser Bridge – WordPress Moodle Integration] Support for licencie keyThis is wonderful to hear! We’re delighted that we could assist you effectively and restore your confidence in our support. Our team is dedicated to providing swift and comprehensive solutions to ensure your business and clients can operate smoothly.
Thank you for your kind words and for acknowledging our commitment to being a reliable partner. We’re always here to help.
Team Edwiser
Hello,
Please refer to the below mentioned troubleshooting steps:
Increase PHP limits by adding the following lines in your wp-config.php file:
define('WP_MEMORY_LIMIT', '512M'); set_time_limit(300); ini_set('memory_limit', '512M');Test the Connection First:
- Go to Edwiser Bridge → Settings → Connection
- Test the Moodle connection before starting sync
Sync in Steps:
- First, sync categories only
- Then sync courses in small batches instead of all at once
Check Moodle Settings:
- Make sure Web Services are enabled in Moodle
- Verify the token has all the required permissions
Most Likely Cause
- The issue usually happens because PHP memory/timeout limits are too low for large course catalogs.
- Try the PHP limits fix first — in 80% of cases, it resolves these JSON errors.
Thanks,
Team Edwiser
Hello,
- Based on the code analysis, the issue is most likely that:
- No courses exist in the eb_course post type, or
- No categories exist in the eb_course_cat taxonomy, or
- Courses exist but are not assigned to categories
- The shortcode logic requires both courses and categories to exist for the grouping to work properly.
Solution 1:
Check if Courses and Categories ExistFirst, verify that you have courses and categories in your system:- Go to WordPress Admin → Edwiser Bridge → Courses
- Check if there are any courses listed
- Ensure they are published (not drafts)
- Go to WordPress Admin → Edwiser Bridge → Course Categories
- Check if there are any categories created
- If empty, you need to create categories first
Solution 2:
Create Test Categories and Courses
If none exist, create them manually:
Create a Course Category:- Go to Edwiser Bridge → Course Categories
- Click Add New
- Give it a name (e.g., “Test Category”)
- Set a slug (e.g., “test-category”)
- Publish it
Create a Test Course:
- Go to Edwiser Bridge → Courses
- Click Add New
- Give it a title (e.g., “Test Course”)
- Assign it to the category you created
- Set status to Published
- Publish it
Solution 3:
Sync from Moodle (if applicable)
If you’re using Moodle integration:- Go to Edwiser Bridge → Settings → Synchronization
- Enable Category Synchronization (check the box for “Synchronize Categories”)
- Run the synchronization process
- Check the logs for any errors
Solution 4:
Use the Shortcode Without Grouping First
Test if the basic shortcode works:[eb_courses per_page=”12″]
- If this works, then the issue is specifically with the grouping functionality.
Solution 5:
Check for JavaScript Errors- The horizontal scroll feature requires JavaScript. Check your browser’s console for any JavaScript errors that might prevent the display.
Recommended Shortcode for Testing
Try this simplified version first:[eb_courses group_by_cat=”yes” per_page=”12″]
Then gradually add parameters:
[eb_courses group_by_cat=”yes” per_page=”12″ cat_per_page=”3″]
Debug Information
To help diagnose the issue, you can temporarily add this debug code to your theme’s functions.php:add_action('wp_footer', function() { if (is_page('corsi')) { // Replace 'corsi' with your page slug echo '<!-- Debug Info: -->'; echo '<!-- Courses: ' . wp_count_posts('eb_course')->publish . ' -->'; echo '<!-- Categories: ' . wp_count_terms('eb_course_cat') . ' -->'; $categories = get_terms(['taxonomy' => 'eb_course_cat', 'hide_empty' => false]); echo '<!-- Category Details: ' . print_r($categories, true) . ' -->'; } });- This will show you in the page source how many courses and categories exist.
- Try the solutions above in order, and let me know what you find. This should resolve the issue with your courses not displaying when grouped by category.
Thanks,
Team Edwiser
Hello,
We have received an update from our developer’s team. Kindly refer to the details provided below:
After a thorough analysis, we have identified several possible reasons for the error you are experiencing. Our Edwiser logs indicate that the plugin successfully downloads the image from the URL
https://corsi.asaweb.systems/webservice/pluginfile.php/.../haccp.png?token=XXXXwith a 200 response code. However, the downloaded file size is only 132 bytes, rendering it invalid. This strongly suggests that the issue resides within the Moodle environment, not the WordPress installation.To resolve this, we recommend checking the following configurations on your Moodle site. Please ensure all these settings are correctly configured:
- The user associated with the token is active and has not been suspended.
- The token user possesses the following two permissions:
moodle/course:viewhiddencoursesmoodle/course:downloadfiles
- The Edwiser Bridge webservice has the “Download files” option enabled.
- The course images in Moodle are uploaded as non-protected files.
Additionally, please verify that the URL
https://corsi.asaweb.systems/webservice/pluginfile.php/.../image.png?token=XXXreturns the actual image when tested in a browser or viacurlfrom the server.Once these points have been addressed, Edwiser Bridge will automatically import the correct image files, and the issue with the empty images will be resolved.
Thanks,
Team Edwiser
Hello there,
To help us investigate further, we need you to provide the debug.log file, which will give us a record of any errors or warnings on your site.
To enable and locate the log file, please follow these steps:
- Access the wp-config.php file in your WordPress folder.
- Add the following code to the file:
PHP
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );- Save the file, refresh your site, and try to reproduce the issue. This will ensure that the errors are logged.
- Once you have reproduced the issue, check the wp-content/ folder. You will find the debug.log file there.
Please share the debug.log file with us. We have provided a link for you to download the file. Please remember to download, save, and install the file before it expires in three days.
Here is the link to download the log file: https://we.tl/t-ggd6x1nVh9
Thanks,
Team Edwiser
Hello again,
Please follow these steps to provide us with the necessary information:
- Enable Debug Mode:
- Access your site’s
wp-config.phpfile. - Add or update the following lines of code within that file:
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
- Access your site’s
- Reproduce the Issue:
- Once you have enabled debug mode, please try to perform the same action that caused the error or issue to appear (e.g., checkout, login, etc.).
- Send Us the Following Information:
- The
debug.logfile, located at/wp-content/debug.log. Please download and share this file with us. - A screenshot of your browser’s console. You can typically open the console by pressing F12 (or right-clicking and selecting Inspect, then going to the Console tab).
- A confirmation of whether these steps were performed after our latest changes/fixes were implemented.
- The
Thanks,
Team Edwiser
Hello @angelolazzari ,
We’ve re-evaluated the process and want to ensure you haven’t missed any steps or set anything up incorrectly.
We have added
error_logsto the files. You just need to override the following files at the specified paths:- File 1:
/wordpress/wp-content/plugins/edwiser-bridge/admin/assets/js/eb-admin.js - File 2:
/wordpress/wp-content/plugins/edwiser-bridge/includes/class-eb-course-manager.php - File 3:
/wordpress/wp-content/plugins/edwiser-bridge/admin/class-eb-settings-ajax-initiater.php
Please follow the steps below to debug the issue:
Step 1: Enable Debug Logging
Add the following lines of code to your
wp-config.phpfile:PHP
define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);Step 2: Run Synchronization Test Again
- Go to Edwiser Bridge > Settings > Synchronization.
- Check the “Sync Course images from moodle” checkbox.
- Click “Start Synchronization.”
- Allow it to run for a few minutes.
Step 3: Check Debug Logs
- Monitor the debug log in real time.
- The path of the
debug.logfile is/wordpress/wp-content/debug.log. - Please share this log file with us, along with any console errors that may occur.
Please let us know once you have completed these steps if yes, then you can share log at [email protected]. We’ll be ready to analyze them and help you get this resolved.
Thanks,
Team Edwiser
Thanks so much for reaching out and for your kind words! We’re really glad to hear that the Edwiser support team was able to resolve the connection issue between your Moodle and WordPress sites.
We understand that it took some time to get to the root of the problem, especially with the localhost file setting. We appreciate your patience and persistence throughout the troubleshooting process. It’s fantastic to know that our technical team could identify and fix it for you.
We’re always striving to provide efficient and effective support, and your feedback helps us improve.
Warm Regards,
Team Edwiser
Hello @angelolazzari,
It sounds like you’re experiencing a continuous spinning issue. We can help you troubleshoot this.
To get started, please enable the debug log and share the
debug.logfile with us. Here’s how you can do it:Enable Debug Log- Navigate to your WordPress root directory: This is typically where you’ll find the
wp-contentfolder. - Open
wp-config.php: Locate and open this file for editing. - Add the debug code: Just before the line that says
/* That's all, stop editing! Happy publishing. */, insert the following lines of code:PHPdefine('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false); - Save the file.
- Reproduce the issue: Go back to your site and perform the actions that cause the continuous spinning.
After you’ve reproduced the issue, please check your
wp-contentfolder to see if adebug.logfile has been generated.- If the file is present, please share it with us.
- If you don’t find the file, please let us know, and we’ll provide further guidance.
Thanks,
Edwiser Support
Hello @antonyjosephsmith
Thank you for reaching out and sharing your honest feedback regarding Edwiser Bridge Pro. We genuinely appreciate you taking the time to provide us with your insights, as it helps us understand areas where we can improve.
We’re sorry to hear that your experience has not been consistently positive and that you’re encountering issues with documentation, UI, support, and pop-ups. We understand how frustrating these points can be, and we want to assure you that we are committed to enhancing your experience with our products.
We would be grateful for the opportunity to understand your specific concerns in more detail. If you could elaborate on the particular aspects of the documentation or UI that you find confusing, or the challenges you’ve faced with support, it would greatly assist us in addressing them effectively. Our goal is to ensure our products are intuitive and that our support is responsive and helpful.
Please feel free to reach out to our dedicated support desk at [email protected] with any specific issues or questions you may have. Our team is here to assist you and work towards a resolution.
Thank you once again for your valuable feedback. We look forward to the possibility of assisting you further.
Sincerely,
Team Edwiser
Hello @angelolazzari,
- Please confirm if you received any error message, or if it just stuck spinning without displaying any results.
- Please right-click anywhere on the page and select “Inspect” to open the developer tools, then navigate to the “Console” tab.
- We encourage you to watch the video to gain a better understanding of what we mean: Watch the Video.
Thank you,
Edwiser SupportHello @angelolazzari,
- We have created custom code, but please use this code on the staging site first to avoid any issues on your live site.
- Additionally, please add this code to the
functions.phpfile of your staging theme. - This code will display an error message when you run the test again after placing the custom code. If you receive any error message, please share it with us.
// Validate and fix course thumbnail after Edwiser Bridge sync, only if image sync was selected
add_action(‘eb_course_created_wp’, ‘validate_eb_course_thumbnail_on_sync’, 20, 3);
add_action(‘eb_course_updated_wp’, ‘validate_eb_course_thumbnail_on_sync’, 20, 3);function validate_eb_course_thumbnail_on_sync($course_id, $course_data, $sync_options = array()) {
// Only run if image sync was selected
if (!isset($sync_options[‘eb_synchronize_images’]) || $sync_options[‘eb_synchronize_images’] !== ‘1’) {
return;
}// Get the thumbnail (featured image) ID $thumb_id = get_post_thumbnail_id($course_id); if (!$thumb_id) { return; } // Get the file path $file = get_attached_file($thumb_id); if (!$file || !file_exists($file)) { return; } // Validate the image $image_data = file_get_contents($file); if ($image_data === false || !getimagesizefromstring($image_data)) { // Invalid image: remove the thumbnail delete_post_thumbnail($course_id); // Optionally, set a placeholder image (replace with your placeholder attachment ID) // set_post_thumbnail($course_id, 123); // Uncomment and set your placeholder image ID // Log error for admin error_log("Edwiser Bridge: Invalid course image removed for course ID $course_id, file: $file"); }}
Thank you,
Edwiser SupportSure, here is the file link – https://we.tl/t-y8pRQeiCNL
- Problem: We’ve identified that a fatal error was occurring because the