Welcome Guest, Not a member yet? Register   Sign In
An Error Was Encountered. Unable to load the requested class: dx_auth - But local copy works fine!
#11

[eluser]TheFuzzy0ne[/eluser]
A lot of hosts allow you to choose which version of PHP you want to use. It's only a matter of time before PHP 4 is obsolete, so most hosts are preparing for this. I'd suggest you contact them and ask them if they plan to install PHP5 on their servers any time soon. Sorry to be the bearer of bad news...

This article might help you: http://www.adamthody.com/posts/single/16...rid_server
#12

[eluser]Rubiz'[/eluser]
FuzzyOne, it helped a lot, thanx!!!
#13

[eluser]djreed[/eluser]
I've come upon this post several times with the same error. My issue was totally different.

After migrating from my local MAMP server to my Lunarpages hosting account, I was receiving the "Unable to load error." After confirming that I had correctly changed my Database and Config files before uploading, I decided to check the PHP versions of both servers. Both were running PHP 5, however, my Lunarpages host was using a slightly more recent release of PHP 5. Still, I didn't know why this would cause Dx_Auth to fail.

Finally, I inspected my Autoload file and decided to throw up a prayer. I changed the array from dx_auth to Dx_Auth and it fixed my problem! Apparently the very latest version of PHP5 is case sensitive whereas my MAMP earlier versions are not. Hopefully this fact helps some other frustrated person!

Bottom line, if you are Autoloading Dx_Auth, be sure to be sensitive to upper and lower case!
#14

[eluser]zedd45[/eluser]
I received the error on two separate occasions, and I was able to determine my problem was caused by the line that loads the library. In the user guide, it says CI doesn't care about case sensitivity, and on my Mac running PHP 5.(3?) I had no issues.

My production servers are running some point revision of PHP5 as well (I'll run PHP info later and try to post back).

I found that if I matched the case of the Library / Class / File name, it worked fine. Granted, I followed the steps about permissions prior to that, and that alone didn't fix my problem, but it may require both?


Looks like this the statement about loading classes on this page depends. It seems safter to match the case every time:
http://ellislab.com/codeigniter/user-gui...aries.html
#15

[eluser]predat0r[/eluser]
Hi all,
I just googled this forum post, and I confirm case sensitivity is important. I used at localhost "dx_auth" and when I moved to my host, have to change to "DX_Auth" in the autoload file to work well without error message!
#16

[eluser]Unknown[/eluser]
this error is given by the different versions of php, I suggest you change the names of the libraries and classes of drivers involved in grocery_crud to work properly, I have done when I have presented different hostings error.




Theme © iAndrew 2016 - Forum software by © MyBB