PHP Fehler werden nicht angezeigt

Grunge

Erfahrenes Mitglied
Hey Leute,

Ich habe das Problem, dass ich einen Fehler in meinem Script habe, bzw mehrere wie ich vermute....Nur leider ist es mir nicht möglich diese zu lokalisieren. error_reporting bringt nix, ist natürlich auf E_ALL geschaltet !

Hat jemand ne Lösung...?
Host: All-inkl

Danke im Voraus.

LG
 
Code:
<?php
error_reporting(-1);
    ini_set('display_errors','On');
    session_start();
    

    include "_inc/_db.php";
    include "_inc/_function.php";

    if(isset($_GET['reg']) and $_GET['reg'] == "true"){
        
        $_SESSION['ID'] = $_GET['id'];
    }

    if(isset($_SESSION['ID'])){
        include "_header2.php";
        if(isset($_GET['section']) and $_GET['section'] != ""){
            switch($_GET['section']){
                case "home":
                    include "left.php";
                    include "home.php";
                    include "right.php";
                    break;
                case "msg":
                    include "left.php";
                    include "msg.php";
                    include "right.php";
                    break;
                case "logout":
                    session_destroy();
                    break;
                
                case "profile_edit":
                    include "_header_profile.php";
                    if(isset($_GET['edit'])){
                    switch($_GET['edit']){
                        case "basic":
                            include "profile_left.php";
                            include "profile_basic.php";
                            break;
                        case "details":
                            include "profile_left.php";
                            include "profile_details.php";
                            break;
                        case "vorlieben":
                            include "profile_left.php";
                            include "profile_vorlieben.php";
                            break;
                        case "settings":
                            include "profile_left.php";
                            include "profile_settings.php";
                            break;
                        case "pw":
                            include "profile_left.php";
                            include "profile_pw.php";
                            break;
                        case "images":
                            include "profile_images.php";
                            break;
                        case "friends":
                            include "profile_friends.php";
                            break;
                        case "albumview":
                            include "profile_album_view.php";
                            break; 
                        case "pics":
                            include "profile_pics.php";
                            break;
                        default:
                                                include "profile_left.php";

                            include "profile_basic.php";
                            break;
                    }
                    }else{
                                            include "profile_left.php";

                        include "profile_basic.php";
                    }
                    include "right.php";
                    break;
                default:
                    include "left.php";
                    include "home.php";
                    include "right.php";
                    break;
            }    
        }else{
            include "left.php";
            include "home.php";
            include "right.php";
        }
        
    }else{
            include "_header.php";
        include "_unlogged.php";
    }

    include "_footer.php";
?>

hoffe es hilft
 
Ja.
was fragst du bei [reg] eigentlich ab. Weil deine if abfrage möchte reg haben in den true drinne steht. Denke mal das es nicht der fall ist oder doch?

Wenn dann muß im link reg=true stehen ,oder du änderst deine if abfrage.
Aber fragen wir erstmal anders ,Wie sieht den überhaupt der Link aus der abgefragt wird in den Script?
 
Zurück