Title: Plugin Problem
Last modified: August 30, 2016

---

# Plugin Problem

 *  Resolved [coooooool](https://wordpress.org/support/users/coooooool/)
 * (@coooooool)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/plugin-problem-40/)
 * hi
    The plugin present an error : `if (!defined('AUTOPTIMIZE_WP_CONTENT_NAME')){
   define('AUTOPTIMIZE_WP_CONTENT_NAME','/wp-content'); }`
 * If we changed the wp-content directory to another name in wp-config.php like:
   `
   define ('WP_CONTENT_FOLDERNAME', 'assets');` The plugin will not be working at
   all.
 * you must verify all definition like that
 * Thx
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/plugin-problem-40/#post-6393375)
 * Well, given that WP_CONTENT_FOLDERNAME is not part of WordPress as such (cfr.
   [https://github.com/WordPress/WordPress/search?utf8=%E2%9C%93&q=WP_CONTENT_FOLDERNAME](https://github.com/WordPress/WordPress/search?utf8=%E2%9C%93&q=WP_CONTENT_FOLDERNAME),
   with [the official way to change wp-content is described here](https://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content_folder)),
   I don’t think AO should verify if it is set really.
 * To solve your particular problem, you could easily do;
 *     ```
       define('WP_CONTENT_FOLDERNAME', 'assets');
       define('AUTOPTIMIZE_WP_CONTENT_NAME', constant("WP_CONTENT_FOLDERNAME"));
       ```
   
 * (untested) in wp-config.php and all will be fine and dandy 🙂
 * frank

Viewing 1 replies (of 1 total)

The topic ‘Plugin Problem’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/plugin-problem-40/#post-6393375)
 * Status: resolved