Comments (5)
Looks like it is trying to load a View file that isn’t there. The actual file should be farther down than your screenshot shows (maybe revealed by clicking “arguments”), and would help a lot for troubleshooting.
from myth-auth.
CI4 is trying to load:
C:\webserver\htdocs\app\ThirdParty\auth\src/\Views/Views/login.php
he is adding one more 'Views' in path for no reason
a better workaround that should not break the function:
CI4\system\Autoloader\FileLocator.php
changed line 134
from:
if (! empty($folder) && strpos($path . $filename, '/' . $folder . '/') === false)
to
if ((! empty($folder) && strpos($path . $filename, '/' . $folder . '/') === false) && !is_file($path . $filename))
from myth-auth.
I don't see the actual view path in your screenshot but the one you pasted seems to have translated incorrectly from namespace to path. I'm not sure if this is an issue with Windows, but the namespace View is correct (Myth\Auth\Views\login.php
) so my guess is this is an issue with CI4 and not Myth:Auth.
from myth-auth.
hmm i see. seems to be a problem with CI, my login view is default, it's a fresh install
from myth-auth.
I cannot replicate. I did the same thing:
- clone CI
- clone Myth\Auth into app/ThirdParty/auth
- added namespace to Autoload.php:
Myth\Auth' => APPPATH .'ThirdParty/auth/src
- php spark serve
- visit /login
- screen showed up as expected.
from myth-auth.
Related Issues (20)
- Undefined property: Config\Auth::$reservedRoutes HOT 2
- routes are not defined after successful installation HOT 1
- Failed to send activation message HOT 2
- Invalidating Sessions On Other Devices HOT 1
- Call to undefined method error HOT 2
- Undefined array key 1 HOT 1
- Attempt to read property 'force_pass_reset' on null HOT 5
- Login issue after registration with success notification HOT 12
- Accessing property "userName" and "email" is deprecated, in UserModel::fake HOT 2
- Help Error! Unable to locate a user with that activation code. HOT 8
- CodeIgniter\Validation\Exceptions\ValidationException "strong_password" is not a valid rule. HOT 1
- Update to Codeigniter 4.4.0 HOT 3
- Validation.php ErrorException Undefined array key 1 HOT 2
- After update Codeigniter to 4.4.0 version, it thrown error Attempt to read property "driver" on null HOT 3
- Codeigniter v4.4.0 changes: cookie config now in Cookie.php not App.php HOT 1
- Help, Can't POST data to DB When Register.
- Error HOT 2
- ASK Invalid cookie expiration time after setting allow Remember me to true HOT 10
- register error issue myth auth HOT 1
- ValidatorInterface error due to CI 4.5 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from myth-auth.