Auto Loader Problem

Hello

I have a Yii project , When I open my site in my local host it works good

but When I upload it to hosting it cannot auto load Classes

And I have error like

YiiBase::autoload(User.php): failed to open stream: No such file or directory (/home/myusername/public_html/protected/framework/YiiBase.php:421)

I run Yii Requirement Checker , and I see "Your server configuration satisfies the minimum requirements by Yii. Please pay attention to the warnings listed below if your application will use the corresponding features."

I use mysql so It also pass PDO extension and PDO MySQL extension

I dont use APC and Memcache and SOAP

why it cannot load some class and load some other class

it load $user = new User

but cannot load

User::model()

or

User::staticMethod()

just in webhosting , in local host all thing is ok

help me plz

:( PLZ

have u install yii folder on target server?

Yes,I told

$user = new User works

User::staticMethod() dont works and print YiiBase::autoload(User.php): failed to open stream: No such file or directory (/home/myusername/public_html/protected/framework/YiiBase.php:421)

Hi,

i think it’s case-senisitive issue


User

to


user

or your target server is linux or windows?

Oh , YES

it’s case-senisitive issue

Thanks , dear Ankit Modi :lol: :D

I have about 700 PHP files that I create

and it is not possible for me to check case-sensitive issue

How can I turn off case-sensitivity in linux server??

Hi,

you can just change the url

for example…


http://localhost/demo/index.php/admin/Vendor/admin

change the


http://localhost/demo/index.php/admin/vendor/admin

i think it’s work…

Additional URL

I have problem with including Widgets , because in about 2-3% of my code I use wrong case for example instead of ext.test.Test , I use ext.Test.Test

it is not possible for me to find all and replace

I need a way that turn off case sensitivity in linux , like windows

because I create my project in windows I have no error in debug mode

and now I must put my completed project in linux server

Hi,

First you can try my last comment code beacuse i face this issue and don’t change the any extnsion or widgets…

i think it’s all working just change the controller name url

Hi p30tec:

Check this out:

http://httpd.apache.org/docs/2.0/mod/mod_speling.html

but You should remember that:

Yesterday I install mod_speling with CheckCaseOnly on

but it just apply to URL

for example

http://site.com/index.php equal to http://site.com/indEx.php , http://site.com/INDEX.php

but include("class.php") and include("Class.php") , include("cLass.php") is different

Is it possible to turn off include() case-sensitivity in linux ?

who can help me ?