Welcome Guest, Not a member yet? Register   Sign In
Noob issues
#1

[eluser]intension[/eluser]
I'm having some issues with an existing CI installation that has been modified prior to my taking over. I have never used a framework, and am fairly new to PHP and OO programming. My experience has been primarily in classic ASP and some work with scripted PHP.

Before I go any further, I want to compare my inherited files to their originals. To that end, I have downloaded the 1.6.3 zip file (that is the version currently installed). Unfortunately, I can't get it to unzip after the download. I have tried PowerArchiver, WinGzip, and WinRAR. What the heck? I feel like an idiot.
#2

[eluser]intension[/eluser]
Well, it was IE7 I guess. I noticed the download size given during the download didn't match the size on disk. I downloaded the zip file in Firefox and had no problems.

Just as a first pass, any ideas why my app would stop working when moved to a different location or server? I have eliminated short tags and the base url as potential problems. I realize I'm not being very specific, so if I get no replies before I post more, I can understand that.
#3

[eluser]tomcode[/eluser]
Quote:why my app would stop working
This is not precise enough,

something like this :
Quote:I get a blank screen when calling http://localhost/my_ci/

or this :
Quote:I get a CodeIgniter 404 page when calling http://localhost/my_ci/

would be more helpful
#4

[eluser]gyo[/eluser]
Maybe you only need to set the Application Path in the 'index.php'
#5

[eluser]intension[/eluser]
Thank you guys for attempting to help me. I'll try to be more specific.

I have now moved my CI application back to the original server, and it still isn't working. Right now all the links that call other controllers do not. All the links clicked call the default controller. In routes the default controller is set to "home" and calls the view "index". That works fine. Everything else calls home (like ET) as well.

After moving all the files to my home server(wamp), all the files were deleted off the original server. Now CI does not work on my home server or my original server. My only guess at this point is that I have not restored everything that was on the original web server.

(minutes later...) So I tried restoring everything from a backup. That helped. It looked like I had changed the database settings on the backup database file, so I change those to a good username and password. Now everything is working on the original server as it should be.

I'm halfway home. Phew.
#6

[eluser]tomcode[/eluser]
Do You work with a .htaccess file ?

If so, remove it and try Your app without, (don't forget to reset Your index.php in the config file). Then when everything works reimplement the .htaccess.

I work like this especially when I install on an unknown server, .htaccess rewrites can easily become tricky.
#7

[eluser]TheFuzzy0ne[/eluser]
For future reference, that that's still not very specific. Describing how you've tried to fix the issue still doesn't help use know what the problem is.

What did you mean by "not working"? Did clicking a link cause you're computer to explode, or trigger a nuclear attack on another country?

All the best.
#8

[eluser]intension[/eluser]
Thank you tomcode. I'll keep that in mind as I go forward.

Fuzzy: I guess I don't have the language ability to discuss the problems. I tried really hard to get across that clicking any link calls the default controller and not the other controllers as is supposed to be the case. But that appears to be fixed at this point. When I attempt the move again, I'm sure I'll be right back here and hopefully I can use more descriptive language to outline my issues.

Thanks for everyone's help.
#9

[eluser]TheFuzzy0ne[/eluser]
My apologies. I totally missed the part where you mentioned that.
#10

[eluser]intension[/eluser]
Ok, I'm back. Again, I'm using a Windows Apache MySql Php (wamp) configuration. Is Windows a potential roadblock?

The behavior is this: only the default controller is being called. You can go here: http://thebookfool.com, and see the app. At thebookfool.com all the controllers are being called successfully. On my dev computer only the default controller is called. I have tested this by inserting errors into the other controllers and my default controller. Only the error in the default controller is displayed no matter which controller is called. By called, I mean clicking the link that is supposed to call the controller.

The URL that should call the results controller looks like this: http://localhost/results. What I get instead is http://localhost/results/index.php.

My base url is "http://localhost/"

I renamed the .htaccess as mentioned above, and the app errors out.

Any ideas are appreciated.




Theme © iAndrew 2016 - Forum software by © MyBB