Random Snippet of Code and Life


26
Jan

CakePHP Code: Notice: Undefined index: REQUEST_URI error

Code:
Notice: Undefined index: REQUEST_URI ...\app_controller.php on line 130
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at ...\app_controller.php:130) in ...\session.php on line 154
Warning: Cannot modify header information - headers already sent by (output started at ...\app_controller.php:130) in ...\session.php on line 155

if you have the above error in windows, try to change $_SERVER[”REQUEST_URI”] to env(”REQUEST_URI”), a built in CakePHP wrapper.

Technorati Tags: ,

Popularity: 19% [?]

Related posts:
  • No related posts
  • Leave a Reply

    Random Snippet of Code and Life is is proudly powered by Wordpress
    Navigation Theme by GPS Gazette