name_based_urls

Open to all! Ask other shopowners for help.
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: name_based_urls

Post by raiwa »

Hi Steve,

Can you please try with the following version:
Name_Based_URLs_Lite.zip
Only the following file has changed:
includes\system\override\name_based_urls.php

If the error persists, please try to find out on which page and in which condition it shows.
You do not have the required permissions to view the files attached to this post.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27


Join The Code Co-op to get access to your library in the Code Co-op Forum
14Steve14
Senior Contributor
Posts: 923
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: name_based_urls

Post by 14Steve14 »

raiwa wrote: Sun Jul 21, 2024 8:14 am Hi Steve,
If the error persists, please try to find out on which page and in which condition it shows.
Replaced just that file. I will keep an eye on the error logs as see if the error has gone. I have no idea what was causing it. I have tried most things and cannot get the error to show. After a few days the error shows and it shows many times in a block of errors, goes away a gain and then reshows, again in a block. No idea what the customers are doing.
14Steve14
Senior Contributor
Posts: 923
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: name_based_urls

Post by 14Steve14 »

Hi @raiwa I have another problem with name based URLs as supplied with pro version.

Phoenix 1.0.9.0 PHP8.0

I have a bit of a strange problem that has been pointed out by a customer.

This customer has several download files in his shopping basket and has decided to not purchase at this time so wants to add the items into his wishlist. When he clicks on the link to the product in his shopping basket rather than go to the product page it looks like he is being directed to our 403 page not found page.

We can log in to his account and can replicate the problem. If I log in to my own account and add a download file into the basket I get the same problem. If I add any other physical product into the basket and click on the link I am taken to the product page as I expect. It seems only to be the download files where the problem occurs.

There are no errors in the error log files as I assume the site thinks it doing the right thing with the 403 error page.

If I change any settings in the admin setup page for Name based URLs nothing changes.

If I remove name based URLs the problem goes away and everything works as it should and clicking on a download file link in the shopping basket takes me to the product page.

On my test site which does not have name based urls installed the site works as it should.
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: name_based_urls

Post by raiwa »

Hi Steve,

Please provide always your exact addon, Phoenix and PHP version.

I suppose the problem is not specific for downloadable options, but for all products with option attributes.

I'm not sure that this is a name based url problem. The URLs are setup correct for product links with option/attribute parameter in shopping cart products and it works correct on my test stores.
Example:
http://localhost/xxxxxxxxxxx/shiny-apples-p-4{1}1.html
and the link opens the product page with the option attribute selected as it should be.

Maybe you could post a sample URL with the shopping cart product link.

What I do not understand is how the wishlist is getting involved in this. I do not have a test installation with wishlist and do not know what is the influence of it.

It could also be your error page redirect setup.

Anyway you could send pm me the store URL, supposed its public, and I could have a look.

Thank you
Rainer
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
14Steve14
Senior Contributor
Posts: 923
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: name_based_urls

Post by 14Steve14 »

raiwa wrote: Wed Aug 21, 2024 8:38 am Hi Steve,
Please provide always your exact addon, Phoenix and PHP version.
I did. It was in the first few lines of the post.
What I do not understand is how the wishlist is getting involved in this. I do not have a test installation with wishlist and do not know what is the influence of it.
The customer had items that were downloads in his basket and wanted to add them into his wishlist as he didn't want to buy them at this time. The only way for him to add them into his wishlist was to click on the product name link in the basket so he could be taken to the product page where there is a link to the wishlist. Thats how we found out there was the error.

I have sent you a PM with the website URL. All you need to do is to add any of the items in any of the download categories into the shopping basket. No need to log in. Click on the item name of the product in the basket and you will be taken to an error page where the link is being directed to.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply