Camen Design Forum

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



I have a local NNF install working fine inside MAMP. After uploading everything to the remote server I received two errors at the same time.

_Warning: DOMDocument::loadXML(): Namespace prefix gcse on search is not defined in Entity, line: 86 in /home/public/lib/domtemplate/domtemplate.php on line 54:_

[GCSE = Google Custom Search Engine)

After searching I found that —-> *<gcse:search></gcse:search>*

could be modified into —-> *<div class="gcse-search"></div>*

So this first error is solved.

_Warning: Invalid argument supplied for foreach() in /home/public/lib/domtemplate/domtemplate.php on line 449._

The local install with MAMP (PHP 7.0) is ok without errors.
The remote server (PHP 5.5/5.6/7.0) is always throwing that error, except for the main index forum page.

What should I check at this point?

Thank you.


(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