[wp-trac] [WordPress Trac] #21971: Checking for Server Protocol causes PHP notices

WordPress Trac wp-trac at lists.automattic.com
Sat Sep 22 22:23:54 UTC 2012


#21971: Checking for Server Protocol causes PHP notices
------------------------------+----------------------
 Reporter:  omarabid          |       Owner:
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:
Component:  Warnings/Notices  |     Version:  3.4.2
 Severity:  minor             |  Resolution:  invalid
 Keywords:                    |
------------------------------+----------------------
Changes (by wonderboymusic):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 WordPress is not meant to run on the command line (as a PHP binary app
 which is what PHP Storm is doing) as is - anytime you run WordPress as a
 php app versus in the browser, $_SERVER won't be set properly. If you want
 to run WordPress on the command line without loading queries or the theme:

 {{{
 php -r 'wp-config.php'
 }}}

 Run that in whatever directory WordPress is in.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21971#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list