Not Working
Plugin not generating content
Find fast solutions to common Automatic Plugin for WordPress issues. Use this guide to diagnose and resolve problems quickly.
Plugin not generating content
Slow or timing out
API keys not working
Poor content quality
// Check if plugin is loaded
if (class_exists('AutoNewsImporter')) {
echo "Plugin loaded successfully";
} else {
echo "Plugin not loaded - check activation";
}
// Check OpenAI connection
$test_result = ani_test_openai_connection();
if ($test_result['success']) {
echo "OpenAI working";
} else {
echo "OpenAI error: " . $test_result['error'];
}
// Test OpenAI API manually
$api_key = 'your-api-key-here';
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.openai.com/v1/models',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $api_key,
'Content-Type: application/json'
]
]);
$response = curl_exec($curl);
$http_code = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($http_code === 200) {
echo "API key is valid!";
} else {
echo "API error: " . $response;
}
// Add to wp-config.php for better performance
ini_set('memory_limit', '512M');
ini_set('max_execution_time', 600);
ini_set('max_input_vars', 3000);
// Check current limits
echo "Memory Limit: " . ini_get('memory_limit') . "\n";
echo "Max Execution Time: " . ini_get('max_execution_time') . "\n";
echo "Max Input Vars: " . ini_get('max_input_vars') . "\n";
// Instead of: "Write about technology" // Use this detailed prompt: "As a technology expert, write a comprehensive 800-word article about [TOPIC]. Include: - Clear introduction explaining why this matters - 3-5 main points with practical examples - Current statistics and data - Expert insights and quotes - Actionable takeaways for readers - Professional but conversational tone - Proper heading structure (H2, H3) - Conclusion with next steps"
Problem: Plugin tables not created during installation
// Manually create tables if needed
global $wpdb;
$table_name = $wpdb->prefix . 'ani_processed_content';
$charset_collate = $wpdb->get_charset_collate();
$sql = "CREATE TABLE $table_name (
id mediumint(9) NOT NULL AUTO_INCREMENT,
content_hash varchar(64) NOT NULL,
title text,
url text,
source_type varchar(20),
status varchar(20) DEFAULT 'pending',
created_at datetime DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (id),
UNIQUE KEY content_hash (content_hash)
) $charset_collate;";
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
dbDelta($sql);
// Test WordPress cron
wp_cron();
// Check scheduled events
$cron_jobs = _get_cron_array();
print_r($cron_jobs);
// Manual trigger
do_action('ani_process_rss_feeds');
For better performance, set up server-level cron jobs instead of WordPress cron:
# Add these lines to your server's crontab # Edit with: crontab -e # RSS processing every 5 minutes */5 * * * * /usr/bin/wget -q -O - "https://yoursite.com/wp-cron.php?doing_wp_cron" >/dev/null 2>&1 # Original content every hour 0 * * * * /usr/bin/wget -q -O - "https://yoursite.com/?ani_cron=original" >/dev/null 2>&1 # Web scraping every 30 minutes */30 * * * * /usr/bin/wget -q -O - "https://yoursite.com/?ani_cron=scraping" >/dev/null 2>&1
Enable debug mode to see detailed error messages and troubleshoot issues:
// Add to wp-config.php for WordPress debugging
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('SCRIPT_DEBUG', true);
// Plugin-specific debugging
define('ANI_DEBUG', true);
define('ANI_LOG_LEVEL', 'debug');
// Check debug.log file in /wp-content/ directory
tail -f /path/to/wp-content/debug.log
Gather system information for support requests:
// System info for support
echo "WordPress Version: " . get_bloginfo('version') . "\n";
echo "PHP Version: " . PHP_VERSION . "\n";
echo "Memory Limit: " . ini_get('memory_limit') . "\n";
echo "Max Execution Time: " . ini_get('max_execution_time') . "\n";
echo "Plugin Version: " . ANI_VERSION . "\n";
echo "Active Plugins: " . implode(', ', get_option('active_plugins')) . "\n";
// Check plugin tables
global $wpdb;
$tables = $wpdb->get_results("SHOW TABLES LIKE '{$wpdb->prefix}ani_%'");
echo "Plugin Tables: " . count($tables) . "\n";
If the plugin is causing your site to crash or become inaccessible:
mv /wp-content/plugins/auto-news-importer-ultimate /wp-content/plugins/auto-news-importer-ultimate-disabled
If settings are corrupted or causing issues:
// Reset all plugin settings
delete_option('ani_settings');
delete_option('ani_openai_settings');
delete_option('ani_rss_settings');
delete_option('ani_image_settings');
// Clear plugin cache
wp_cache_flush();
// Reactivate plugin to restore defaults
deactivate_plugins('auto-news-importer-ultimate/main.php');
activate_plugin('auto-news-importer-ultimate/main.php');
Get detailed technical assistance via email.
Instant help via WhatsApp for urgent issues.
Browse complete guides and tutorials.