Part of the EllisLab Network
   
 
Install Bug?
Posted: 21 March 2007 09:50 AM   [ Ignore ]  
Summer Student
Total Posts:  26
Joined  03-12-2007

Hello,

I am attempting to install my CI files into /usr/local/share/codeigniter/

my applications are in /var/www/html/domain/index.php and /var/www/html/domain/application/ folder.

I am running into the following issues.

When i do echo $this->config->system_url(); i get www.domain.com/codeigniter/ which is not valid as the CI files are not there.

Also with it installed like this when i try to do something like

http://www.domain.com/aricles/news/view/325
where the controller is in /application/controllers/articles/news.php
it does not work properly it does not seem to find the controller in the articles directory.

I am not 100% sure this is a bug, maybe you just cannot install CI like i am attempting.

Please let me know.

Profile
 
 
Posted: 21 March 2007 01:04 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  351
Joined  07-25-2006

If you take a closer look at index.php, you will see that the BASEPATH is mangled (line ~63). Comment out that block and see if it works.

 Signature 

me and some random code, hosted by dh. and a blog too! ++ dead bugs

Profile
 
 
Posted: 21 March 2007 01:38 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  26
Joined  03-12-2007

are you talking about the following code?

if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
{
    $system_folder
= str_replace("\\", "/", realpath(dirname(__FILE__))).'/'.$system_folder;
}

If you are i already removed the realpath(dirname(__FILE__))).’/’. from that line and now the $this->config->system_url(); outputs codeigniter/ but not the /usr/local/share/codeigniter/

Profile
 
 
Posted: 21 March 2007 04:38 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  351
Joined  07-25-2006
codebowl - 21 March 2007 01:38 PM

are you talking about the following code?

if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
{
    $system_folder
= str_replace("\\", "/", realpath(dirname(__FILE__))).'/'.$system_folder;
}

You want to remove all of that code.

 Signature 

me and some random code, hosted by dh. and a blog too! ++ dead bugs

Profile
 
 
Posted: 21 March 2007 04:51 PM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  26
Joined  03-12-2007

When i do that then it just outputs codeigniter/

Profile
 
 
Posted: 21 March 2007 10:20 PM   [ Ignore ]   [ # 5 ]  
Summer Student
Total Posts:  22
Joined  03-21-2007

I’m having the same problem. None of the controllers output anything to the screen. I created the blog controller and it does nothing as well as the welcome controller. No errors though. I did try commenting out the code mentioned above, but still the same results. Also i did an output of $system_path and the path is correct.

Profile
 
 
Posted: 21 March 2007 10:23 PM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  22
Joined  03-21-2007

i stand corrected. i had the errors turned off, i guess i thought CI would display them to the screen.


Fatal error: Class ci_base: Cannot inherit from undefined class ci_loader in .../httpdocs/system/codeigniter/CodeIgniter.php on line 41

Profile
 
 
Posted: 22 March 2007 01:23 PM   [ Ignore ]   [ # 7 ]  
Summer Student
Total Posts:  22
Joined  03-21-2007

added require statement to grab Loader.php, and my error went away, but still nothing works.

Profile
 
 
Posted: 22 March 2007 01:44 PM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  22
Joined  03-21-2007

the bug was in my head. didnt add trailing slash in base_url.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 66430 Total Logged-in Users: 40
Total Topics: 84793 Total Anonymous Users: 4
Total Replies: 455053 Total Guests: 221
Total Posts: 539846    
Members ( View Memberlist )
Newest Members:  Dylan1978X_franbaguasllogocsaturkeyPeter BryanttherendStudioGeorgiaJZeerfedeghe