๐ Syncsity Proof Debug Report
๐ File Structure Check
โ
syncsity-proof.php
โ
includes/class-syncsity-proof.php
โ
includes/class-syncsity-proof-admin.php
โ
includes/class-syncsity-proof-public.php
โ
assets/js/syncsity-proof.js
โ
assets/css/syncsity-proof.css
โ๏ธ Settings Check
Expected WordPress Options:
๐ syncsity_proof_settings (check: get_option('syncsity_proof_settings'))
๐ syncsity_proof_custom_notifications (check: get_option('syncsity_proof_custom_notifications'))
๐ syncsity_proof_woocommerce_settings (check: get_option('syncsity_proof_woocommerce_settings'))
๐ syncsity_proof_user_registration_settings (check: get_option('syncsity_proof_user_registration_settings'))
๐จ Frontend Assets Check
In WordPress, verify these are loaded:
๐ง Check browser console for JavaScript errors
๐ง Verify syncsity_proof object exists in console
๐ง Check Network tab for 404 errors on CSS/JS files
๐ AJAX Endpoints Check
Required AJAX Actions:
๐ฏ wp_ajax_syncsity_proof_get_notifications
๐ฏ wp_ajax_nopriv_syncsity_proof_get_notifications
๐ฏ wp_ajax_syncsity_proof_save_custom_notification
๐ฏ wp_ajax_nopriv_syncsity_proof_save_custom_notification
๐ฏ wp_ajax_syncsity_proof_delete_custom_notification
๐ฏ wp_ajax_nopriv_syncsity_proof_delete_custom_notification
๐ฏ wp_ajax_syncsity_proof_track_page_view
๐ฏ wp_ajax_nopriv_syncsity_proof_track_page_view
๐จ Common Issues Checklist
If Notifications Don't Show:
1. Check browser console for JavaScript errors
2. Verify jQuery is loaded before our script
3. Check if AJAX URL is correct: /wp-admin/admin-ajax.php
4. Ensure container div is created in DOM
5. Check if any notifications exist in database
If Can't Save Custom Notifications:
1. Check if admin AJAX actions are registered
2. Verify nonce is passed correctly
3. Check browser Network tab for 403/500 errors
4. Enable WordPress debug logs
5. Test if update_option() works manually
๐ WordPress Environment
Minimum Requirements:
๐ WordPress 5.0+
๐ PHP 7.4+
๐ WooCommerce 3.0+ (for sales notifications)
๐ jQuery loaded
๐ Admin AJAX enabled
๐งช Testing Commands
Browser Console Tests:
console.log(typeof jQuery); // Should show 'function'
console.log(syncsity_proof); // Should show object with ajax_url
console.log($('.syncsity-proof-container').length); // Should be > 0
WordPress Admin Tests:
wp_ajax_syncsity_proof_get_notifications // Test AJAX endpoint
get_option('syncsity_proof_settings') // Check settings
current_user_can('manage_options') // Check permissions
โ
Next Steps
- Install plugin in WordPress admin
- Activate plugin and check for PHP errors
- Check admin menu appears under 'Syncsity Proof'
- Try saving a test custom notification
- Check frontend for notification display
- Enable WordPress debug if issues persist