Support » Plugin: Visualizer: Tables and Charts Manager for WordPress » customization.js with 404 error ?

  • Resolved holdusback

    (@holdusback)


    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 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Madalin

    (@madalin_themeisle)

    Hey @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/.

    If not then you can use this solution: http://www.screencast.com/.

    Thanks a lot for your patience and understanding.

    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

    (@madalin_themeisle)

    Hi @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!

    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

    (@madalin_themeisle)

    Hi @aldemarcalazans

    Thank you for your suggestions. I have forwarded this message to our developers.

    Have a great day!

    Best regards,
    Madalin

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.