Ergebnis 1 bis 3 von 3

Thema: Ausgabe von PHP-Code im Backend

  1. #1
    Contao-Nutzer
    Registriert seit
    24.06.2009.
    Beiträge
    165

    Standard Ausgabe von PHP-Code im Backend

    Hallo,

    bei mir wird im Backend folgendes unterhalb des Backends im Klartext angezeigt, außerdem kann ich die Website nicht in der Frontendansicht anzeigen lassen, obwohl ich veröffentlichte Seiten/Artikel habe (Stylesheet und Layout sind natürlich auch definiert etc.), insgesamt werden 33 Felder angezeigt...

    PHP-Code:
    Array
    (
        [
    0] => Array
            (
                [
    0] => SELECT FROM tl_session WHERE hash='d7c68280a9385a4e125fbb9d9f4d629beb5f1334' AND name='BE_USER_AUTH'
                
    [1] => 1 rows returned
                
    [2] => Array
                    (
                        [
    id] => 1
                        
    [select_type] => SIMPLE
                        
    [table] => tl_session
                        
    [type] => system
                        
    [possible_keys] => hash
                        
    [key] => 
                        [
    key_len] => 
                        [
    ref] => 
                        [
    rows] => 1
                        
    [Extra] => 
                    )

            )

        [
    1] => Array
            (
                [
    0] => SELECT FROM tl_user WHERE id='1'
                
    [1] => 1 rows returned
                
    [2] => Array
                    (
                        [
    id] => 1
                        
    [select_type] => SIMPLE
                        
    [table] => tl_user
                        
    [type] => system
                        
    [possible_keys] => PRIMARY
                        
    [key] => 
                        [
    key_len] => 
                        [
    ref] => 
                        [
    rows] => 1
                        
    [Extra] => 
                    )

            )

        [
    2] => Array
            (
                [
    0] => SELECT FROM tl_user_group WHERE id=NULL AND disable!=AND (start='' OR start<1256119181) AND (stop='' OR stop>1256119181LIMIT 0,1
                
    [1] => 0 rows returned
                
    [2] => Array
                    (
                        [
    id] => 1
                        
    [select_type] => SIMPLE
                        
    [table] => 
                        [
    type] => 
                        [
    possible_keys] => 
                        [
    key] => 
                        [
    key_len] => 
                        [
    ref] => 
                        [
    rows] => 
                        [
    Extra] => Impossible WHERE noticed after reading const tables
                    
    )

            )

        [
    3] => Array
            (
                [
    0] => UPDATE tl_session SET tstamp=1256119181 WHERE sessionID='5d6420cf5eb4beeef7725ec221b695e8'
                
    [1] => 0 rows affected
            
    )

        [
    4] => Array
            (
                [
    0] => SELECT FROM tl_style_sheet WHERE id='6' LIMIT 0,1
                
    [1] => 1 rows returned
                
    [2] => Array
                    (
                        [
    id] => 1
                        
    [select_type] => SIMPLE
                        
    [table] => tl_style_sheet
                        
    [type] => const
                        [
    possible_keys] => PRIMARY
                        
    [key] => PRIMARY
                        
    [key_len] => 4
                        
    [ref] => const
                        [
    rows] => 1
                        
    [Extra] => 
                    )

            )

        [
    5] => Array
            (
                [
    0] => SELECT FROM tl_style WHERE pid='6' AND invisible!=1 ORDER BY sorting
                
    [1] => 19 rows returned
                
    [2] => Array
                    (
                        [
    id] => 1
                        
    [select_type] => SIMPLE
                        
    [table] => tl_style
                        
    [type] => ref
                        
    [possible_keys] => pid
                        
    [key] => pid
                        
    [key_len] => 4
                        
    [ref] => const
                        [
    rows] => 16
                        
    [Extra] => Using whereUsing filesort
                    
    )

            )

        [
    6] => Array
            (
                [
    0] => INSERT INTO tl_log (tstampsourceactionusernametextfuncipbrowserVALUES(1256119181'BE''CRON''webmaster''Generated style sheet "modules.css"''StyleSheets updateStyleSheet()''84.159.167.46''Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729)')
                [
    1] => 1 rows affected
            
    )

        [
    7] => Array
            (
                [
    0] => DELETE FROM tl_style WHERE NOT EXISTS (SELECT FROM tl_style_sheet WHERE tl_style.pid tl_style_sheet.id)
                [
    1] => 0 rows affected
            
    )

        [
    8] => Array
            (
                [
    0] => SHOW COLUMNS FROM `tl_style`
                [
    1] => 44 rows affected
            
    )

        [
    9] => Array
            (
                [
    0] => SELECT DISTINCT(categoryFROM tl_style WHERE pid='6'
                
    [1] => 1 rows returned
                
    [2] => Array
                    (
                        [
    id] => 1
                        
    [select_type] => SIMPLE
                        
    [table] => tl_style
                        
    [type] => ref
                        
    [possible_keys] => pid
                        
    [key] => pid
                        
    [key_len] => 4
                        
    [ref] => const
                        [
    rows] => 16
                        
    [Extra] => Using whereUsing temporary
                    
    )

            )

        [
    10] => Array
            (
                [
    0] => SELECT COUNT(*) AS total FROM tl_style WHERE pid='6'
                
    [1] => 1 rows returned
                
    [2] => Array
                    (
                        [
    id] => 1
                        
    [select_type] => SIMPLE
                        
    [table] => tl_style
                        
    [type] => ref
                        
    [possible_keys] => pid
                        
    [key] => pid
                        
    [key_len] => 4
                        
    [ref] => const
                        [
    rows] => 16
                        
    [Extra] => Using index
                    
    )

            )

        [
    11] => Array
            (
                [
    0] => SELECT FROM tl_style_sheet WHERE id='6' LIMIT 0,1
                
    [1] => 1 rows returned
                
    [2] => Array
                    (
                        [
    id] => 1
                        
    [select_type] => SIMPLE
                        
    [table] => tl_style_sheet
                        
    [type] => const
                        [
    possible_keys] => PRIMARY
                        
    [key] => PRIMARY
                        
    [key_len] => 4
                        
    [ref] => const
                        [
    rows] => 1
                        
    [Extra] => 
                    )

            )

        [
    12] => Array
            (
                [
    0] => SELECT MAX(tstamp) AS tstamp FROM tl_style WHERE pid='6'
                
    [1] => 1 rows returned
                
    [2] => Array
                    (
                        [
    id] => 1
                        
    [select_type] => SIMPLE
                        
    [table] => tl_style
                        
    [type] => ref
                        
    [possible_keys] => pid
                        
    [key] => pid
                        
    [key_len] => 4
                        
    [ref] => const
                        [
    rows] => 16
                        
    [Extra] => 
                    )

            )

        [
    13] => Array
            (
                [
    0] => SELECT FROM tl_style WHERE pid='6' ORDER BY sorting LIMIT 0,30
                
    [1] => 19 rows returned
                
    [2] => Array
                    (
                        [
    id] => 1
                        
    [select_type] => SIMPLE
                        
    [table] => tl_style
                        
    [type] => ref
                        
    [possible_keys] => pid
                        
    [key] => pid
                        
    [key_len] => 4
                        
    [ref] => const
                        [
    rows] => 16
                        
    [Extra] => Using whereUsing filesort
                    
    )

            )

        [
    14] => Array
            (
                [
    0] => SELECT COUNT(*) AS total FROM tl_style WHERE pid='6'
                
    [1] => 1 rows returned
                
    [2] => Array
                    (
                        [
    id] => 1
                        
    [select_type] => SIMPLE
                        
    [table] => tl_style
                        
    [type] => ref
                        
    [possible_keys] => pid
                        
    [key] => pid
                        
    [key_len] => 4
                        
    [ref] => const
                        [
    rows] => 16
                        
    [Extra] => Using index
                    
    )

            )


    Hat jmd vielleicht ne Idee?

  2. #2
    AG Pressearbeit
    Community-Moderator
    Buchautor 'Contao für Webdesigner'
    Avatar von planepix
    Registriert seit
    05.06.2009.
    Ort
    Stuttgart
    Beiträge
    6.470
    Partner-ID
    107
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Hallo Frank,

    schau mal unter Einstellungen - > Sicherheitseinstellungen -> Debugmodus aktivieren, das abschalten.
    ---------------------------------
    Beste Grüße planepix
    Contao für Webdesigner (Website), Twitter: @contaowebdesign
    weitzeldesign
    Contao-Sprechstunde
    Contao Schulungen: https://www.weitzeldesign.com/cms-co...chulungen.html
    Contao Jahrbuch: www.contao-jahrbuch.de
    Contao Agenturtag: www.contao-agenturtag.de
    Contao Stammtisch Stuttgart: www.contao-stammtisch-stuttgart.de
    Contao 4 Erfahrungen als Gitbook: https://app.gitbook.com/@planepix/s/...-mit-contao-4/
    Contao 4 & Manager Hosterhinweise: https://github.com/contao/contao-manager/wiki

    Schon wieder ein Update?
    Glücklich sind die, die den Wert erkennen – und wertschätzen.
    „Muss man machen wie beim Zahnarzt. Der bestraft einen auch mit hohen Rechnungen wenn man die Pflege vernachlässigt.”

  3. #3
    Contao-Nutzer
    Registriert seit
    24.06.2009.
    Beiträge
    165

    Standard

    Hallo Planepix,

    ja den Debugmodus hatte ich absichtlich aktiviert (da ich ja an dem System entwickelnd dran bin), also hat der angezeigte Code nix kritisches zu bedeuten?

    Das Problem, dass das Frontend sich nicht anzeigen läßt habe ich jedoch trotzdem, gibt es dafür eine Ursache? Gerne kann ich dir auch mal den Link zu meinem Verzeichnis mailen, wenn du es dir lieber direkt ansehen willst

    Siehe auch https://community.contao.org/de/showthread.php?t=3331. Das ist der Hintergrund des Ganzen

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Ähnliche Themen

  1. Insert Tag Code im Backend
    Von Arno im Forum Allgemeine Inhaltselemente
    Antworten: 8
    Letzter Beitrag: 24.10.2013, 15:05
  2. Spagetti Code
    Von sonikks im Forum Installation / Update
    Antworten: 14
    Letzter Beitrag: 30.03.2011, 07:13
  3. PHP code ausführen
    Von Lengen1971 im Forum Allgemeine Inhaltselemente
    Antworten: 3
    Letzter Beitrag: 27.10.2010, 13:19
  4. Backend Modul - erweitern mit eigenem PHP Code möglich?
    Von legendmorpheus im Forum Sonstiges zu Contao
    Antworten: 1
    Letzter Beitrag: 13.10.2009, 10:24

Lesezeichen

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •