Welcome Guest, Not a member yet? Register   Sign In
controller not found online, works perfectly locally (wamp)
#1

[eluser]omgnoseat[/eluser]
Hello,

I'm having the most frustrating simple problem. I have a controller which just cannot seems to be found, I simply get a 404 not found error. I copyed the entire thing from my wamp folder where it works fine. Altered all the routes but it still doesn't seem to work.

Anyone has any idea what this could be causing it? I'm out of idea's.
Setting the "about" controller as my default controller does load it, it just doesn't seem to access it by appending the URL.

Here is the URL if it's of any use:
http://martinowullems.nl/secret/index.php/about

Help would greatly be appreiciated, something this simple is so frustrating haha.
Thanks in advance
#2

[eluser]WanWizard[/eluser]
Looks like you have a rewrite issue somewhere.

If I request http://martinowullems.nl/secret/index.php/test, I get a "500 Internal Server Error". Which for some reason Firefox hides behind a fancy "file not found" message.
#3

[eluser]omgnoseat[/eluser]
[quote author="WanWizard" date="1279334158"]Looks like you have a rewrite issue somewhere.

If I request *link*/test, I get a "500 Internal Server Error". Which for some reason Firefox hides behind a fancy "file not found" message.[/quote]
I might understand incorrectly, but I have no controller called test. With rewrite you mean the settings I altered when I moved the folder from wamp to my server?

Thanks
#4

[eluser]jedd[/eluser]
I'm seeing a server error - it's confused about the mimetype x-httpd-phpcgi (see attached).

Have you done something weird with case? Often shifting from a WAMP to a platform that you didn't bother to describe (typically people shift to a GNU/Linux server - but it's still nice to know for sure) bites you with the fact that ignoring the esoteric CI case requirements on filenames works just fine on your MS-Windows development platform ... but is less forgiving on a real operating system. Check the [url="/wiki/FAQ"]FAQ[/url] section on Site Migrations as it covers the things to check.

Mind, with the error I just saw it might even be an Apache configuration.
#5

[eluser]WanWizard[/eluser]
[quote author="omgnoseat" date="1279335697"]I might understand incorrectly, but I have no controller called test. With rewrite you mean the settings I altered when I moved the folder from wamp to my server?
Thanks[/quote]
Exactly. So I expected to get a CI 404 error. But I'm getting a 500 Internal Server Error. Which usually means you have a rewriting issue, which you need to fix first, as it can cause all kinds of issues.
#6

[eluser]omgnoseat[/eluser]
[quote author="jedd" date="1279337201"]I'm seeing a server error - it's confused about the mimetype x-httpd-phpcgi (see attached).

Have you done something weird with case? Often shifting from a WAMP to a platform that you didn't bother to describe (typically people shift to a GNU/Linux server - but it's still nice to know for sure) bites you with the fact that ignoring the esoteric CI case requirements on filenames works just fine on your MS-Windows development platform ... but is less forgiving on a real operating system. Check the [url="/wiki/FAQ"]FAQ[/url] section on Site Migrations as it covers the things to check.

Mind, with the error I just saw it might even be an Apache configuration.[/quote]
I have worked on several other hosts using codeigniter using the exact same configuration as I do now where it worked perfectly. I checked the part in the FAQ and everything was fine except when I tested mod_rewrite using this method http://www.tutorio.com/tutorial/enable-m...-on-apache.

I get the following error:
Code:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Seems like the problem lies here?
My knowledge on this is too limited to understand exactly whats happening.

You can check the mod_rewrite page out here if it's any help:
http://www.martinowullems.nl/test/
#7

[eluser]jedd[/eluser]
[quote author="omgnoseat" date="1279409735"]
I have worked on several other hosts using codeigniter using the exact same configuration as I do now where it worked perfectly. I checked the part in the FAQ and everything was fine except when I tested mod_rewrite using this method http://www.tutorio.com/tutorial/enable-m...-on-apache.
[/quote]

Ha! No two servers are ever the same (unless I installed them Wink

What's phpinfo tell you wrt rewrite?
#8

[eluser]omgnoseat[/eluser]
[quote author="jedd" date="1279413339"][quote author="omgnoseat" date="1279409735"]
I have worked on several other hosts using codeigniter using the exact same configuration as I do now where it worked perfectly. I checked the part in the FAQ and everything was fine except when I tested mod_rewrite using this method http://www.tutorio.com/tutorial/enable-m...-on-apache.
[/quote]

Ha! No two servers are ever the same (unless I installed them Wink

What's phpinfo tell you wrt rewrite?[/quote]
mod_rewrite is completly missing from php info.
I have contacted my hosting company about this, and I will simply switch hosts if the problem keeps occuring.

I'm trying different setups with htaccess now as my last attempt. Is there a default htaccess file that codeigniter user that has to be altered, or should I simply create a new one in the website folder?

Thanks




Theme © iAndrew 2016 - Forum software by © MyBB