News:

AbanteCart v1.4.2 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Redirecting? URL Issue?

Started by hislordship, April 16, 2019, 10:56:52 AM

Previous topic - Next topic

hislordship

Hello

I wonder if anyone knows why my site is up to... well...  >:(

Have a look at https://www.tjn.co.za
Works fine.

Now test the categories. Most work fine.
Try the WORK/BUSINESS category and hover over a product - you will end  up with a URL of mail.tjn.co.za... and a session ID.

Same happens with SPORT-SOCCER but not any other SPORT subcategories.

Once it has that URL, then all the category links etc all have that URL, where they were fine before with https://www.tjn.co.za

Does anyone have a suggestion?

Basara

Hello.

It is definitely not AbanteCart behaviour. I highly recommended to compare your template (and core too) files with source https://github.com/abantecart/abantecart-src/releases

hislordship

I decided to test this out a bit before comparing files as suggested.
The problem seems to be fixed after turning off a category and then turning it back on again.
Most bizarre!

Basara

Try to clear AbanteCart cache

hislordship

Thank you, I've just done that.
Will wait to see if it helps.


Just for interest, the error message in the log is as follows:

2019-04-19 18:35:11 - App Warning: AbanteCart core v.1.2.13 Warning: Accessing store with non-configured or unknown domain ( mail.tjn.co.za/ ).
Check setting of your store domain URL in System Settings. Loading default store configuration for now. in /home/tjncoza/public_html/core/lib/config.php on line 228


The store URL setting is set as:
Store URL: http://www.tjn.co.za
Secure Store URL: https://www.tjn.co.za



hislordship

Before I forget, the site is running version 1.2.13

So clearing the cache doesn't work. Problem still there today.
It's not always present, the site may look fine but have an issue when I come back later.

I've tried downloading the site via ftp to my pc and using PHPStorm to search for mail.tjn.co.za in the files.
The only instance  is in abantesql.sql with this:
https://mail.tjn.co.za/patagonia-express-medal?session_id=dodsqlhvmu6heb459lcaffp4u1

which is the URL to a product (https://www.tjn.co.za/patagonia-express-medal being the correct URL).


Any more ideas?

abolabo

Your site under SSL (https) but items urls in plain http protocol.
I see redirects in browser devtools. Probably related to this.. not sure
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

hislordship

I tried switching off the cache and the issue has disappeared so far.
So it looks like this is related to the way the cache is created or managed.

Which cache option is recommended?
It was set to the default FILE option.

Basara

As a suggestion check DNS settings and .htaccess redirects

Basara

Hello.
We think you have to set up redirects from the
https://mail.tjn.co.za and http://mail.tjn.co.za to your store url http(s)://www.tjn.co.za
You can do this in .htaccess

hislordship

So far I've disabled HTML cache and the problem seems to have gone away. Not ideal but it works.

Forum Rules Code of conduct
AbanteCart.com 2010 -