I just close an annoying ticket about siwapp throwing a not found error after login. That bug has been bothering me for a long time now.
It turned out it was all because of the web server not having the rewrite module ! and it’s also said so in the installation guide specs !
I’ve added a check for that feature on the installation code, but please remember: rewriting is needed


14 Comments
Hi Jzarate,
Thank you very much for your (and your team) effort building such a wonderful app that I’ve been searching for years.
I’m not sure if it’s appropriate to post here – I hit the exact problem that the 404 not found after clicking Login button. I spent an hour making sure the .htaccess is there along with the parent folders but I still can’t get through! I tried to upload it on another host (hostgator) and it still got the same problem. Possible to the the rewrite off? or What should I do to get this wonderful app working? I dont have access to the httpd.conf but I think the default left it to AllowOverride All in hostgator. Many thanks in advance!
Alan.
If you feel like spending some useless time, you can do a a test to see if your apache’s rewrite engine is on.
create a file called “test_rewrite1.txt” with the contents “test_rewrite1″ inside, and a file called “test_rewrite.txt” with the contents “test_rewrite2″ inside.
upload both to the same place you have your .htaccess file
get you .htaccess file, and write this just after the “RewriteEngine On” directive
RewriteRule test_rewrite1\.txt test_rewrite_2.txt
then upload your .htaccess file again, go to your browser and go to
http://yourserver.com/path_to_siwapp/test_rewrite1.txt
if rewrite is on, you should see “test_rewrite2″ at your browser. if you see “test_rewrite1″ then your rewrite engine is off.
If you have rewriting enabled, but still no luck, you can try to uncomment the “RewriteBase /” line in your .htaccess file (this is strictly a wild guess).
Otherwise, you can also try to access siwapp through the development environment. get your siwapp_dev.php file, and comment out the lines:
if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')))
{
die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
}
and then access http://yourserver.com/path_to_siwapp/siwapp_dev.php
Jzrate, Thanks so much for your reply. I tried to pyt siwapp on 4 different servers, – my computer; a server runs centOS with ISPconfig; bluehost; hostgator; They all run into the same problem of the .htaccess (404 error).
I tried to use your method to test the rewrite, it worked! It reads the other file as the .htaccess rewrite rule assigned. However the .htaccess on Siwapp doesn’t work in all the servers I tried.
I then use the development mode which works fine but the bar on top appears. How to remove it as the images are not displaying which is very annoying. Thank you very much!
You could try to access
http://yourserver.com/path_to_siwapp/index.php and see if it works.
otherwise, you could keep using siwapp_dev.php, but edit the file first:
locate the line:
$configuration = ProjectConfiguration::getApplicationConfiguration('siwapp', 'dev', true);and replace by
$configuration = ProjectConfiguration::getApplicationConfiguration('siwapp', 'dev', false);PS. So in all the 4 servers you tried, rewriting was working properly but still no luck with the 404?
Yes, all 4 servers are the same. Rewrite works but still 404.
how to remove the tool bar on the top right?
Hi, I’m using dev mode but when I use the “send and save invoice”, the email sent out will use the production URL for the logo, as my rewrite on my webserver doesn’t work, it can’t be displayed. I searched a bit but can’t find a solution. Could you point out where I should modify in the source?
Alan.
A few things.
1.- The debug bar: go to apps/siwapp/config/settings.yml and change this
dev: .settings: error_reporting: < ?php echo (E_ALL | E_STRICT)."\n" ?> web_debug: true cache: false no_script_name: false etag: falsefor this:
dev: .settings: error_reporting: < ?php echo (E_ALL | E_STRICT)."\n" ?> web_debug: false cache: false no_script_name: false etag: false(I’ve only changed the “web_debug” value from “true” to “false”.This way you should get your debug bar disabled.
2.- I think that , regarding your issue, rewriting is not the problem you’re facing. In order to proof that, log out of your siwapp and then go to http://yourserver.com/your_siwapp_path/blabla.blabla(that's right, write “blabla.blabla”)if rewrite is working in your siwapp, you should get the standard apache 404 not found page.then access to http://yourserver.com/your_siwapp_path/blablabla(that’s right, the same “blabla” but with no dot this time).If rewriting is working, you should get the siwapp login page. (remember that you had to be logged out first).
3.- If your server has rewriting working (which it probably has), then your 404 issue is because other thing. Could you please try this and tell me what happen? a. access to the login page (in “production” mode, not in “develpment mode”). and input your username/password b. following that, you should get the annoying 404 page, but my hopes are you are already authenticated. try to put some siwapp url in your url bar:http://yourserver.com/your_siwapp_path/dashboard orhttp://yourserver.com/your_siwapp_path/customersand also try http://yourserver.com/your_siwapp_path/siwapp_dev.php/customers
and post back with your results.
Note: if you feel more comfortable, you can use the siwapp-users group for this
The server should answer you
Ouch, it looks so ugly: here I go again.
change this
(I’ve only changed the “web_debug” value from “true” to “false”.)
Hi there,
I had a simillar issue to Alan’s one.
As far as I know, my shared host had the mod_rewrite enabled, but it doesn’t work properly, even the test_rewrite method that you suggest does not work, but if I use the siwapp_dev.php then everything seems to work fine.
So, I’ve modified .htcacces file by uncommenting the “RewriteBase /” but adding after the ‘/’ my siwapp path, et voilá…
Hi guys,
I have installed this software correctly and the installation was also complete. but when i tried to open the index file i got this msg..
” Warning: require_once(/config/ProjectConfiguration.class.php) [function.require-once]: failed to open stream: No such file or directory in /home/instudi2/public_html/account/index.php on line 12
Fatal error: require_once() [function.require]: Failed opening required ‘/config/ProjectConfiguration.class.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/instudi2/public_html/account/index.php on line 12 ”
can anyone help me with this guys.. i need the solution of this asap.. my work is almost stopped bcoz of this..
Is there a chance that you will fix this error in the future? I have tried 3 times to install siwapp in Ubuntu 10.04 server with no success because of the “The requested URL /login was not found on this server.” error … any help at all?
so can someone tell me where i can get a web server where i have the control of the re-write that doesn’t cost my first born?
I currently tried this on a really cheap web space on godaddy and it doesnt work at all
I contacted godaddy support and they said that re-write is on the server and I shouldnt need to turn it on. but whenever I do the steps mentioned above it gives me the negative results. All I am getting when I go to the 2nd step of install is “No input file specified. ”
can anyone help me here?
thenk you
I too have this issue. Clearly it is a bug. When i use the dev url , it works seemingly fine.
I have to say though, no htaccess file was created i the install. perhaps, if you can provide exact syntax of both files (web and root versions) it would help?