Welcome Guest, Not a member yet? Register   Sign In
Pager Error Invalid file: Pagers(slash)bs_full.php
#19

I am running into a VERY SIMILAR (same?) issue.  I spent the last day debugging the hell out of this, and am starting to think it is a PERMISSIONS issue.

Issue: NEW Ci4 Application works perfectly on local drive, but NOT on mapped NAS drive.

Environment:
  • Windows 10
  • PHP 7.4.20
  • Local Drive: C:\Users\Sergio\www\
  • NAS Drive: D:\www\

Steps to reproduce:

  Local Drive
  1. CMD as Administrator - C:\Users\Sergio\www\
  2. composer create-project codeigniter4/appstarter project
  3. cd project
  4. php spark serve
  5. http://localhost:8080
  6. So far, so good
  7. copy env .env
  8. Still WORKS

  NAS Drive
  1. CMD as Administrator - D:\www\
  2. composer create-project codeigniter4/appstarter project
  3. cd project
  4. php spark serve
  5. http://localhost:8080
  6. So far, so good
  7. copy env .env
  8. PHP FATAL ERROR

Code:
PHP Fatal error:  Uncaught InvalidArgumentException: The .env file is not readable: D:\www\project\.env in D:\www\project\vendor\codeigniter4\framework\system\Config\DotEnv.php:60

Stack trace:
#0 D:\www\project\vendor\codeigniter4\framework\system\Config\DotEnv.php(43): CodeIgniter\Config\DotEnv->parse()
#1 D:\www\project\vendor\codeigniter4\framework\system\bootstrap.php(130): CodeIgniter\Config\DotEnv->load()
#2 D:\www\project\spark(45): require('D:\\www\\project\\...')
#3 {main}
  thrown in D:\www\project\vendor\codeigniter4\framework\system\Config\DotEnv.php on line 60

Any thoughts and suggestions would be greatly appreciated.

Thanks!

Bridging the gap between Technical and Creative

VASCOsoft Web Studio   |   AllMyLinks

Reply


Messages In This Thread
RE: Pager Error Invalid file: Pagers(slash)bs_full.php - by PwrSrg - 09-07-2021, 11:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB