DOM extension error

Possible error messages
Undefined property: DOMAttr::$name in libraries/smartslider3/src/Framework/Sanitize.php
Typed property DOMAttr::$name must not be accessed before initialization
Cause

This problem happens, when there is something wrong with the server's DOM extension. You should contact your server host and ask them to resolve this issue for you! The following test can help debugging the issue:

Test

Create a PHP file called  test.php with this code in it:

<?php
$dom = new DOMDocument();
$dom->loadHTML('<?xml encoding="utf-8" ?><!DOCTYPE html><html lang="en"><body></body></html>');

echo '<pre>';
print_r($dom->getElementsByTagname('html')->item(0)->attributes->item(0));
echo '</pre>';

and upload it to your FTP. Then take a look at it's result within your browser:

https://yourwebsite.com/test.php

On a properly configured server, you would see a  DOMAttr object, which means, that all the variables you see in the DOMAttr class, should be found in your result too.

The error your server has is, that some values will be missing for you for some reason, like the files of the server's DOM extension are corrupted.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.