GithubHelp home page GithubHelp logo

Comments (5)

MGatner avatar MGatner commented on July 30, 2024

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.

alisonrag avatar alisonrag commented on July 30, 2024

image

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.

MGatner avatar MGatner commented on July 30, 2024

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.

alisonrag avatar alisonrag commented on July 30, 2024

hmm i see. seems to be a problem with CI, my login view is default, it's a fresh install

from myth-auth.

lonnieezell avatar lonnieezell commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.