js Artifact Left in Newspaper Theme from Past Plugin

Posted in: Newspaper
Post count: 13

An artifact of java script code appears to be fixed in the Newspaper theme from two versions back. The code is associated with a 123ContactForm plugin that has been abandoned and removed from the Theme. It is generating an error message and image that are unneeded. An example of the error is seen at:
http://lagoonpondassoc.org/newspaper/our-home-on-lagoon-pond/
while the same html code with the java script removed is at :
http://lagoonpondassoc.org/test/default.html
The code in question is:
<script type=”text/javascript”>var servicedomain=”www.123contactform.com”;
var frmRef=”;
try { frmRef=window.top.location.href; }
catch(err) {};
var cfJsHost = ((“https:” == document.location.protocol) ? “https://&#8221; : “http://&#8221;);
document.write(unescape(“%3Cscript src='” + cfJsHost + servicedomain + “/includes/easyXDM.min.js’ type=’text/javascript’%3E%3C/script%3E”));
frmRef=encodeURIComponent(frmRef).replace(‘%26′,'[%ANDCHAR%]’);
document.write(unescape(“%3Cscript src='” + cfJsHost + servicedomain + “/jsform-1692025.js?ref=”+frmRef+”‘ type=’text/javascript’%3E%3C/script%3E”));
</script>

Where in the theme would this be stored and how can I repair the Newspaper theme? Any help will be appreciated; it is driving me nuts!

Post count: 9544

Theme doesn’t store third party plugin data; the WordPress database does.

You can try cleaning your dbase with wp-optimize plugin, which I use.

You can also resave permalinks, clear any cache plugin, reset CDN if used.

Check the support forum for that plugin to see if others have similar issue.

https://wordpress.org/plugins/123contactform-for-wordpress/

Post count: 13

Chris,
Thank you. The problem is now solved. Basically, it came about by having too many people in the code base at once and not posting their intent. The code was debugging code that was entered custom javascript code and then forgotten by the original author. That is our problem, maybe our big problem.
Regards,
Bob

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.