Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /mnt/data/accounts/g/groopcz/data/www/leganto/leganto/app/models/books/BookSelector.php on line 131
InvalidStateException

InvalidStateException

Cannot set HTTP code after HTTP headers have been sent (output started at /mnt/data/accounts/g/groopcz/data/www/leganto/leganto/app/models/books/BookSelector.php:131).

Source file

Call stack

  1. Web/HttpResponse.php (158) source   HttpResponse-> setCode (arguments )

  2. Responses/RedirectingResponse.php (68) source   HttpResponse-> redirect (arguments )

  3. Application/Application.php (152) source   RedirectingResponse-> send ()

  4. app/bootstrap.php (61) source   Application-> run ()

    Line 54:    // Step 6: Start session
    Line 55:    Environment::getSession()->setExpiration("+7 days");
    Line 56:    Environment::getSession()->start();
    Line 57:    
    Line 58:    Environment::getUser()->setExpiration("+ 7 days"FALSE);
    Line 59:    
    Line 60:    // Step 7: Run the application!
    Line 61:    $application->run();
    Line 62:    
    Line 63:    
    
  5. document_root/index.php (5) source   require (arguments )

Nette Application

Environment

HTTP request

HTTP response