WordPress and TinyMCE Advanced: Failed to load javascript

WP_PLUGIN_DIR customizes the location of files in filesystem.

Most likely you also need to customize WP_PLUGIN_URL, which customizes client–facing URL location. If you omit this one, WP will decide it based on WP_CONTENT_URL, which might not at all point to your new location.

Another possibility is that plugin/code in question simply cannot handle a custom location. Generally this shouldn’t happen under a normal WP API usage and such should be reported to developers as a possible bug.

error code: 523