Skip to Content

New J2Commerce 6.6.5 is out. Here is everything in the release.

See What’s New
Account
Enter the email address on your account.
Forgot your username?
Enter your password.
Forgot your password?

Or continue with

Closed Public Category: Technical Support / Bugs Ticket #160

Profile and other routes do not work with SEF URLs enabled

This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Conversation

Ian Wilson

The URL Routes for the user profile do not work with SEF URL re-writes enabled in nginx. Specifically for the addresses area - the buttons to "Save" and "Save and Close" do not work (the URL is not being mapped to the a tag). When you selecte "Shipping" or "Billing" from the drop down, an nginx 404 page is displayed. I ahve looked through the component files and see the URLs are hard-coded, and am not certain if there are any other hooks needed to get them to comply with the URL re-write logic in Joomla. 

 

Thank you for your help! 

Ian Wilson

Update to the instance the error appears. This also appears in EasyCheckout Component with SEF URLs on when you try to proceed to reveiw the order (if "next page") is selected in the component options. The issue presents as simply re-directing to the home page.

Attachments

2025-02-23_13-00-18.jpg
Olivier Buisard Staff

Hello Ian,

I was wondering if you have created menu item for:

  • checkout,
  • cart,
  • order confirmation.

These menus (even hidden) should exist for the router to properly create urls and not redirect to the homepage.

Olivier.

Ian Wilson

Yes, these menu items are created. Still having routing issues. 

Adam Melcher Staff

Ian,

 

I tried to login with the credentials you provided and it's thorwing : Username and password do not match or you do not have an account yet.

Can you verify those creds are still active?

 

Thanks,

 

Adam

The ticket information has been edited by Ian Wilson (ian@formativetudios.com).
Ian Wilson

Create a new user for you guys to use! So sorry for the delay on this, got pulled into other things. I updated the ticket with the new creds.

Olivier Buisard Staff

Hello Ian,

the credentials are not working still. Maybe the access permissions are incorrect?

Thank for rectifying, Ian.

Olivier.

Ian Wilson

Shouldnt be. The user is set up under Registered and Super User roles. Can you try logging in again?

The ticket information has been edited by Ian Wilson (ian@formativetudios.com).
Olivier Buisard Staff

Thank you Ian for the credentials.

I could not find why your site would not produce the same results as ours... We have the same SEF configuration and the same kind of server.

The problem arises in jQuery Ajax calls.

The requests do not start from the root but are happended to the constructed URLs.

I was able to fix issues by just modifying the override you have created (html/com_j2store/myprofile/address.php of your template).

By adding / in from of the URLs in the Ajax calls, the system is forced to start from the system root and this fixes the save/country select 404 errors you encountered.

This could be the same issue in Easy Checkout, I have identified an Ajax call that could need the same 'treatment' (no override possible, we will need to issue a bug fix release if it turns out to be case).

Olivier.

Ian Wilson

Thank you, I really appreciate you diving into this.