• Resolved mvandemar

    (@mvandemar)


    I was debugging an issue for a client when I noticed that occasionally this plugin was looking for a file that does not exist:

    wp-content/plugins/ultimate-addons-for-gutenberg/dist/index.js.map

    It was throwing a 404 error in Dev Tools. I grabbed a fresh copy of the plugin and looked, and it definitely does not exist, but it is being referenced here:

    $ grep -Irn "index\.js\.map" *
    dist/blocks.build.js:106756://# sourceMappingURL=index.js.map

    The line is commented out, but only by using double slashes. This means that minification of the plugin by a caching plugin could potentially be re-including the variable assignment. If it’s not being used then it should probably be removed, or at least commented out using /* slash asterisk */ notation like the rest of the comments I see in there.

    -Michael

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Team Brainstorm Force

    (@brainstormteam)

    Hello @mvandemar ,

    It seems likes this index.js.map file is added by someone or maybe by some other plugin.

    We don’t have such a file in our ultimate-addon-for-gutenberg/dist directory.

    Could you please delete UAG and install it again?

    I hope this helps. Let me know if the issue still persists.

    Thread Starter mvandemar

    (@mvandemar)

    @brainstormteam I know the file is not there, it’s why there is a 404 error. Please look inside this file:

    wp-content/plugins/ultimate-addons-for-gutenberg/dist/blocks.build.js

    On line 106756. You will see what I am talking about.

    -Michael

    Plugin Support Team Brainstorm Force

    (@brainstormteam)

    Hello @mvandemar ,

    This ultimate-addons-for-gutenberg/dist folder consists of the build generated from the source code by npm.

    And also as it is commented in blocks.build.js so it is no issue with that code.

    Could you please let me know if you still facing any issues with the 404 error after re-installing the UAG?

    [redacted]

    Thread Starter mvandemar

    (@mvandemar)

    And also as it is commented in blocks.build.js so it is no issue with that code.

    Again, it is commented out using only double slashes, if a caching plugin minimizes it into a single line of code it will no longer be commented out.

    I cannot give you access to my client’s site. I am just reporting a bug, if you would like to try and reproduce it just install the plugin along side a caching plugin that has minification, like WP Rocket. Then look at the Network tab in Dev Tools in Chrome for 404s. If you don’t care then don’t worry about it. I don’t know that it’s causing any issues, it’s just messy to have calls to files that don’t exist, or to have commented out code like that.

    -Michael

    • This reply was modified 3 years, 9 months ago by mvandemar.
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    @brainstormteam I’ve deleted your offer to login to your user’s site. While I know you have the best of intentions, it’s forum policy that you not ask users for admin or server access. Users on the forums aren’t your customers, they’re your open source collaborators, and requesting that kind of access can put you and them at high risk.

    If they are paying customers (such as people who bought a premium service/product from you) then by all means, direct them to your official customer support system. But in all other cases, you need to help them here on the forums.

    Thankfully are other ways to get information you need:

    You get the idea.

    We know volunteer support is not easy, and this guideline can feel needlessly restrictive. It’s actually there to protect you as much as end users. Should their site be hacked or have any issues after you accessed it, you could be held legally liable for damages. In addition, it’s difficult for end users to know the difference between helpful developers and people with malicious intentions. Because of that, we rely on plugin developers and long-standing volunteers (like you) to help us and uphold this particular guideline.

    When you help users here and in public, you also help the next person with the same problem. They’ll be able to read the debugging and solution and educate themselves.

    Plugin Support Team Brainstorm Force

    (@brainstormteam)

    Apologies, if it felt we were asking for the login details. @sterndata

    @mvandemar Could you please open a ticket with us from here so that we can have a closer look?

    Looking forward to hearing from you.

    Plugin Support Team Brainstorm Force

    (@brainstormteam)

    Hello @mvandemar ,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Intermittent 404 error: ultimate-addons-for-gutenberg/dist/index.js.map’ is closed to new replies.