Is it possible to hook AJAX to UPDATE-button?

If all you’re wanting to do is save extra post data you should not need jquery or custom ajax. WordPress has a built in action you can use to achieve this same thing. add_action( ‘save_post’, ‘save_more_post_meta’ ); function save_more_post_meta( $post_id ) { //save stuff here } If you need help with saving specifics i’ll need … Read more

Getting a fatal error while updating

This issue generally occurs when php script takes more time for execution than set in php.ini file You can resolve this issue by using two methods: Method 1: Editing .htaccess File Manually Put php_value max_execution_time 600 in .htaccess file 600 is the value of execution time in seconds, you can use yours value, the maximum … Read more

Force wordpress to request for FTP Info on theme/plugin install/update

I just tried this on a local install that previously used the ‘direct’ FS_METHOD. In wp-config.php, set the following constants: define(‘FS_METHOD’, ‘ftpext’); Not sure if this actually affects things, but I also set these to try to force the input fields to be empty when the form is presented: define(‘FTP_USER’, false); define(‘FTP_PASS’, false); Source: http://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants

Can’t update WordPress, need to reboot the VPS

PHP’s opcache module causes this kind of behaviour. Disable this module by editing the file at /etc/php5/mods-available/opcache.ini and placing a semicolon like this. ;zend_extension=opcache.so And restart PHP5-FPM/web server service. If you are not comfortable editing these files add these lines to the top of your child theme’s functions.php file. if ( is_admin() ): ini_set( “opcache.enable”, … Read more

WordPress load-scripts.php encoding issue

Can you provide the request header you get in your browser? It should follow this form: File: load-scripts.php 56: header(“Etag: $wp_version”); 57: header(‘Content-Type: application/javascript; charset=UTF-8’); 58: header(‘Expires: ‘ . gmdate( “D, d M Y H:i:s”, time() + $expires_offset ) . ‘ GMT’); 59: header(“Cache-Control: public, max-age=$expires_offset”); The request header is OK. I can confirm I … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)