Error when updating AccelerateWP plugin

In some cases, WordPress will show an error when updating AccelerateWP:

AccelerateWP (3.19.0.1-1.1-26 -> 3.19.0.1-1.1-28): Incompatible archive: PCLZIP_ERR_MISSING_FILE (-4) : Missing archive file '/tmp/AccelerateWP-3.19.0.1-1.1-28.zip'

This issue is known to the developers (Issue CLPRO-2786) and will be fixed in a future software update. The problem is not critical and does not interfere with the plugin's functionality. However, there is a temporary workaround to remove this error message yourself:

  1. Under the relevant domain, create a subdirectory named 'temp' inside the 'wp-content' folder. You can do this via the File Manager in DirectAdmin or via FTP.
  2. Open the 'wp-config.php' file of the relevant domain (located in the main 'public_html' folder of the domain) and add the following:
/Set WordPress temporary directory /
define('WP_TEMP_DIR', ABSPATH . 'wp-content/temp');



Note, you should add this AFTER the following section:
/ Absolute path to the WordPress directory. /
if ( ! defined( 'ABSPATH' ) ) {
        define( 'ABSPATH', DIR . '/' );
}


The complete section will then look like this:

/* Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
        define( 'ABSPATH', DIR . '/' );
}

/*Set WordPress temporary directory */
define('WP_TEMP_DIR', ABSPATH . 'wp-content/temp');


You will no longer receive an error message for this plugin. This error will be automatically fixed in the software in the coming weeks. The change above does not need to be reverted afterward.

Can't figure it out? Please contact us and let us know which domain(s) are affected so we can apply this fix for you. Please note that this change is NOT necessary; the AccelerateWP plugin works without any issues even without this adjustment. The solution above purely resolves the error message.

  • acceleratewp
  • 0 utilizatori au considerat informația utilă
Răspunsul a fost util?