Error
Class "DOMDocument" not found Error thrown with message "Class "DOMDocument" not found" Stacktrace: #12 Error in /home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_medias.php:76 #11 walt_get_media in /home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/parts/sections/header.php:27 #10 require in /home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php:33 #9 walt_template_part in /home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php:57 #8 get_custom_part in /home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php:94 #7 get_section_part in /home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/header.php:60 #6 require_once in /home/eyth6418/public_html/prod/paltini/wp-includes/template.php:880 #5 load_template in /home/eyth6418/public_html/prod/paltini/wp-includes/template.php:815 #4 locate_template in /home/eyth6418/public_html/prod/paltini/wp-includes/general-template.php:48 #3 get_header in /home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/template-contact.php:27 #2 include in /home/eyth6418/public_html/prod/paltini/wp-includes/template-loader.php:132 #1 require_once in /home/eyth6418/public_html/prod/paltini/wp-blog-header.php:19 #0 require in /home/eyth6418/public_html/prod/paltini/index.php:17
Stack frames (13)
12
Error
…/app/theme/theme_medias.php76
11
walt_get_media
…/parts/sections/header.php27
10
require
…/app/theme/theme_parts.php33
9
walt_template_part
…/app/theme/theme_parts.php57
8
get_custom_part
…/app/theme/theme_parts.php94
7
get_section_part
…/header.php60
6
require_once
/home/eyth6418/public_html/prod/paltini/wp-includes/template.php880
5
load_template
/home/eyth6418/public_html/prod/paltini/wp-includes/template.php815
4
locate_template
/home/eyth6418/public_html/prod/paltini/wp-includes/general-template.php48
3
get_header
…/template-contact.php27
2
include
/home/eyth6418/public_html/prod/paltini/wp-includes/template-loader.php132
1
require_once
/home/eyth6418/public_html/prod/paltini/wp-blog-header.php19
0
require
/home/eyth6418/public_html/prod/paltini/index.php17
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_medias.php
            $size = '2048x2048';
        }
    }

    $html  = '';

    //SUPPORT GIF
    $mime = get_post_mime_type($attachment_id);
    if (strpos($mime, 'gif') !== false) {
        $size = 'full';
    }

    $image = wp_get_attachment_image_src($attachment_id, $size, $icon);

    if ($image) {
        if (strpos($mime, 'svg') !== false) {
            $html = file_get_contents(get_attached_file($attachment_id));
            $alt = trim(strip_tags(get_post_meta($attachment_id, '_wp_attachment_image_alt', true)));

            $dom = new DOMDocument;
            $dom->loadXML($html);
            $nodes = $dom->getElementsByTagName('svg');
            $title = $dom->createElement('title', $alt);
            $firstSibling = $nodes[0]->firstChild;
            $nodes[0]->insertBefore($title, $firstSibling);

            if ($icon) {
                $nodes[0]->setAttribute('role', 'icon');
            } else {
                $nodes[0]->setAttribute('role', 'img');
            }

            if ($attr) {
                foreach ($attr as $name => $value) {
                    $nodes[0]->setAttribute($name, $value);
                }
            }

            $xpath = new DOMXPath($dom);
            $matching_elements = $xpath->query("//*[contains(@class, 'st')]");
Arguments
  1. "Class "DOMDocument" not found"
    
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/parts/sections/header.php
$drawer_id = uniqid();
 
 
?>
 
 
<header is="walt-main-header" id="header" class="site_header <?= $show_anbar ? 'an_bar' : '' ?>" role="banner">
 
    <!-- Announcement bar -->
    <div class="block bg-[var(--section-bg-color)]">
        <?= $announce_bar ?>
        <div class="wrapper">
            <div class="header-container">
 
                <!-- Logo -->
 
                <div class="header-logo">
                    <a href="<?= get_home_url() ?>">
                        <?php if ($top['logos']['main']['id']) {
                            echo walt_get_media($top['logos']['main']['id'], 'medium', '', ['class' => 'logo-desktop']);
                        } ?>
                        <?php if ($top['logos']['minified']['id']) {
                            echo walt_get_media($top['logos']['minified']['id'], 'medium', '', ['class' => 'logo-desktop-minified']);
                        } ?>
                        <?php if ($top['logos']['responsive']['id']) {
                            echo walt_get_media($top['logos']['responsive']['id'], 'medium', '', ['class' => 'logo-responsive']);
                        } ?>
                    </a>
                </div>
 
                <!-- Navigation -->
 
                <div class="header-navigation">
 
                    <div class="header-desktop">
                        <walt-modal-open modal-id="search-modal" class="search-toggle">
                            <i class="fa-sharp fa-solid fa-magnifying-glass"></i>
                        </walt-modal-open>
                        <?= get_component_part('menu/main-menu') ?>
                    </div>
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php
                $cache_args[$key] = $value;
            } else if (is_object($value) && method_exists($value, 'get_id')) {
                $cache_args[$key] = call_user_method('get_id', $value);
            }
        }
        if (($cache = wp_cache_get($file, serialize($cache_args))) !== false) {
            if (!empty($template_args['return']))
                return $cache;
            echo $cache;
            return;
        }
    }
    $file_handle = $file;
    do_action('start_operation', 'hm_template_part::' . $file_handle);
    if (file_exists(get_stylesheet_directory() . '/' . $file . '.php'))
        $file = get_stylesheet_directory() . '/' . $file . '.php';
    elseif (file_exists(get_template_directory() . '/' . $file . '.php'))
        $file = get_template_directory() . '/' . $file . '.php';
    ob_start();
    $return = require($file);
    $data = ob_get_clean();
    do_action('end_operation', 'hm_template_part::' . $file_handle);
    if ($cache_args) {
        wp_cache_set($file, $data, serialize($cache_args), 3600);
    }
    if (!empty($template_args['return']))
        if ($return === false)
            return false;
        else
            return $data;
    echo $data;
}
 
// =============================================================================
//         GET CUSTOM PART
// =============================================================================
function get_custom_part($path_part, $params = [])
{
 
    $path = get_template_directory() . '/parts/';
Arguments
  1. "/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/parts/sections/header.php"
    
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php
    }
    if (!empty($template_args['return']))
        if ($return === false)
            return false;
        else
            return $data;
    echo $data;
}
 
// =============================================================================
//         GET CUSTOM PART
// =============================================================================
function get_custom_part($path_part, $params = [])
{
 
    $path = get_template_directory() . '/parts/';
    $path .= $path_part;
 
    if (file_exists($path)) {
        $template = walt_template_part($path, [
            'params' => $params,
            'return' => true
        ]);
        return $template;
    }
 
    return false;
}
 
 
 
// =============================================================================
//         CUSTOM PART COMPONENT CALL
// =============================================================================
 
function get_component_part($component, $params = [])
{
 
    $path = 'components/' . $component . '.php';
 
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/app/theme/theme_parts.php
 
    $path = 'components/' . $component . '.php';
 
    return get_custom_part($path, $params);
}
 
 
// =============================================================================
//         CUSTOM PART SECTION CALL
// =============================================================================
 
 
function get_section_part($section, $params = [])
{
 
    $path = 'sections/' . $section . '.php';
 
    //wrapper template section
 
    return get_custom_part($path, $params);
}
 
// =============================================================================
//         CUSTOM CARD PART
// =============================================================================
 
function get_card_part($post_type, $params = [])
{
 
    $path = 'cards/card-' . $post_type . '.php';
 
    return get_custom_part($path, $params);
}
 
// =============================================================================
//         CUSTOM ARCHIVE PART
// =============================================================================
 
function get_archive_part($post_type, $params = [])
{
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/header.php
    $wishlist_popup_add = get_field('wishlist_popup_add', 'option');
    $wishlist_popup_delete = get_field('wishlist_popup_delete', 'option');
    ?>
 
    <script>
        window.WISHLIST_MODAL_TEXTS = {
            ADD_TITLE: "<?= $wishlist_popup_add['title'] ? $wishlist_popup_add['title'] : ' ' ?>",
            ADD_TEXT: "<?= $wishlist_popup_add['text'] ? $wishlist_popup_add['text'] : ' ' ?>",
            DELETE_TITLE: "<?= $wishlist_popup_delete['title'] ? $wishlist_popup_delete['title'] : ' ' ?>",
            DELETE_TEXT: "<?= $wishlist_popup_delete['text'] ? $wishlist_popup_delete['text'] : ' ' ?>",
        }
    </script>
 
</head>
 
<body <?php body_class(); ?>>
 
    <div id="page" class="<?= is_mobile() ? 'mobile' : 'desktop' ?>">
 
        <?= get_section_part('header', []); ?>
 
        <div id="content" class="site_content">
 
/home/eyth6418/public_html/prod/paltini/wp-includes/template.php
        extract( $wp_query->query_vars, EXTR_SKIP );
    }
 
    if ( isset( $s ) ) {
        $s = esc_attr( $s ); // @phpstan-ignore variable.undefined (It's extracted from query vars.)
    }
 
    /**
     * Fires before a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $load_once      Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_before_load_template', $_template_file, $load_once, $args );
 
    if ( $load_once ) {
        require_once $_template_file;
    } else {
        require $_template_file;
    }
 
    /**
     * Fires after a template file is loaded.
     *
     * @since 6.1.0
     *
     * @param string $_template_file The full path to the template file.
     * @param bool   $load_once      Whether to require_once or require.
     * @param array  $args           Additional arguments passed to the template.
     */
    do_action( 'wp_after_load_template', $_template_file, $load_once, $args );
}
 
/**
 * Checks whether the template should be output buffered for enhancement.
 *
 * By default, an output buffer is only started if a {@see 'wp_template_enhancement_output_buffer'} filter has been
Arguments
  1. "/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/header.php"
    
/home/eyth6418/public_html/prod/paltini/wp-includes/template.php
            continue;
        }
        if ( file_exists( $wp_stylesheet_path . '/' . $template_name ) ) {
            $candidate = $wp_stylesheet_path . '/' . $template_name;
        } elseif ( $is_child_theme && file_exists( $wp_template_path . '/' . $template_name ) ) {
            $candidate = $wp_template_path . '/' . $template_name;
        } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $template_name ) ) {
            $candidate = ABSPATH . WPINC . '/theme-compat/' . $template_name;
        } else {
            continue;
        }
 
        if ( _wp_is_template_path_allowed( $candidate ) ) {
            $located = $candidate;
            break;
        }
    }
 
    if ( $load && '' !== $located ) {
        load_template( $located, $load_once, $args );
    }
 
    return $located;
}
 
/**
 * Requires the template file with WordPress environment.
 *
 * The globals are set up for the template file to ensure that the WordPress
 * environment is available from within the function. The query variables are
 * also available.
 *
 * @since 1.5.0
 * @since 5.5.0 The `$args` parameter was added.
 *
 * @global array      $posts
 * @global WP_Post    $post          Global post object.
 * @global bool       $wp_did_header
 * @global WP_Query   $wp_query      WordPress Query object.
 * @global WP_Rewrite $wp_rewrite    WordPress rewrite component.
/home/eyth6418/public_html/prod/paltini/wp-includes/general-template.php
     * Fires before the header template file is loaded.
     *
     * @since 2.1.0
     * @since 2.8.0 The `$name` parameter was added.
     * @since 5.5.0 The `$args` parameter was added.
     *
     * @param string|null $name Name of the specific header file to use. Null for the default header.
     * @param array       $args Additional arguments passed to the header template.
     */
    do_action( 'get_header', $name, $args );
 
    $templates = array();
    $name      = (string) $name;
    if ( '' !== $name ) {
        $templates[] = "header-{$name}.php";
    }
 
    $templates[] = 'header.php';
 
    if ( ! locate_template( $templates, true, true, $args ) ) {
        return false;
    }
}
 
/**
 * Loads footer template.
 *
 * Includes the footer template for a theme or if a name is specified then a
 * specialized footer will be included.
 *
 * For the parameter, if the file is called "footer-special.php" then specify
 * "special".
 *
 * @since 1.5.0
 * @since 5.5.0 A return value was added.
 * @since 5.5.0 The `$args` parameter was added.
 *
 * @param string|null $name The name of the specialized footer. Default null.
 * @param array       $args Optional. Additional arguments passed to the footer template.
 *                          Default empty array.
/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/template-contact.php

// Galeries

$galeries_args = array('post_type' => 'galerie', 'fields' => 'ids', 'orderby' => 'name', 'order' => 'ASC', 'posts_per_page' => -1);
$galeries_ids = get_posts($galeries_args);

// GET

if (isset($_GET['g'])) {
    $queried_galerie = intval($_GET['g']);
} else {
    $queried_galerie = null;
}

?>


<!-- Header -->

<?php get_header(); ?>

<div id="container_page" class="container-contact-page">
    <div class="wrapper-default">

        <!-- Hero -->

        <div class="contact-page-hero">
            <div class="inner global-content">
                <?php if ($hero) {
                    echo $hero;
                } else {
                    echo '<h1>' . get_the_title() . '</h1>';
                } ?>
            </div>
        </div>

        <!-- Content -->

        <div class="contact-page-accordion">
            <?php if ($galeries_ids) : ?>
/home/eyth6418/public_html/prod/paltini/wp-includes/template-loader.php
     */
    $template   = apply_filters( 'template_include', $template );
    $is_stringy = is_string( $template ) || ( is_object( $template ) && method_exists( $template, '__toString' ) );
    $template   = $is_stringy ? realpath( (string) $template ) : null;
    if (
        is_string( $template ) &&
        ( str_ends_with( $template, '.php' ) || str_ends_with( $template, '.html' ) ) &&
        is_file( $template ) &&
        is_readable( $template )
    ) {
        /**
         * Fires immediately before including the template.
         *
         * @since 6.9.0
         *
         * @param string $template The path of the template about to be included.
         */
        do_action( 'wp_before_include_template', $template );
 
        include $template;
    } elseif ( current_user_can( 'switch_themes' ) ) {
        $theme = wp_get_theme();
        if ( $theme->errors() ) {
            wp_die( $theme->errors() );
        }
    }
    return;
}
 
Arguments
  1. "/home/eyth6418/public_html/prod/paltini/wp-content/themes/walt-wp-theme/template-contact.php"
    
/home/eyth6418/public_html/prod/paltini/wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // Load the WordPress library.
    require_once __DIR__ . '/wp-load.php';
 
    // Set up the WordPress query.
    wp();
 
    // Load the theme template.
    require_once ABSPATH . WPINC . '/template-loader.php';
 
}
 
Arguments
  1. "/home/eyth6418/public_html/prod/paltini/wp-includes/template-loader.php"
    
/home/eyth6418/public_html/prod/paltini/index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
 
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';
 
Arguments
  1. "/home/eyth6418/public_html/prod/paltini/wp-blog-header.php"
    

Environment & details:

Key Value
g
"757"
oeuvre
"Breeze"
sujet
"Une œuvre"
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE
"Apache"
REQUEST_URI
"/coordonnees-galeries-platini-contact/?g=757&oeuvre=Breeze&sujet=Une+%C5%93uvre"
PATH
"/usr/local/bin:/usr/bin:/bin"
TEMP
"/tmp"
TMP
"/tmp"
TMPDIR
"/tmp"
PWD
"/"
LSCAPI_CRIU_SYNC_FD
"7"
DOCUMENT_ROOT
"/home/eyth6418/public_html/prod/paltini"
HTTP_ACCEPT
"*/*"
CONTENT_LENGTH
"0"
HTTP_HOST
"www.galerie-platini.com"
HTTP_USER_AGENT
"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_X_COUNTRY_CODE
"US"
HTTP_X_AUTONOMOUS_SYSTEM
"16509"
HTTP_X_REAL_IP
"216.73.216.150"
HTTP_X_FORWARDED_PROTO
"https"
HTTP_X_FORWARDED_PORT
"443"
HTTP_X_SSL
"yes"
HTTP_X_HTTPS
"1"
REDIRECT_UNIQUE_ID
"atm5jvsXoN5hbQK8Kn7owQAAAUU"
REDIRECT_SCRIPT_URL
"/coordonnees-galeries-platini-contact/"
REDIRECT_SCRIPT_URI
"https://www.galerie-platini.com/coordonnees-galeries-platini-contact/"
REDIRECT_HTTP_AUTHORIZATION
""
REDIRECT_HTTPS
"on"
REDIRECT_SSL_TLS_SNI
"www.galerie-platini.com"
REDIRECT_STATUS
"200"
UNIQUE_ID
"atm5jvsXoN5hbQK8Kn7owQAAAUU"
SCRIPT_URL
"/coordonnees-galeries-platini-contact/"
SCRIPT_URI
"https://www.galerie-platini.com/coordonnees-galeries-platini-contact/"
HTTP_AUTHORIZATION
""
HTTPS
"on"
SSL_TLS_SNI
"www.galerie-platini.com"
SERVER_SIGNATURE
""
SERVER_NAME
"www.galerie-platini.com"
SERVER_ADDR
"109.234.165.231"
SERVER_PORT
"443"
REMOTE_ADDR
"216.73.216.150"
REQUEST_SCHEME
"https"
CONTEXT_PREFIX
""
CONTEXT_DOCUMENT_ROOT
"/home/eyth6418/public_html/prod/paltini"
SERVER_ADMIN
"webmaster@galerie-platinicom.eyth6418.odns.fr"
SCRIPT_FILENAME
"/home/eyth6418/public_html/prod/paltini/index.php"
REMOTE_PORT
"40020"
REDIRECT_URL
"/coordonnees-galeries-platini-contact/"
REDIRECT_QUERY_STRING
"g=757&oeuvre=Breeze&sujet=Une+%C5%93uvre"
SERVER_PROTOCOL
"HTTP/1.1"
REQUEST_METHOD
"GET"
QUERY_STRING
"g=757&oeuvre=Breeze&sujet=Une+%C5%93uvre"
SCRIPT_NAME
"/index.php"
PHP_SELF
"/index.php"
REQUEST_TIME_FLOAT
1792653710.5803
REQUEST_TIME
1792653710
empty
0. Whoops\Handler\PrettyPageHandler