Camen Design Forum


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

To delete this post you must be either the original author or a designated moderator.
The content of the post will be removed but the name and date will remain.

  • The post will be removed completely from the thread, rather than blanked
  • Only posts on the last page of the thread can be removed completely (so as to not break permalinks)

RE[2]: PHP problem in "/home/public/lib/domtemplate/domtemplate.php on line 449"


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:

(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:') +
'//' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);

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.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn