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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

theo_’s picture

Status: Active » Postponed (maintainer needs more info)

Not 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.

yannickoo’s picture

Status: Postponed (maintainer needs more info) » Active

I 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 :/

theo_’s picture

line 467 of commerce_kickstart.install

But i tried without clean urls support and i was correctly redirected without 404 error.

egontinno’s picture

I got this error too. I didn't have .htaccess file, so clean urls was unavailable.

theo_’s picture

Status: Active » Closed (works as designed)

Ok this error occur only if you are missing the drupal .htaccess file.

Just bring the .htaccess back and it will work as expected.

mikejoconnor’s picture

Version: 7.x-2.0-rc1 » 7.x-2.0
Status: Closed (works as designed) » Needs work

I get this same issue. It's due to the following setting in my apache config file, not the lack of a .htaccess file.

    AllowOverride none

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.

jsacksick’s picture

Status: Needs work » Closed (works as designed)

You 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

The use of .htaccess files can be disabled completely by setting the AllowOverride directive to none:
AllowOverride None

mikejoconnor’s picture

Status: Closed (works as designed) » Needs work

Drupal 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.

jsacksick’s picture

Have 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.

jsacksick’s picture

mikejoconnor’s picture

I 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.

jsacksick’s picture

Status: Needs work » Needs review
FileSize
742 bytes

Not sure this is super clean but it works for me.

jsacksick’s picture

mikejoconnor’s picture

Status: Needs review » Reviewed & tested by the community

This solves the problem, however I still wonder why url() doesn't return the proper path.

Either way, it does solve the problem.

jsacksick’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.