Camen Design Forum

PHP problem in "/home/public/lib/domtemplate/domtemplate.php on line 449"

Darrell

I have modified the 'themes/custom/index.html /delete.html /etc…' templates to include the code for 'Google Custom Search' functionality, this is the code to copy/paste from Google:

<script>
(function() {
var cx = 'XXXXXXXXXXXXXXXXXXXXX:cikuiphys-4';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>

That code is pasted only in .html files inside the 'themes/custom/' folder. Right now the first warning is resolved changing '<gcse:search></gcse:search>' into '<div class="gcse-search"></div>'.

Still remains the second warning but *only in the remote server*, when browsing locally through MAMP it is ok.

Append

(Leave this as-is, it’s a trap!)

Only the original author or a moderator can append to this post.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn