Training Catalogue Buy Access button gives 404 error

philreck
Forums
Hi, I have installed Opigno 7.x -1.17 with commerce. I have set up courses with payment required. In the Training Catalogue page, students can see a list of courses each with a 'Buy access' button which has a link like: http://site/group/node/21/subscribe/og_user_node - different node numbers for each course Clicking on this link gives a 404 page not found However clicking on the Course title takes you to the course correctly Once in this screen clicking on 'add to cart' works as expected and clicking on 'Subscribe to group' gives the page http://site?q=group/node/21/subscribe/og_user_node which displays 'Do you want to buy access to ......' as expected. So my question is: Why does the 'Buy/Access' button on the Training Catalogue page leave out the ?q= from the link? Hope someone can help
Profile picture for user James Aparicio
James Aparicio

Hi philreek

Hi philreek

Please enable clean urls and this will be fixed.

https://www.drupal.org/getting-started/clean-urls

Best regards

philreck

Training Catalogue Buy Access button gives 404 error

Thanks very much - that did the trick! Best regards
maurice67530

Clean URL

Hi, Tried to run clean URL test, ive got "The clean URL test failed" frustrated, any further help?
maurice67530

Hi,

Hi, i am a novice in this, do i have to work on the .htaccess or what? cant find my .htaccess file on my public folder
Profile picture for user James Aparicio
James Aparicio

Altering the .htaccess file

Altering the .htaccess file should not be required.

If you enabled mod_rewrite, that should be enough.

Best regards

maurice67530

please bear with me, where do

please bear with me, where do I get this mod_rewrite?
axel

It's a php addon

It's a php addon

maurice67530

hi,

hi, just thought to give feedback, mod-rewrite was enabled, and still failled to run tests successfully, however i worked some changes on my .htaccess files. all is running well Thanks