Fix 'Class QUICKAL\QuickAL not found' error on case-sensitive file systems#25
Fix 'Class QUICKAL\QuickAL not found' error on case-sensitive file systems#25jrgong420 wants to merge 1 commit into
Conversation
dbeja
left a comment
There was a problem hiding this comment.
Hi @jrgong420,
Thank you for the PR and catching this bug!
Although you have a good solution that works it also adds some additional complexity and it's harder to maintain and might trigger some issues in the future.
I rather just rename the file to class-QuickAL.php as that's the root cause of the problem.
I can push those changes and trigger a new release on the plugin.
Would you like to change this PR to have that and I'll use your PR for the next version?
Thank you again!
David
|
Hey David, you can just go ahead and implement it your way, we can close this PR :) |
|
@jrgong420 would you be available to test the PR #27? Thanks |
|
@dbeja let me out myself, I had an AI tool actually do the PR, maybe it was obvious, maybe not ;) |
|
No worries :) I appreciate the effort. |
Hey there!
I ran into an issue when trying to activate the plugin on a Linux server (WordPress 6.7) - it was throwing a "Class 'QUICKAL\QuickAL' not found" error.
The problem is that the class is named QuickAL (uppercase "AL") but the file is class-quickal.php (lowercase "al"), which works fine on Windows/Mac but breaks on case-sensitive file systems like Linux.
This PR fixes it by:
Making the autoloader case-insensitive
Adding some fallback mechanisms to ensure the class loads
Creating a properly cased file version
I've tested it on my Linux server and it works perfectly now!
Let me know if you need any clarification or have questions!