1

In Drupal 7 I'm using a view export to download information for my orders.

If i go to the default url /admin/commerce/orders then the page downloads correctly.

However, I also have some filters so I can download only the orders I need, this passes a query string to the view which causes a 404 error (page not found).

In example:

/admin/export/orders?status[0]=invoiced&event=All&school=&uid=&held=All&attach=admin_page

I can't find out why this is causing a 404 error.

I have another view with the same configuration and it works fine. It is a number of query or something?

3
  • What is your view's "no result behavior"? And are you using anything like Views 404?
    – Mołot
    Commented Oct 28, 2014 at 12:45
  • 1
    Could it be because school and uid are empty?
    – Clive
    Commented Oct 28, 2014 at 13:13
  • Cross check with passing individual parameter, I doubt the error is because of status[0], but not sure.
    – user36960
    Commented Oct 28, 2014 at 13:36

1 Answer 1

0

Are you using views_data_export? The most likely reason you are getting a 404 (are you sure it's not a 401?) is that your path starts with "/admin" and the menu system may be protecting it because its not sure which view you are loading.

Also, by default, Commerce rewrites all order and product SQL statements to enforce the permissions system. You can turn off the SQL rewriting if you know what you are doing (this is a security risk).

disable sql writing

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.