fout config.php

  • Hallo iedereen, al verander ik 1 dingetje in het bestand config.php krijg ik een foutcode dat header already sent, en ik wil extra rangen toevoegen maar dat lukt dus niet.


    config.php


    kan iemand me helpen hiermee?
    Groetjes Stefano:piraat:

  • Stop dit stukje code eens helemaal bovenin je script na je PHP opentags:


    PHP
    error_reporting(E_ALL);
    ini_set('display_errors', '1');


    Probeer het dan nog eens en post de error die je krijgt. De volledige error aub.

    Kast: HAF922 | CPU: I7-930 @ 4.0GHz | CPU Cooler: Noctua NH-D14 | HDD0: Crucial M4 128GB, HDD1: Kingston SSD 64GB, HDD2/3: WD Black & Green 1TB, HDD4: Seagate 1.5TB | Mem: Kingston HyperX 12GB @ 1600MHz | Graphics: Crossfire HD6970 | Res: 5760x1080

  • Citaat van jopitan

    Stop dit stukje code eens helemaal bovenin je script na je PHP opentags:


    PHP
    error_reporting(E_ALL);
    ini_set('display_errors', '1');


    Probeer het dan nog eens en post de error die je krijgt. De volledige error aub.



    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /public/sites/www.mastermaffia.com/includes/config.php:1) in /public/sites/www.mastermaffia.com/includes/config.php on line 25
    ?? ???

  • Citaat van Sourceshop

    include("includes/inc.required_queries.php");
    Daar zit de fout


    en hoe los ik die fout op?

    Nieuwe reactie samengevoegd met originele reactie op 15.03.12 22:29:47:
    Hier alvast het script inc.required_queries.php

  • Maak van:


    PHP
    if(empty($ajax)) { 
        include('includes/inc.functions.php'); 
        include('includes/inc.required_queries.php'); 
      }


    Eens:

    PHP
    if(empty($ajax)) { 
        include('includes/inc.functions.php'); 
        //include('includes/inc.required_queries.php'); 
      }


    Krijg je dan nog steeds een error?

    Kast: HAF922 | CPU: I7-930 @ 4.0GHz | CPU Cooler: Noctua NH-D14 | HDD0: Crucial M4 128GB, HDD1: Kingston SSD 64GB, HDD2/3: WD Black & Green 1TB, HDD4: Seagate 1.5TB | Mem: Kingston HyperX 12GB @ 1600MHz | Graphics: Crossfire HD6970 | Res: 5760x1080

  • Ja, deze error krijg ik nog steeds:

    PHP
    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /public/sites/www.mastermaffia.com/includes/config.php:1) in /public/sites/www.mastermaffia.com/includes/config.php on line 22
    
    
    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /public/sites/www.mastermaffia.com/includes/config.php:1) in /public/sites/www.mastermaffia.com/includes/config.php on line 22
  • Inderdaad verwijder die spatie eerst achter de <?php (was me nog eerst niet eens opgevallen)

    Kast: HAF922 | CPU: I7-930 @ 4.0GHz | CPU Cooler: Noctua NH-D14 | HDD0: Crucial M4 128GB, HDD1: Kingston SSD 64GB, HDD2/3: WD Black & Green 1TB, HDD4: Seagate 1.5TB | Mem: Kingston HyperX 12GB @ 1600MHz | Graphics: Crossfire HD6970 | Res: 5760x1080

Participate now!

Heb je nog geen account? Registreer je nu en word deel van onze community!