Title: customization.js with 404 error ?
Last modified: November 14, 2018

---

# customization.js with 404 error ?

 *  Resolved [holdusback](https://wordpress.org/support/users/holdusback/)
 * (@holdusback)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/customization-js-with-404-error/)
 * Hey there,
 * The plugin work great, and the chart is displaying great but I got this error
   in my console log …
 * XXXX.com/media/visualizer/customization.js 404
 * I moved the upload folder to media, but that was before I download this plugin.
 * Just to let you know,
 * Have a good day !

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Contributor [Madalin](https://wordpress.org/support/users/madalin_themeisle/)
 * (@madalin_themeisle)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/customization-js-with-404-error/#post-10925693)
 * Hey [@holdusback](https://wordpress.org/support/users/holdusback/),
 * Can you please give me more details about the issue encountered? Please provide
   some screenshots or a screencast if possible. If you’re using Google Chrome you
   can use this extension to create screencasts: [https://www.vidyard.com/govideo/](https://www.vidyard.com/govideo/).
 * If not then you can use this solution: [http://www.screencast.com/](http://www.screencast.com/).
 * Thanks a lot for your patience and understanding.
 *  Thread Starter [holdusback](https://wordpress.org/support/users/holdusback/)
 * (@holdusback)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/customization-js-with-404-error/#post-10925997)
 * Hey man,
 * Everything work great.
 * But on the page I have a chart I got a 404 error on the customization.js
 * But the chart work great ! That was just to let you know that this js file is
   not found.
 * I moved the upload folder to media, but that was before I download this plugin.
 *  Plugin Contributor [Madalin](https://wordpress.org/support/users/madalin_themeisle/)
 * (@madalin_themeisle)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/customization-js-with-404-error/#post-10931297)
 * Hi [@holdusback](https://wordpress.org/support/users/holdusback/),
 * Thank you for providing all these suggestions about our product’s improvement.
   I have just informed our developers about that.
 * Even though we always appreciate receiving feedback and suggestions from our 
   customers (we encourage that) as it gives us the opportunity to improve our products,
   we can’t promise it will be added to the product for sure.
 *   I hope we’re still good and I hope you have a great day!
 *  [aldemarcalazans](https://wordpress.org/support/users/aldemarcalazans/)
 * (@aldemarcalazans)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/customization-js-with-404-error/#post-11233272)
 * I noticed that, in your code, you defined two file paths: one generic/default
   `
   $file = $wp_filesystem->wp_content_dir() . 'uploads/visualizer/customization.
   js';` and another specific `$specific = $uploads['baseurl'] . '/visualizer/customization.
   js';`
 * Further ahead, when you test for the existence of this files, something strange
   occurs: you test the existence of the generic file, but returns the path of the
   specific one:
 *     ```
       if ( $wp_filesystem->is_readable( $file ) ) {
       	return $specific;
       }
       ```
   
 * I guess the correct code should be
 *     ```
       if ( $wp_filesystem->is_readable( $specific ) ) {
       	return $specific;
       }
   
       if ( $wp_filesystem->is_readable( $file ) ) {
       	return $default;
       }
       ```
   
 *  Plugin Contributor [Madalin](https://wordpress.org/support/users/madalin_themeisle/)
 * (@madalin_themeisle)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/customization-js-with-404-error/#post-11353196)
 * Hi [@aldemarcalazans](https://wordpress.org/support/users/aldemarcalazans/)
 * Thank you for your suggestions. I have forwarded this message to our developers.
 * Have a great day!
 * Best regards,
    Madalin
 *  Plugin Contributor [contactashish13](https://wordpress.org/support/users/rozroz/)
 * (@rozroz)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/customization-js-with-404-error/#post-11647501)
 * [@aldemarcalazans](https://wordpress.org/support/users/aldemarcalazans/) thank
   you for the code. In our code, `$file` is a file path and `$specific` is the 
   URL to that file so I don’t see any problem. Can you please verify this at your
   end as well? Do you face a problem while using the customization file (it is 
   automatically copied from the plugin directory to the uploads directory so that
   your changes should not get overwritten by our updates).

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘customization.js with 404 error ?’ is closed to new replies.

 * ![](https://ps.w.org/visualizer/assets/icon-256x256.gif?rev=3084574)
 * [Visualizer – Tables & Charts Manager with Built-in AI Generator](https://wordpress.org/plugins/visualizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visualizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visualizer/)
 * [Active Topics](https://wordpress.org/support/plugin/visualizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visualizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visualizer/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [contactashish13](https://wordpress.org/support/users/rozroz/)
 * Last activity: [6 years, 12 months ago](https://wordpress.org/support/topic/customization-js-with-404-error/#post-11647501)
 * Status: resolved