• Hallo,

    vielleicht ist es ja nur ein Zeichen für eine unschöne Programmierung und kein “richtiger” Fehler. Aber schön ist es natürlich nicht, wenn man im Layout php-Hinweise wie die folgenden erhält:

    bei Maps:

    Notice: Undefined index: show_embedded_maps in /var/www/html/wp-content/plugins/extra-privacy-for-elementor/includes/class-extra-privacy-for-elementor.php on line 170
    
    Notice: Undefined variable: tooltip_text in /var/www/html/wp-content/plugins/extra-privacy-for-elementor/includes/class-extra-privacy-for-elementor.php on line 271

    bei Youtube-Videos:

    Notice: Undefined index: show_embedded_videos in /var/www/html/wp-content/plugins/extra-privacy-for-elementor/includes/class-extra-privacy-for-elementor.php on line 162
    
    Notice: Undefined variable: tooltip_text in /var/www/html/wp-content/plugins/extra-privacy-for-elementor/includes/class-extra-privacy-for-elementor.php on line 216

    Sowas möchte und sollte man auch in einer Entwicklungsumgebung mit
    define('WP_DEBUG', true); in wp-config.php nicht sehen.

    Vielleicht lässt sich der Code doch etwas verbessern um solche php-Hinweise zu vermeiden?

    • This topic was modified 6 years, 2 months ago by RalphGL.
    • This topic was modified 6 years, 2 months ago by RalphGL. Reason: syntax fehler korrigiert

The topic ‘PHP Notice’ is closed to new replies.