EllisLab text mark
Advanced Search
     
.htaccess and other redirectioning error
Posted: 21 July 2007 02:48 PM   [ Ignore ]
Joined: 2007-07-21
6 posts

Hi there, a few months using CI but its my first post.

I uploaded my project to the webserver, it works fine on the local project but when I upload it I get this error:

Fatal error: Class controller: Cannot inherit from undefined class ci_base in /mnt/Target01/335170/338577/www.campaignmanager.com/web/content/system/libraries/Config.php on line 30

Any ideas would be greatly appreciated.

 
Posted: 21 July 2007 03:52 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2007-05-03
34 posts

It looks like it’s not “seeing” class ci_base ... for whatever reason? i.e. explore why ...

 Signature 

Mike

 
Posted: 21 July 2007 04:33 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2007-07-21
6 posts

The files are on the server, I have checked with tech support about their availability and nothing, any other clues I could follow?

Thanks,
Mario.

 
Posted: 21 July 2007 05:09 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2007-05-03
34 posts

Hmmm ... what’s that class ci_base all about?
Is class ci_base something you rolled? ... or from CI?

Could your local version be using an .htaccess file, that didn’t make it up to the server? ... or perhaps the server .htaccess version is different (or not allowed?)?

One way or another, SOMEthing’s different up on that server ... ?
“Your job, should you choose to accept it, is” to find out what’s different ...  wink

 Signature 

Mike

 
Posted: 21 July 2007 05:11 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Joined: 2006-07-10
485 posts

If it cannot find CI’s base class, your system path in index.php might be wrong.

 
Posted: 21 July 2007 05:26 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Joined: 2007-07-21
6 posts

I thought I saw a bright light somewhere because the actual URL is

//http://www.campaignmanager.com.php4-3.websitetestlink.com/]

but I was using

www.campaignmanager.com

.  The outcome was just a different error:

Fatal error: Cannot instantiate non-existent class: ci_hooks in /mnt/Target01/335170/338577/www.campaignmanager.com/web/content/system/codeigniter/Common.php on line 91

This is the .htaccess file Im using:

RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index\.php|images|js|media|info\.php|css|userfiles|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

SO here we go…

The system path has not been modified.

 
Posted: 21 July 2007 05:28 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Joined: 2007-07-21
6 posts

Could I need something further for the RewriteBase on the .htaccess

 
Posted: 21 July 2007 05:39 PM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Avatar
Joined: 2007-05-03
34 posts
piper-coda - 21 July 2007 09:28 PM

Could I need something further for the RewriteBase on the .htaccess

If the “campaignmanager” site, you’re putting up, is not in your web host server document root (e.g. if campaignmanager were a sub-domain being hosted), “yes” you would need to change:

RewriteBase 


to

RewriteBase /campaignmanager


... or some such.

 Signature 

Mike

 
Posted: 21 July 2007 06:15 PM   [ Ignore ]   [ # 8 ]   [ Rating: 0 ]
Joined: 2007-07-21
6 posts

Gonna give that a try, keep you posted.