Home Forums WoodMart support forum Script in the header breakes the site

Script in the header breakes the site

Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #614085

    senka.rankovic
    Participant

    Hello,
    I have some scripts for tracking and consent mode in the header. They were working fine but since the update site doesn’t work with them. Also I’ve tried to send them to you, but it wouldn’t allow it. I’m sending you print screen and the file for you to see the scripts.
    Thank you

    Attachments:
    You must be logged in to view attached files.
    #614089

    senka.rankovic
    Participant

    I will try with pdf

    Attachments:
    You must be logged in to view attached files.
    #614162

    Artem Temos
    Keymaster
    Xtemos team

    Hello,

    Thank you so much for contacting our support center.

    To better assist you, could you kindly test the functionality with default WordPress themes such as TwentyTwenty or WooCommerce Storefront? This will help us determine whether the issue stems from our theme or elsewhere.

    Regards

    #614249

    senka.rankovic
    Participant

    It seems to have issues with Woodmart theme, I’ve tested with Storefront and there is no issues. But have in mind that most of the functionalities come from Woodmart, like menus and layouts. When I test with woodmart the images, cart and sticky menu doesn’t load.

    #614258

    Artem Temos
    Keymaster
    Xtemos team

    In this case, you need to check why Wordfence plugin blocks this particular request. If you can’t find the reason in the plugin’s logs, contact the plugin’s developers for instructions.

    #614266

    senka.rankovic
    Participant

    I’m not sure I understand.
    When I copy these scripts to woodmart theme header directly, without plugin, it’ the same problem.
    And your plugin blocked the scripts when I tryed to send them to you. I’m not sure what is the problem, because scripts worked before without issues.

    #614326

    Artem Temos
    Keymaster
    Xtemos team

    Oh, sorry. I thought that you sent a screenshot from your website.

    Could you please clarify how can we test if the scripts work or not on your website? We need your admin access and the ability to switch between themes to see how our theme influences this issue.

    #614350

    senka.rankovic
    Participant

    Ok,
    Because it is a live webshop you need to use plugins for testing
    I use plugin Health Check & Troubleshooting for testing and WP Headers And Footers for the screepts.
    At the moment WP Headers And Footers is turned off because site doesn’t work otherwise, you can turn it on before testing.
    I’m sending you details for admin accsess

    #614360

    Artem Temos
    Keymaster
    Xtemos team

    OK, but we also need instructions from you on how to verify if the code works or not.

    #614384

    senka.rankovic
    Participant

    Before testing turn on Headers and Footers plugin, all the scripts are already there.
    With Health Check & Troubleshooting plugin in troubleshooting mode you can turn on and off all the plugins and themes. It’s just for you, site works for outside users. You choose what theme you want and what plugins, but when you turn on Headers and footers plugin site doesn’t work, when you turn it off it works. It’s the same when I put scripts in the header of the theme I just use the plugin so I could turn it of and my site could work.
    When you finish testing just disable troubleshooting mode in the plugin

    #614409

    Artem Temos
    Keymaster
    Xtemos team

    Sorry, but we can’t enter your website at the moment and get the following error https://gyazo.com/9dced4376645287d9c6e1c266d5c9079

    #614422

    senka.rankovic
    Participant

    I’m sorry, our server is locked for some countries, it could be the reason.
    Could you consult with your colleague Hung Pham or Aizaz Imtiaz Awan, they’ve accessed it so far.
    Thank you

    #614516

    Artem Temos
    Keymaster
    Xtemos team

    I need to check by myself. Could you please unlock other countries temporarily?

    #614568

    senka.rankovic
    Participant

    I’m not in a position to do that, could you try with vpn?
    From which country are you accessing?

    #614616

    Artem Temos
    Keymaster
    Xtemos team

    In this case, please create a staging website where we can access it and do the tests. I’m trying to access it from Poland.

    #614955

    senka.rankovic
    Participant

    Hello,
    The Poland is now unlocked, please try to login now.

    #614968

    Artem Temos
    Keymaster
    Xtemos team

    Thank you. Now, when we activate the troubleshooting mode, we can’t activate the Header & Footer plugin as per your instructions. Here is a screenshot https://gyazo.com/6eaf4bdcb3427283a13cf76ecd0013de

    #614971

    senka.rankovic
    Participant

    You have to activate Headers and footers first, then Troubleshoot in Health and Troubleshoot.
    I’m sending screenshots of first and second step

    Attachments:
    You must be logged in to view attached files.
    #614975

    Artem Temos
    Keymaster
    Xtemos team

    OK, now we activated the plugin. But we don’t see any issues with your website. Could you please clarify what happens when the plugin is activated?

    #614982

    senka.rankovic
    Participant

    When you activated plugin all other plugins and themes are disabled. Turn them off and on for testing as you like, and to see resaults you need to right click hotspotpro home icon from the plugin screen and open in a new window.
    For testing try to hover menu items in sticky menu, and try testing cart.
    I’m sending you print screens of the steps.

    Attachments:
    You must be logged in to view attached files.
    #615000

    Artem Temos
    Keymaster
    Xtemos team

    When the plugin is enabled, these scripts cause a lot of JS errors breaking most of JS scripts on your website. It doesn’t matter which theme is installed. You can check this yourself by opening the browser console. Here is a screenshot https://gyazo.com/121966c87ddfdb550f0635c2a707654f

    #615011

    senka.rankovic
    Participant

    I’m sorry, I’m not a developer, so I don’t understand this. I just know my site worked before, now it doesn’t

    #615016

    Artem Temos
    Keymaster
    Xtemos team

    We checked with other themes and see that the code you added to your website contains errors and since it happens with other themes it is not related to the theme itself. You need to check your code but we can’t say exactly what is wrong with that. It is out of our theme support scope.

    #615296

    senka.rankovic
    Participant

    Thank you, I understand.

    #615410

    Artem Temos
    Keymaster
    Xtemos team

    You are welcome. Feel free to contact us if you have any further questions.

Viewing 25 posts - 1 through 25 (of 25 total)

The topic ‘Script in the header breakes the site’ is closed to new replies.