NameSilo

What could this be...

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
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
Close
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
Close
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
Close
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back