Debugging: How to determine which plugin is throwing error in plugin.php

In your wp-config.php make sure to include; define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG_DISPLAY’, true ); Sometimes your environment will do a better job at outputting the stack trace. If that doesn’t work, you can go that line in WP core and add; $backtrace = debug_backtrace(); print(‘<pre>’); print_r ( $backtrace ); That should give you a … Read more

Need help getting a function to function

Your code is based on jQuery and you are including it to a PHP file. So you need to call it between <script></script> tag and obviously either you must end and start PHP tags before <script> and after </script> or echo the full script. Now come to how you are gonna execute the code. You … Read more

Website Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘Wppr_Public’ does not have a method ‘amp_support’

The warning message is pretty clear. You’re passing method amp_support from class Wppr_Public as callback, but this class doesn;t have such method… So how to fix it? You should find that class and look for this function. Maybe it’s some typo or that method changed its name or moved to another class or something like … Read more

500 error after update

In phpmyadmin search : SELECT * FROM wp_options WHERE option_name=”template” OR option_name=”stylesheet” OR option_name=”current_theme”; then : UPDATE wp_options SET option_value=”yourthemename” WHERE option_name=”template”; UPDATE wp_options SET option_value=”yourthemename” WHERE option_name=”stylesheet”; UPDATE wp_options SET option_value=”yourthemename” WHERE option_name=”current_theme”; or if you want to go back to default (presuming some default exists) SET option_value=”default” WHERE option_name=”template”; UPDATE wp_options SET option_value=”default” … Read more