[wp-trac] [WordPress Trac] #33373: file_exists throws warning

WordPress Trac noreply at wordpress.org
Fri Aug 14 13:50:06 UTC 2015


#33373: file_exists throws warning
----------------------------+-----------------------------
 Reporter:  Teammmate       |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Bootstrap/Load  |    Version:  4.2.4
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 I donwloaded the current version from de.wordpress.org.
 uploadet it on a shared hosting in path /var/www/user888/



 the line 39: file_exists( dirname(ABSPATH) . '/wp-config.php' ) in the
 file /wp-load.php
 echos a warning that i dont have permissions to access /var/www/wp-
 config.php

 then the header redirect to install.php fails and I can't install...


 maby you can check with is_readable instead of file_exists
 (but i dont know maby this still triggers the warning)

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33373>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list