How to stop activation addon if the main plugin is not activated

I found the solution. First of all, I discover that… you cannot use the admin_notices hook inside the activation hook function. More details here Thanks the link above, I found this solution : class MyAddon { const ACTIVATION_ERROR = “foo-activation-error” public function __construct(){ register_activation_hook( __FILE__, array( $this, ‘install’ ) ); if( is_admin() ){ add_action( “admin_init”, … Read more

WordPress in subfolder dont work

Your .htaccess looks just fine, but you need to tell WordPress itself that it got moved. Simply put the following line into your wp-config.php, then access your site’s login page under the new URL and login. After that you can remove this line.: define(‘RELOCATE’, TRUE); Alternatively add the following two lines to your wp-config.php, then … Read more

PHP Fatal error: Uncaught Error: Call to undefined function wp_kses_normalize_entities() in new wordpress installation

I know it is long since you posted this but let’s get into it. This error happens when WordPress installation is not successful or not complete. I suggest trying to install your WordPress using its auto-installer which will do the necessary changes to necessary files. Using this method avoids you from editing even the wp-config … Read more

WordPress (behind HAProxy and Jetty), not multisite, in sub folder – and /en/wp-admin/ keeps redirecting to /wp-admin/

Do you happen to have PHPMyAdmin or Adminer or a similar tool installed in your web server? You could easily run a search & replace. I’d recommend running a search and see if all the matching records make sense. Then, run a search & replace. As @WebElaine mentioned, WP tends to store the URLs in … Read more

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