Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

[BUG] Undefined variable $className causing dd() when visiting /prequel #165

Closed
caendesilva opened this issue Jan 21, 2024 · 5 comments
Closed

Comments

@caendesilva
Copy link

Describe the bug
Just installed Prequel and went to /prequel, only to be greeted with this:

ErrorException {#559 ▼ // vendor/protoqol/prequel/src/Http/Middleware/Authorised.php:74
  #message: "Undefined variable $className"
  #code: 0
  #file: "
vendor/protoqol/prequel/
src/Connection/DatabaseConnector.php"
  #line: 32
  #severity: E_WARNING
  trace: {▶}
}

To Reproduce
Steps to reproduce the behavior:

  1. Follow readme install instructions
  2. Visit /prequel

PHP Version

  • 8.3

Database type

  • Sqlite3
@caendesilva
Copy link
Author

caendesilva commented Jan 21, 2024

Oh, I went further into the stacktrace and figured out that you don't support SQLite. #46

Until that's supported, maybe throw a clearer exception?

@QuintenJustus
Copy link
Member

@caendesilva Thank you for submitting this issue, a clearer exception is certainly more useful. Will pick this up when I have time for Prequel.

@PhillipMwaniki
Copy link
Contributor

PhillipMwaniki commented Feb 21, 2024

I have the same issue while using mysql

Update:
I've figured out the issue. The problem occurs when the default database config has been renamed.

Solution:
Default to mysql if the connection in use isn't part of the list.

@PhillipMwaniki
Copy link
Contributor

Update
Here is a fix #166

@QuintenJustus
Copy link
Member

Fixed by #166, update to 1.23.13

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants