Author Topic: Redirecting? URL Issue?  (Read 4473 times)

Offline hislordship

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +7/-0
    • View Profile
Redirecting? URL Issue?
« on: April 16, 2019, 10:56:52 AM »
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?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: Redirecting? URL Issue?
« Reply #1 on: April 17, 2019, 01:11:22 AM »
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

Offline hislordship

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +7/-0
    • View Profile
Re: Redirecting? URL Issue?
« Reply #2 on: April 17, 2019, 11:00:46 AM »
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!

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: Redirecting? URL Issue?
« Reply #3 on: April 18, 2019, 01:20:11 AM »
Try to clear AbanteCart cache

Offline hislordship

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +7/-0
    • View Profile
Re: Redirecting? URL Issue?
« Reply #4 on: April 20, 2019, 03:12:00 AM »
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


 

Offline hislordship

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +7/-0
    • View Profile
Re: Redirecting? URL Issue?
« Reply #5 on: April 21, 2019, 11:07:09 AM »
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?

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Redirecting? URL Issue?
« Reply #6 on: April 22, 2019, 03:44:27 AM »
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

Offline hislordship

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +7/-0
    • View Profile
Re: Redirecting? URL Issue?
« Reply #7 on: April 23, 2019, 03:54:42 AM »
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.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: Redirecting? URL Issue?
« Reply #8 on: April 23, 2019, 05:31:33 AM »
As a suggestion check DNS settings and .htaccess redirects

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: Redirecting? URL Issue?
« Reply #9 on: April 23, 2019, 08:17:46 AM »
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

Offline hislordship

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +7/-0
    • View Profile
Re: Redirecting? URL Issue?
« Reply #10 on: April 24, 2019, 10:47:24 AM »
So far I've disabled HTML cache and the problem seems to have gone away. Not ideal but it works.

 

Powered by SMFPacks Social Login Mod