Camen Design Forum

Delete

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

To delete this thread, and all replies to it, you must be either the original author or a designated moderator.

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

Darrell

Hello,

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.

01.
_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.

02.
_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.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn