• Hallo,

    ich hoste über github eine statische Twenty Twenty-Two Seite: https://thegreatgrayfunk.com/home/
    Seit einiger Zeit lässt sich in der mobilen Ansicht das Hamburger Menü nicht mehr öffnen.

    – Alle Plugins sind deaktiviert
    – Auf der lokalen Seite (unter localhost/… geöffnet mit dem Chrome-Entwicklertool für mobile Ansicht) funktioniert das Menü weiterhin normal.

    Vielen Dank für eure Hilfe!

    ` wp-core

    version: 6.6.2
    site_language: en_US
    user_language: en_US
    timezone: Europe/Vienna
    permalink: /%year%/%monthnum%/%day%/%postname%/
    https_status: false
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 2
    dotorg_communication: true wp-paths-sizes

    wordpress_path: C:\wamp64\www\tggfwordpress
    wordpress_size: 148.15 MB (155350302 bytes)
    uploads_path: C:\wamp64\www\tggfwordpress/wp-content/uploads
    uploads_size: 158.69 MB (166394333 bytes)
    themes_path: C:\wamp64\www\tggfwordpress/wp-content/themes
    themes_size: 9.38 MB (9830862 bytes)
    plugins_path: C:\wamp64\www\tggfwordpress/wp-content/plugins
    plugins_size: 61.39 MB (64375866 bytes)
    fonts_path: C:\wamp64\www\tggfwordpress/wp-content/uploads/fonts
    fonts_size: 20.29 KB (20776 bytes)
    database_size: 11.39 MB (11938805 bytes)
    total_size: 389.01 MB (407910944 bytes) wp-active-theme

    name: Twenty Twenty-Two (twentytwentytwo)
    version: 1.8
    author: the WordPress team
    author_website: https://wordpress.org/
    parent_theme: none
    theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, widgets-block-editor, block-templates, wp-block-styles, editor-style
    theme_path: C:\wamp64\www\tggfwordpress/wp-content/themes/twentytwentytwo
    auto_update: Disabled wp-themes-inactive (1)

    Twenty Twenty-Four: version: 1.2, author: the WordPress team, Auto-updates disabled wp-mu-plugins (2)

    changename.php: author: (undefined), version: (undefined)
    cook.php: author: (undefined), version: (undefined) wp-plugins-active (1)

    WP2Static: version: 6.6.7, author: Leon Stafford, Auto-updates disabled wp-plugins-inactive (8)

    All in One SEO: version: 4.7.3, author: All in One SEO Team, Auto-updates disabled
    Big File Uploads: version: 2.1.3, author: Infinite Uploads, Auto-updates disabled
    Complianz | GDPR/CCPA Cookie Consent: version: 7.1.0, author: Really Simple Plugins, Auto-updates disabled
    FooGallery: version: 2.4.22, author: FooPlugins, Auto-updates disabled
    Insert Pages: version: 3.8.1, author: Paul Ryan, Auto-updates disabled
    My Sticky Bar: version: 2.7.7, author: Premio, Auto-updates disabled
    Simply Static: version: 3.1.9, author: Patrick Posner, Auto-updates disabled
    Smash Balloon Instagram Feed: version: 6.5.1, author: Smash Balloon, Auto-updates disabled wp-media

    image_editor: WP_Image_Editor_GD
    imagick_module_version: Not available
    imagemagick_version: Not available
    imagick_version: Not available
    file_uploads: 1
    post_max_size: 8M
    upload_max_filesize: 2M
    max_effective_size: 2 MB
    max_file_uploads: 20
    gd_version: bundled (2.1.0 compatible)
    gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
    ghostscript_version: not available wp-server

    server_architecture: Windows NT 10.0 AMD64
    httpd_software: Apache/2.4.54 (Win64) PHP/8.0.26 mod_fcgid/2.3.10-dev
    php_version: 8.0.26 64bit
    php_sapi: apache2handler
    max_input_variables: 2500
    time_limit: 120
    memory_limit: 128M
    admin_memory_limit: 256M
    max_input_time: 60
    upload_max_filesize: 2M
    php_post_max_size: 8M
    curl_version: 7.76.1 OpenSSL/1.1.1s
    suhosin: false
    imagick_availability: false
    pretty_permalinks: true
    htaccess_extra_rules: true
    current: 2024-10-20T16:41:18+00:00
    utc-time: Sunday, 20-Oct-24 16:41:18 UTC
    server-time: 2024-10-20T18:41:16+02:00 wp-database

    extension: mysqli
    server_version: 8.0.31
    client_version: mysqlnd 8.0.26
    max_allowed_packet: 67108864
    max_connections: 151 wp-constants

    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: C:\wamp64\www\tggfwordpress/wp-content
    WP_PLUGIN_DIR: C:\wamp64\www\tggfwordpress/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: Undefined
    WP_DEVELOPMENT_MODE: undefined
    DB_CHARSET: utf8mb4
    DB_COLLATE: undefined wp-filesystem

    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    fonts: writable
    mu-plugins: writable

    Die Seite, für die ich Hilfe brauche: [Anmelden, um den Link zu sehen]

Ansicht von 11 Antworten – 1 bis 11 (von insgesamt 11)
  • Moderator threadi

    (@threadi)

    Du hostest die Seite scheinbar über github Pages. Das führt dazu, dass einige JavaScript-Dateien von deren Domain aus geladen werden sollen, was die meisten Browser aus Sicherheitsgründen jedoch nicht zulassen, da es eine völlig andere Domain ist (CORS).

    Schau mal im Backend unter Einstellungen > Allgemein, ob du dort deine Domain eingetragen hast oder die von github-Pages. Aus Sicht von WordPress müsste es deine Website sein. Wenn das bei github-Pages nicht geht, müsstest du sie woanders unterbringen.

    Thread-Starter tggf

    (@tggf)

    Vielen Dank für die Antwort!
    Die Domainänderungen unter Einstellungen > Allgemein helfen leider nicht weiter.
    Ich verstehe die Ursache aber jetzt besser. Folgende CORS requests werden geblockt:

    Moderator threadi

    (@threadi)

    Es sind ja interessanterweise nur einzelne URLs die die falsche Domain verwenden. Ich vermute sie stehen so in der Datenbank. Daher würde ich dir empfehlen mal mit dem Plugin Better Search & Replace in der Datenbank die alte durch die neue Domain ersetzen zu lassen. Nach Installation findest Du es unter Werkzeuge > Search and Replace. In dem Eingabefeld musst Du links die alte und rechts die neue Domain eintragen.

    Thread-Starter tggf

    (@tggf)

    Danke, habe Better Search & Replace ausgeführt und die URL wurde auch an fünf Stellen geändert.

    Laut der Chrome Entwicklertools Mobileansicht, werden nun die beiden CORS nicht mehr geblockt. Leider funktioniert das Menu weiterhin nicht. Zudem funktioniert es nun auch auf der lokalen Seite (unter localhost/… ) nicht mehr.

    ` wp-core

    version: 6.6.2
    site_language: en_US
    user_language: en_US
    timezone: Europe/Vienna
    permalink: /%postname%/
    https_status: false
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: production
    user_count: 2
    dotorg_communication: true wp-paths-sizes

    wordpress_path: C:\wamp64\www\tggfwordpress
    wordpress_size: 148.15 MB (155350302 bytes)
    uploads_path: C:\wamp64\www\tggfwordpress/wp-content/uploads
    uploads_size: 158.69 MB (166394333 bytes)
    themes_path: C:\wamp64\www\tggfwordpress/wp-content/themes
    themes_size: 9.38 MB (9830862 bytes)
    plugins_path: C:\wamp64\www\tggfwordpress/wp-content/plugins
    plugins_size: 61.39 MB (64375866 bytes)
    fonts_path: C:\wamp64\www\tggfwordpress/wp-content/uploads/fonts
    fonts_size: 20.29 KB (20776 bytes)
    database_size: 11.44 MB (11994041 bytes)
    total_size: 389.07 MB (407966180 bytes) wp-active-theme

    name: Twenty Twenty-Two (twentytwentytwo)
    version: 1.8
    author: the WordPress team
    author_website: https://wordpress.org/
    parent_theme: none
    theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, widgets-block-editor, block-templates, wp-block-styles, editor-style
    theme_path: C:\wamp64\www\tggfwordpress/wp-content/themes/twentytwentytwo
    auto_update: Disabled wp-themes-inactive (1)

    Twenty Twenty-Four: version: 1.2, author: the WordPress team, Auto-updates disabled wp-mu-plugins (2)

    changename.php: author: (undefined), version: (undefined)
    cook.php: author: (undefined), version: (undefined) wp-plugins-active (2)

    Better Search Replace: version: 1.4.7, author: WP Engine, Auto-updates disabled
    WP2Static: version: 6.6.7, author: Leon Stafford, Auto-updates disabled wp-plugins-inactive (8)

    All in One SEO: version: 4.7.3.1, author: All in One SEO Team, Auto-updates disabled
    Big File Uploads: version: 2.1.3, author: Infinite Uploads, Auto-updates disabled
    Complianz | GDPR/CCPA Cookie Consent: version: 7.1.0, author: Really Simple Plugins, Auto-updates disabled
    FooGallery: version: 2.4.22, author: FooPlugins, Auto-updates disabled
    Insert Pages: version: 3.8.1, author: Paul Ryan, Auto-updates disabled
    My Sticky Bar: version: 2.7.7, author: Premio, Auto-updates disabled
    Smash Balloon Instagram Feed: version: 6.5.1, author: Smash Balloon, Auto-updates disabled
    UpdraftPlus - Backup/Restore: version: 1.24.6, author: TeamUpdraft, DavidAnderson, Auto-updates disabled wp-media

    image_editor: WP_Image_Editor_GD
    imagick_module_version: Not available
    imagemagick_version: Not available
    imagick_version: Not available
    file_uploads: 1
    post_max_size: 8M
    upload_max_filesize: 32M
    max_effective_size: 8 MB
    max_file_uploads: 20
    gd_version: bundled (2.1.0 compatible)
    gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
    ghostscript_version: not available wp-server

    server_architecture: Windows NT 10.0 AMD64
    httpd_software: Apache/2.4.54 (Win64) PHP/8.0.26 mod_fcgid/2.3.10-dev
    php_version: 8.0.26 64bit
    php_sapi: apache2handler
    max_input_variables: 2500
    time_limit: 120
    memory_limit: 128M
    admin_memory_limit: 256M
    max_input_time: 60
    upload_max_filesize: 32M
    php_post_max_size: 8M
    curl_version: 7.76.1 OpenSSL/1.1.1s
    suhosin: false
    imagick_availability: false
    pretty_permalinks: true
    htaccess_extra_rules: true
    current: 2024-10-28T11:21:29+00:00
    utc-time: Monday, 28-Oct-24 11:21:29 UTC
    server-time: 2024-10-28T12:21:27+01:00 wp-database

    extension: mysqli
    server_version: 8.0.31
    client_version: mysqlnd 8.0.26
    max_allowed_packet: 67108864
    max_connections: 151 wp-constants

    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: C:\wamp64\www\tggfwordpress/wp-content
    WP_PLUGIN_DIR: C:\wamp64\www\tggfwordpress/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: Undefined
    WP_DEVELOPMENT_MODE: undefined
    DB_CHARSET: utf8mb4
    DB_COLLATE: undefined wp-filesystem

    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    fonts: writable
    mu-plugins: writable
    Moderator threadi

    (@threadi)

    Ich vermute hier werden ein oder mehrere JavaScript-Dateien nicht geladen. Dadurch fehlt die Funktion für das Mobile Menü.

    Was sind das denn für 2 MU-Plugins? changename.php und cook.php – sind dort ggfs. irgendwelche Codes enthalten die die Ausgabe im Frontend beeinflussen können? Nimm sie testweise mal per FTP raus (einfach runterladen und löschen).

    Thread-Starter tggf

    (@tggf)

    cook.php sorgt dafür, dass das Complianz nicht auf jeder Subseite neu bestätigt werden muss.

    <?php
    /**
    * Force consent cookies on the root as shown below, or choose a subfolder
    * Add subfolder between '' on line 9 e.g. /subfolder/
    * @param string @path
    * @return string
    */
    function my_cookie_path($path) {
    return '';
    }
    add_filter( 'cmplz_cookie_path', 'my_cookie_path');
    ?>

    changename.php ändert in der automatisch von Complianz erstellten Cookie Policy den lokalen Namen in den Onlinedomain-Namen

    <?php
    /* remove line 1 if implemented in functions.php, instead of an mu-plugin */
    function cmplz_edit_document_html($html, $type, $post_id){
    $old1_string = "http://localhost/tggfwordpress";
    $new1_string = "https://thegreatgrayfunk.com";
    $html = str_replace($old1_string, $new1_string, $html);
    return $html;
    }
    add_filter('cmplz_document_html', 'cmplz_edit_document_html', 10, 3);
    ?>

    Habe beide vorübergehend gelöscht. Leider ändert sich nichts.

    Moderator threadi

    (@threadi)

    Bei mir funktioniert es jetzt. Ich vermute einen Zusammenhang mit Complianz, da ich jetzt beim ersten Aufruf danach gefragt wurde. Die beiden MU-Plugins könnten hier gestört haben, da Du Complianz ja gar nicht als Plugin aktiviert hattest.

    Thread-Starter tggf

    (@tggf)

    Ich habe in der Zwischenzeit etwas anderes versucht, das dürfte die Lösung gewesen sein:

    Ich habe das Leistenmenü in einer zweiten WordPress-Instanz nachgebaut. Die Dateien „view.min.js“ und „interactivity.min.js“ im Originalordner habe ich dann durch die vom Nachbau ersetzt.

    Vielen Dank für deine Hilfe!

    Moderator threadi

    (@threadi)

    Uuh, da wäre ich vorsichtig. Das sind Dateien vom WordPress-Core. Die werden beim nächsten Update ohnehin wieder ausgetauscht. Ich würde dir um sicherzugehen, dass es auch Updatesicher ist empfehlen mal unter Aktualisieren auf den Re-Install-Button zu klicken. Der lädt die Core-Dateien neu runter ohne das Projekt zu verändern.

    Thread-Starter tggf

    (@tggf)

    Habe den Re-Install ausgeführt und es funktioniert noch. Nochmals vielen Dank!

    Moderator threadi

    (@threadi)

    Danke für die Rückmeldung. Ich setz das Topic mal auf gelöst.

Ansicht von 11 Antworten – 1 bis 11 (von insgesamt 11)