Add this to your WordPress page:
[resume_parser_debug]
- Open your WordPress page with the form
- Press F12 to open Developer Tools
- Go to Console tab
- Try to upload a resume file (Ctrl+U on any .resume-parser-field)
- Look for these messages:
Resume Parser: Processing file: filename.pdf for field: fieldname
Resume Parser: Configuration check: {ajaxUrl: "...", nonce: "...", apiEndpoint: "..."}
Resume Parser: Sending AJAX request to: .../wp-admin/admin-ajax.php
Resume Parser: AJAX request started
Resume Parser: AJAX Success - Raw response: {...}
Resume Parser: Parsed data: {...}
Error: "resumeParser object not found"
- Problem: Plugin scripts not loading
- Solution: Check if plugin is activated, clear cache
Error: "AJAX endpoint not found" (404)
- Problem: WordPress AJAX not working
- Solution: Check .htaccess, permalink settings
Error: "Network connection failed" (0)
- Problem: AJAX blocked or wrong URL
- Solution: Check if site URL is correct
Error: "Server error" (500)
- Problem: PHP error on server
- Solution: Check PHP error logs
Add this to check if your API endpoint is configured:
- Go to WordPress Admin → Settings → Resume Parser
- Make sure API Endpoint is set
- Or add this to your functions.php temporarily:
add_action('init', function() {
error_log('Resume Parser API Endpoint: ' . get_option('resume_parser_api_endpoint'));
});Add this to your page temporarily to test AJAX directly:
<button onclick="testAjax()">Test AJAX Connection</button>
<script>
function testAjax() {
console.log("Testing AJAX connection...");
jQuery.ajax({
url: resumeParser.ajaxUrl,
type: "POST",
data: {
action: "parse_resume",
nonce: resumeParser.nonce,
test: true,
},
success: function (response) {
console.log("AJAX test success:", response);
},
error: function (xhr, status, error) {
console.error("AJAX test failed:", {
status,
error,
responseText: xhr.responseText,
});
},
});
}
</script>Look in your WordPress error logs for any PHP errors when the AJAX request is processed.
- Clear WordPress cache
- Clear browser cache
- Deactivate/reactivate plugin
Add this to your functions.php:
add_action('wp_footer', function() {
if (wp_script_is('resume-parser-js', 'done')) {
echo '<script>console.log("Resume Parser JS loaded successfully");</script>';
} else {
echo '<script>console.error("Resume Parser JS NOT loaded");</script>';
}
});Add this to your functions.php:
add_action('wp_enqueue_scripts', function() {
wp_enqueue_script('resume-parser-js');
wp_enqueue_style('resume-parser-css');
}, 99);