• 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 6 replies - 1 through 6 (of 6 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: https://www.screencast.com/.

    Thanks a lot for your patience and understanding.

    Thread Starter holdusback

    (@holdusback)

    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

    Plugin Contributor contactashish13

    (@rozroz)

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