NameSilo

What could this be...

Spaceship Spaceship
Watch

Snoopy

Established Member
Impact
0
What could this cuasing the error at 123Redirect.com - anyone good at PHP that can explain it to a none programmer :)

Error message: Warning: domdocument() expects at least 1 parameter, 0 given in /home/redirect/public_html/php/classes/proxy.class.php on line 112
 
Last edited:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
What it looks like to me is that the function domdocument() is expecting some value to be passed to it for it process.

If you were to open /home/redirect/public_html/php/classes/proxy.class.php and go to line 112 you may see something like this:

function domdocument($SomeVariableHere) {
Whatever this function does goes here and $SomeVariableHere is used in performing the function
}

Simply its saying that $SomeVariableHere isnt being defined when the function is being called and its spitting out an error.

Thats what I think anyway, it may not be that at all..
 
0
•••
If you could post the domdocument function, and also line 112 (if they are not the same), we could help.

However, its only a warning, so try turning off warnings in PHP.ini
 
0
•••
Mikor said:
However, its only a warning, so try turning off warnings in PHP.ini

Thats not a very wise thing to do, as the function is not getting any parameters the expected outcome will most likely not happen.
 
0
•••
enclosed code..

Please find enclosed code:

Line 112 is "$this->dom = new domDocument;" , if I put new and domDocument together I receive no error, just a blank page....



}
$this->dom = new domDocument;
@$this->dom->loadHTML($this->data);
foreach ($this->dom->getElementsByTagName('body') as $node) {
$this->parseNode($node, $exclude);
$object = $this->dom->createElement('div');
ob_start();
include 'php/includes/urlForm.inc.php';
$content = ob_get_clean();
$object->nodeValue = '{URL_FORM}';
$references = $node->getElementsByTagName('*');
$i = 0;
foreach ($references as $reference) {
if (!$i) {
$node->insertBefore($object, $reference);
}
 
0
•••
0
•••
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back