Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After the commerce kickstart installation I got an 404 error. This was because I don't had clean urls enabled. So we always should redirect the users to ?q=admin/help/getting-started
.
Comment | File | Size | Author |
---|---|---|---|
#12 | commerce_kickstart-fix-404-after-install-1790316-12.patch | 742 bytes | jsacksick |
Comments
Comment #1
theo_ CreditAttribution: theo_ commentedNot able to reproduce it.
Can you please tell us how you installed commerce kickstart, which parameters on "Configure Site" & "Configure Store" pages ? And copy paste the error here.
Comment #2
yannickooI installed commerce kickstart normally and because of wrong configuration I don't had clean urls support so I had the error. Can you tell me where I can find the redirect in the code? Didn't found it :/
Comment #3
theo_ CreditAttribution: theo_ commentedline 467 of commerce_kickstart.install
But i tried without clean urls support and i was correctly redirected without 404 error.
Comment #4
egontinno CreditAttribution: egontinno commentedI got this error too. I didn't have .htaccess file, so clean urls was unavailable.
Comment #5
theo_ CreditAttribution: theo_ commentedOk this error occur only if you are missing the drupal .htaccess file.
Just bring the .htaccess back and it will work as expected.
Comment #6
mikejoconnor CreditAttribution: mikejoconnor commentedI get this same issue. It's due to the following setting in my apache config file, not the lack of a .htaccess file.
Personally I think this needs to be addressed. While I can understand that most people have support for clean urls, it's not supported across the board, especially in development environments such as the default bitnami mamp installer.
Comment #7
jsacksick CreditAttribution: jsacksick commentedYou need the .htaccess to make it work. putting the AllowOverride option to None will disable the use of the .htaccess file.
From http://httpd.apache.org/docs/2.2/en/howto/htaccess.html
Comment #8
mikejoconnor CreditAttribution: mikejoconnor commentedDrupal is designed to work with or without clean url's. If Commerce Kickstart has made a design decision that departs from Drupal's standards, such as not working without clean-urls, than we should have some sort of notification to the user. Otherwise Kickstart appears broken.
Comment #9
jsacksick CreditAttribution: jsacksick commentedHave you ever seen a standard drupal installation working with the AllowOverride none setting ? Because it tells not to use the .htacess file, with the .htaccess file disabling clean urls works, kickstart didn't change anything to break that.
Comment #10
jsacksick CreditAttribution: jsacksick commentedThis could be eventually done by doing that : http://drupal.stackexchange.com/questions/12977/how-to-set-up-drupal-7-o...
Comment #11
mikejoconnor CreditAttribution: mikejoconnor commentedI just tested on a default Drupal install. Works as expected. Furthermore, Kickstart works as expected once I manually change the path from http://example.com/admin/help/getting-started to http://example.com/?q=admin/help/getting-started.
One note though, the standard Drupal install doesn't automatically redirect me, but instead forces me to click a link to the home page. This may actually be an issue with drupal_goto(), or url() between the install process, and the operational site. Once I am on the site, the URL's are using the q parameter as they should.
Comment #12
jsacksick CreditAttribution: jsacksick commentedNot sure this is super clean but it works for me.
Comment #13
jsacksick CreditAttribution: jsacksick commentedHere's the gerrit commit https://code.drupalcommerce.org/#/c/599/
Comment #14
mikejoconnor CreditAttribution: mikejoconnor commentedThis solves the problem, however I still wonder why url() doesn't return the proper path.
Either way, it does solve the problem.
Comment #15
jsacksick CreditAttribution: jsacksick commented