"Invalid color value provided to Reftagger. Must be in hex format."

Page 1 of 1 (6 items)
This post has 5 Replies | 1 Follower

Posts 56
John Percival | Forum Activity | Posted: Fri, Jul 8 2022 5:20 AM

Hello,

I am seeing an error in my browser console:

Invalid color value provided to Reftagger. Must be in hex format.

Here is my JS code:

	var refTagger = {
		settings: {
			bibleVersion: "NIV",			
			roundCorners: true,
			socialSharing: ["google"],
			tagChapters: true,
			noSearchClassNames: ["grade"],
			customStyle : {
				heading: {
					backgroundColor : "#91AB1D",
					color : "#000000"
				},
				body   : {
					color : "#000000"
				}
			}
		}
	};
	(function(d, t) {
		var n=d.querySelector("[nonce]");
		refTagger.settings.nonce = n && (n.nonce||n.getAttribute("nonce"));
		var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
		g.src = "https://api.reftagger.com/v2/RefTagger.js";
		g.nonce = refTagger.settings.nonce;
		s.parentNode.insertBefore(g, s);
	}(document, "script"));

Any idea what's causing that error? Thanks

Posts 36346
Forum MVP
MJ. Smith | Forum Activity | Replied: Sat, Jul 16 2022 4:04 PM

weekly bump to give the post visibility and, hopefully, an answer 2

Orthodox Bishop Hilarion Alfeyev: "To be a theologian means to have experience of a personal encounter with God through prayer and worship."

Posts 67
LogosEmployee
Ali Pope | Forum Activity | Replied: Tue, Aug 2 2022 8:01 AM

Hi John, we apologize for the issue you are experiencing.

It is possible that the error message was prompted by an invalid option from your settings. Can you please reach out to us at support@faithlife.com so we can take a closer look at this. 

Thanks in advance!

Ali Pope | Associate Program Manager

Posts 56
John Percival | Forum Activity | Replied: Tue, Aug 16 2022 8:12 AM

Hi Alli, thanks for the message. It's been a couple of weeks since I sent in the email - any chance you could see how it's getting on please? Thanks!

Posts 67
LogosEmployee
Ali Pope | Forum Activity | Replied: Tue, Aug 16 2022 6:56 PM

Hi John. Based on what we can see, you must have provided an invalid option for the custom color. The error indicates it should be in hex format, so you will need to fix this input. This should be a setting that you set. 

Ali Pope | Associate Program Manager

Posts 56
John Percival | Forum Activity | Replied: Tue, Aug 16 2022 9:14 PM

Thanks Ali, you can see my JS code above. It was generated by the reftagger customisation form on the site.

 I can't see any invalid hex codes in the colours. Can you be any more specific?

Page 1 of 1 (6 items) | RSS