Post by dmka250 » Thu Feb 13, 2025 5:57 pm

Hello,

I have a problem with redirecting the main page on the site. How it all started, I had a problem with a delay in switching links on the site when you switched the language, for example, from English to Spanish, and the link is still in English, but the site is already on the Spanish version.

I found a solution viewtopic.php?t=219473 in this post, changing the structure of link generation and this also solved the problem of adding the language code to the url.

But after that, a problem with switching on the main page arose. It redirects to https://new.megapc.ee/index.php?route=error/not_found. But this is only on the main page. I also used the extension https://www.opencart.com/index.php?rout ... n_id=45444. To make seo url links. I turned it off and deleted it, cleared the cache, nothing helped, htaccess is standard, I didn't change anything.

Maybe someone has encountered this and knows what the problem might be?

Newbie

Posts

Joined
Wed Aug 02, 2023 6:24 pm

Post by paulfeakins » Thu Feb 13, 2025 7:44 pm

Please read the Forum Rules.

Specifically, provide better information about your OC version, installed extensions, and the custom changes you've made so far.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by dmka250 » Thu Feb 13, 2025 8:14 pm

Sorry, here is some additional information about the problem.

Opencart version 3.0.3.9
PHP Version 8.3.14
eMarket website theme - Multipurpose MarketPlace Theme
Extensions that I use universal_import_export, pdf-invoicene, esto-oc-v3, [ocmod.net] products-subcategory, omniva-opencart, itellia-opencart
Languages ​​and translations that I use Estonian, English, Russian.
The error occurs on all browsers, I checked on Opera, the latest version of Google chrome and Eage
Website new.megapc.ee

Newbie

Posts

Joined
Wed Aug 02, 2023 6:24 pm

Post by by mona » Fri Feb 14, 2025 2:55 am

The function is not Opencart. Turn off your theme and check on default Opencart.
If it is not your theme check all your extensions that edit the header, turn the off, identify the culprit and contact the developer.

I suspect someone has tried to have a multi store set up per language and linked this in the language button because language change is not a redirect.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by paulfeakins » Fri Feb 14, 2025 7:26 pm

dmka250 wrote:
Thu Feb 13, 2025 8:14 pm
Opencart version 3.0.3.9
PHP Version 8.3.14
I don't think that OC version supports that PHP version, I believe it's only up to 8.1 or 8.2 - better check.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by dmka250 » Fri Feb 21, 2025 11:27 pm

Sorry for the late reply, this problem only occurs with the installed theme, I checked this problem on the default theme, there is no such problem.

I also found out that the problem is related to switching secondary languages. That is, if you switch in the default language, then switching works correctly, but if you switch in any other language, then it gives an error. It also makes a note in the URL ?language=en-gb, but only on the main page. On any other pages this does not happen.

Newbie

Posts

Joined
Wed Aug 02, 2023 6:24 pm

Post by paulfeakins » Mon Feb 24, 2025 9:03 pm

dmka250 wrote:
Fri Feb 21, 2025 11:27 pm
this problem only occurs with the installed theme
You could contact the developer of that theme?

Or switch to one of our themes:
https://www.opencart.com/index.php?rout ... er=antropy

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Elevate » Mon Feb 24, 2025 10:35 pm

It is best to reach out to the theme developer now that you have narrowed the issue down this far

ELEV8TE Website Development
Available for hire - please contact me at https://www.elev8tewebsitedevelopment.com/contact
https://www.elev8tewebsitedevelopment.com


User avatar
Active Member

Posts

Joined
Fri Jul 06, 2018 12:40 am
Location - Denver, Colorado, USA
Who is online

Users browsing this forum: Bing [Bot], pprmkr and 16 guests