dashed-slug.net › Forums › General discussion › error in page source
Tagged: script error
- This topic has 5 replies, 2 voices, and was last updated 6 years, 5 months ago by
alexg.
-
AuthorPosts
-
March 7, 2018 at 2:34 pm #2554
Anonymous
InactiveHey Alexg,
Hope you doing good. I found one error in page source, how do i sort it out? following is the error
/* <![CDATA[ */ var wallets_ko_i18n = {"op_failed":"Wallet operation failed due to an unexpected error","op_failed_msg":"Wallet operation failed: %s","contact_fail":"Could not contact server. Status: %s Error: %s","invalid_add":"Check to see if you have typed the address correctly!","deposit":"deposit","withdraw":"withdraw","move":"transfer","unconfirmed":"unconfirmed","pending":"pending","done":"done","failed":"failed","cancelled":"cancelled","submit_tx":"Successfully submitted a transaction request of %s %s. Please check your e-mail for confirmation instructions.","submit_wd":"Successfully submitted a withdrawal request of %s %s to %s. Please check your e-mail for confirmation instructions."}; var walletsUserData = {"baseSymbol":"USD","pollIntervalCoinInfo":"5","pollIntervalTransactions":"5"}; /* ]]> */
March 8, 2018 at 10:01 am #2562alexg
KeymasterHello,
This does not look like an error.
This is some data that the PHP backend passes to the frontend JavaScript code. The mechanism used is
wp_localize_script()
which is a WordPress function used to attach custom data to scripts. See more here: https://codex.wordpress.org/Function_Reference/wp_localize_scriptHowever the data you show me seems to be HTML-escaped. I do not know why you see this data escaped.When I inspect a page using Firefox I get this:EDIT: Correction, your data is not escaped, it looks good. I was looking at a copy of your message in my email where it was HTML-escaped.
/*
1. Do you get an error in your JavaScript console?
2. Which browser and version are you using?March 8, 2018 at 3:57 pm #2564Anonymous
InactiveHey Alex
Check justclam.com … probably you may need to register .. as script loads in wallet page only… and also your suggestion if any, would be appreciated.
Thanks
March 9, 2018 at 10:11 am #2569alexg
KeymasterHello,
The code you mentioned above is correct and does not cause any problem as far as I can tell.
You have another error in your JavaScript console, coming from a file titled
clamlive.js
:TypeError: wrapper is null clamlive.js:8:2
kind regards
March 9, 2018 at 1:15 pm #2578Anonymous
InactiveThanks Alex,
I have seen this clamlive.js error .. it shows up once in a while and i have no idea to get it fixed…
March 12, 2018 at 11:02 am #2584alexg
KeymasterHello,
You could try contacting the developer of that code.
regards
-
AuthorPosts
- You must be logged in to reply to this topic.