DEV Community

Discussion on: php - How to fix "Class '' not found" error

Collapse
 
zx1986 profile image
張旭

I am running laradock with Yubikey package.
It works fine on my local Mac, but when I publish to production server,
It just can't found the 'Class', what the ....

The same docker image (ship with laradock) ...

Collapse
 
dechamp profile image
DeChamp

So this issue is definitely an casing issue. So you probably have somewhere ‘foobar’ vs ‘fooBar’. I’ve ran in to that many times where it works locally but broke on the machine.

Collapse
 
zx1986 profile image
張旭

You are totally right!
It was Yubikey vs YubiKey, :-(

Thread Thread
 
dechamp profile image
DeChamp

Great! I'm glad I could help you. I know how frustrating this can be. I've experienced it many times myself ha ha.

Thread Thread
 
biacho profile image
Tobiasz Czelakowski

I know this is old thread, but well... it's helped me today, so I wan't to thank you, and ask... maybe you will know... Why, why this is happening?