• Resolved firmolari

    (@firmolari)


    Hello,

    I have a very strange behaviour in my website. I have upgraded from v8.2.4 to v8.4.5 (when moving to v6.1.1) and the icons in my local site (localhost) doesn’t show the icons (only the squares and colors). But, this works in the public server. You can see the difference in the image below.

    https://postimg.cc/64ZyHrgh

    I also tried to check the code and here you are the difference. It seems that in the Internet version, a code is being added to place the icon:

    https://postimg.cc/8f4bCVk3

    I can confirm that both codes are exactly the same (Internet version and localhost one) and also the configuration.

    If I rollback to the previous version (8.2.4) I can also see the icons, so it is something new what has been added that is not able to be executed in my localhost installation. Could you help me to figure out what is happening?

    Thanks in advance and best regards.

    • This topic was modified 1 year, 2 months ago by firmolari.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor ShareThis

    (@sharethis)

    Hi @firmolari,

    Thanks for documenting all these screenshots and code, we appreciate the time taken.

    We have seen this happening with some local environments, do you mind telling us if you are using a Docker container? Or are you running your own local server and manually setting up your WordPress instance?

    It seems the resources for the SVGs (icons) aren’t being called by the local server, that’s why you seen the empty span tag.

    Looking forward to your reply so we can continue documenting this!

    Best,

    – The ShareThis Technical Support team.

    Thread Starter firmolari

    (@firmolari)

    Yes, my local instance is a installation from scratch: Apache 2.4 + PHP v7.4.4 + MySQL 8.0. On top of that I installed (WordPress) and upgrade any version or plug-in using the WordPress administration tool.

    Maybe the problem is how the SVG are loaded, or if there is some scripts that needs to be invoked and it is not doing it properly.

    Plugin Contributor ShareThis

    (@sharethis)

    Understood @firmolari, thank you for the additional details. I have asked our engineers about this, however, I would like to know more about the WordPress environment you have set up.
    Can you tell us the directory in which is located -without any personal information-, is it any different from other WP installations you have done before?

    Thread Starter firmolari

    (@firmolari)

    No, it is not an special set up. I use to have my SVN repository, so it’s placed in: C:\02.CODE\recetario\trunk (as you can see, it’s in a Windows laptop)
    In that folder, you can find any files and folders, including:
    – wp-admin
    – wp-content
    – wp-includes
    The full path to the Simple Share Buttons Adder Plugin is:
    C:\02.CODE\recetario\trunk\wp-content\plugins\simple-share-buttons-adder

    Thread Starter firmolari

    (@firmolari)

    Any output about this topic? I’ve tried to figure out where the problem could be, but I have not idea what could be happening 🙁

    Plugin Contributor ShareThis

    (@sharethis)

    Hello @firmolari,

    I apologize we haven’t updated you on this.

    This issue is still under investigation and we don’t have a fix for this yet, it seems like there’s something blocking or caching the SVG of the icons from loading.

    We will let you know once we have an update on this or if we need more information that you can provide to us – if that’s okay with you!

    Thank you for your patience,
    – The ShareThis Technical Support team.

    Thread Starter firmolari

    (@firmolari)

    Thanks!!! OK. If you need something on my side like testing in my environment, just let me know 😉

    Thread Starter firmolari

    (@firmolari)

    Hi, it’s a long time since I opened this issue, and even after installing new a version, it seems that the problem in local installation continues. Do you have any hint why it is happening? Do you need any test I should do in my side to provide you more feedback?

    Thanks!

    Thread Starter firmolari

    (@firmolari)

    Hi team, I think I found the solution. It seems it was the delimiter in the path. In windows, ‘/’ or ‘\’ are valid, in the path, but when trying to replace, that’s another story.

    The problem is in Buttons::get_button_image function.

    In your code, you have:

    $path = str_replace( '/php', '', plugin_dir_path(FILE));

    To solve the problem (at least in my case, but I think that for any environment), you should replace that line with the following one:

    $path = preg_replace( '#[\\\/]php#', '', plugin_dir_path(FILE));

    The line about take into account ‘\php’ and ‘/php’ values. Using that line you will solve the issue.

    Please, could you validate it and include in the next plugin update?

    Thanks so much in advance.

    Plugin Contributor ShareThis

    (@sharethis)

    Hi @firmolari,

    Sorry for the late response.

    Thank you very much for the update on this, we really appreciate it when Publishers help us make the tools better!

    We have shared your detailed explanation and solution with our engineering team so they can fix this issue in future updates.

    Again, we are very thankful for the time taken to look deeper into this and share it with us, @firmolari.

    Best,

    – The ShareThis Technical Support team.

    Plugin Contributor ShareThis

    (@sharethis)

    Hello @firmolari,

    We are happy to announce that version 8.4.8 of the Simple Share Buttons Adder plugin has been released, which fixes this issue with the missing icons.

    Thank you so much for your support and help in this.

    Sincerely,

    -The ShareThis Technical Support team.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Icons don’t appear in localhost since upgrade to latest version’ is closed to new replies.