New answers tagged debug
I use a plugin for this issue. Even if debug is set to false, it still prints error to the screen in red. It is easy and fast to create the plugin. In your plugins folder in your wordpress install, create a new file and call it anything you like, for instance, debugger-plugin.php. Open up your newly created file, and paste the following code in there ...
It display NULL, because it doesn't exist. If you want to use global variables in another function than where you defined it, you have to re-declare that as global again. If you omit global keyword, it will be defined in that function scope, not in global scope. In your functions.php use global keyword add_action('pre_get_posts', 'page_sr2_pgp'); ...
@Wyck was right, ( well sorta :P ) you can set error logs but 1) You need to enable debugging 2) ini_set('log_errors', 1); or 0 for false 3) You need to set a log location via ini_set('error_log, $location) Once you have that set you can then if need be test if said file exists via $location and turn off log_errors by setting its value to 0.
Try using the php error log to debug your issue. You can find the error log using this command in the terminal is you are using linux. sudo su cd /var/log/apache2/ sudo gedit error.log Now if you debug properly you will get to know where the changes went wrong.
Answer here: http://stackoverflow.com/questions/7878279/how-to-debug-save-post-actions-in-wordpress using die(print_r($_POST));
WordPress core register a shutdown function on its own (source) the function shutdown_action_hook registered to be ran on shutdown, call do_action( 'shutdown' ); and little more (source). So, if you want to register a shutdown function in WordPress way just add your function on 'shutdown' hook: add_action( 'shutdown', 'my_shutdown_callback' ); ...
First, you need to to find out what your current version of MYSQL... WordPress requires MySQL 5.0 or greater Since its a VPS, I'm assuming its a linux installation. Just type mysql -V on the command line and it will return your MYSQL version. If the version is compatible with wordpress, this message may be a "plugin/theme related" message. Look at your ...
Top 50 recent answers are included