URL on error pages wrong

Need help with the Administration of your Joomla! 3.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
nrgiser
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Sep 15, 2017 8:12 pm

URL on error pages wrong

Postby nrgiser » Fri Sep 15, 2017 8:21 pm

Hi,

I have created a website based on a copy of another website. The source website was besco.be and the copy is stemato.com. All works fine except that when I trigger a 404 error (or any other error). At the bottom of the error page there is this text:
...or head over to www.besco.be/en to choose a new direction.

It still says www.besco.be instead of www.stemato.com. And the strange thing is that the url behind www.besco.be is www.stemato.com. So if you click you will end up on the correct site but the text is wrong.

Any idea where I can change this. I have looked everywhere. I even did a dump of my database and did a search in there. But I couldn't find it (or looked over it).

Kind regards,

Jan.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 33089
Joined: Sat Apr 05, 2008 9:58 pm

Re: URL on error pages wrong

Postby Webdongle » Fri Sep 15, 2017 9:36 pm

.htaccess file ?

nrgiser
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Sep 15, 2017 8:12 pm

Re: URL on error pages wrong

Postby nrgiser » Fri Sep 15, 2017 9:58 pm

No, I don't think so.
If I look for besco.be in there I don't find.

Thank you anyway.

Jan.

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 26185
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: URL on error pages wrong

Postby imanickam » Fri Sep 15, 2017 10:10 pm

When I reviewed both the sites, I observed that the Besco is a multilingual site and Stemato is a monolingual site. If in fact, Stemato is a monolingual site, Disable the plugin "System - Language Filter".

I would suggest checking in the file whether the variable $live_site (in the file configuration.php) has any hard coded value.
- Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 33089
Joined: Sat Apr 05, 2008 9:58 pm

Re: URL on error pages wrong

Postby Webdongle » Sat Sep 16, 2017 9:51 am

Code: Select all

stemato.com/nl
redirects to
stemato.com/en/nl (which has the correct url target with the wrong text <a href="https://www.stemato.com/">www.besco.be/en</a>
https://www.besco.be/nl/ does not redirect
This suggests that 'besco' is defined somewhere that 'stemato' should be. It's unlikely to be the $live_site (in the file configuration.php) as that would affect the menu urls also. It is most likely defined in a setting of the Template or a 3rd party extension. Do you use a 3rd party extension for the multilingual site ? If so is the site url defined there ?

Sajeed024
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Sep 16, 2017 11:40 am

Re: URL on error pages wrong

Postby Sajeed024 » Sat Sep 16, 2017 11:44 am

what is the 401 URL error?

nrgiser
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Sep 15, 2017 8:12 pm

Re: URL on error pages wrong

Postby nrgiser » Sat Sep 16, 2017 5:09 pm

Webdongle wrote:

Code: Select all

stemato.com/nl
redirects to
stemato.com/en/nl (which has the correct url target with the wrong text <a href="https://www.stemato.com/">www.besco.be/en</a>
https://www.besco.be/nl/ does not redirect
This suggests that 'besco' is defined somewhere that 'stemato' should be. It's unlikely to be the $live_site (in the file configuration.php) as that would affect the menu urls also. It is most likely defined in a setting of the Template or a 3rd party extension. Do you use a 3rd party extension for the multilingual site ? If so is the site url defined there ?


Webdongle, I don't use a 3rd party tool for multilanguage.

The strange thing is that when I disable the System - Language plugin ( as imanickam suggested), that the error pages are correct. The rest of the site breaks because of it, but at least the error pages are correct :eek:

Maybe this points you in the direction of a solution?

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 33089
Joined: Sat Apr 05, 2008 9:58 pm

Re: URL on error pages wrong

Postby Webdongle » Sun Sep 17, 2017 9:09 am

Are the two sites on the same server ?
If so are their site root folders parallel or one under the other ?

http://forum.joomla.org/viewtopic.php?f=621&t=582860 for both sites please

nrgiser
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Sep 15, 2017 8:12 pm

Re: URL on error pages wrong

Postby nrgiser » Sun Sep 17, 2017 10:10 am

Webdongle wrote:Are the two sites on the same server ?
If so are their site root folders parallel or one under the other ?

http://forum.joomla.org/viewtopic.php?f=621&t=582860 for both sites please


They are on separate servers.

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 33089
Joined: Sat Apr 05, 2008 9:58 pm

Re: URL on error pages wrong

Postby Webdongle » Sun Sep 17, 2017 11:44 am

Check your language override files for stemato site
Check settings in your Template for 404 file

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 26185
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: URL on error pages wrong

Postby imanickam » Sun Sep 17, 2017 1:03 pm

nrgiser wrote:The strange thing is that when I disable the System - Language plugin ( as imanickam suggested), that the error pages are correct.
I apologize for the typographical error in my previous post https://forum.joomla.org/viewtopic.php?f=708&t=954721#p3492420. I meant to say "If in fact, Stemato is a monolingual site, Disable the plugin "System - Language Filter"." Earlier, in the sentence referenced, it was mentioned a "multilingual site" instead of "monolingual site". For future reference, I corrected the error in the post.

Even today I reviewed your stemato site I do not see the Language Switcher module. If the site is a multilingual site just like the site besco, publish the Language Switcher module to the appropriate module position.
- Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged

nrgiser
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Sep 15, 2017 8:12 pm

Re: URL on error pages wrong

Postby nrgiser » Sun Sep 17, 2017 1:35 pm

imanickam wrote:
nrgiser wrote:The strange thing is that when I disable the System - Language plugin ( as imanickam suggested), that the error pages are correct.
I apologize for the typographical error in my previous post https://forum.joomla.org/viewtopic.php?f=708&t=954721#p3492420. I meant to say "If in fact, Stemato is a monolingual site, Disable the plugin "System - Language Filter"." Earlier, in the sentence referenced, it was mentioned a "multilingual site" instead of "monolingual site". For future reference, I corrected the error in the post.

Even today I reviewed your stemato site I do not see the Language Switcher module. If the site is a multilingual site just like the site besco, publish the Language Switcher module to the appropriate module position.


It's a monolingual site in the front end but since it's a copy of besco.be, which is a multilingual site, it's actually a multilingual site with just one language left.
I know this is not how it should be, but my customer requested to do it this way because it would be finished faster and thus cheaper.

nrgiser
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Sep 15, 2017 8:12 pm

Re: URL on error pages wrong

Postby nrgiser » Sun Sep 17, 2017 1:36 pm

I created the 2 FPA's.

How do I put them here?

User avatar
imanickam
Joomla! Master
Joomla! Master
Posts: 26185
Joined: Wed Aug 13, 2008 2:57 am
Location: Chennai, India

Re: URL on error pages wrong

Postby imanickam » Sun Sep 17, 2017 2:11 pm

nrgiser wrote:If I look for besco.be in there I don't find.
What I would suggest is to export the content of the database that the site stemco is connected to and search in the exported file. You can use tools/utilities such as phpMyAdmin to export the content of the database.

nrgiser wrote:It's a monolingual site
If it is indeed a monolingual site, it is not recommended to have the plugin "System - Language Filter" enabled. On the other hand, it is not clear whether the client would like to have the language tag "en" in all the URLs.
- Ilagnayeru (MIG) Manickam | இளஞாயிறு மாணிக்கம்
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 33089
Joined: Sat Apr 05, 2008 9:58 pm

Re: URL on error pages wrong

Postby Webdongle » Sun Sep 17, 2017 4:46 pm


nrgiser
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Fri Sep 15, 2017 8:12 pm

Re: URL on error pages wrong

Postby nrgiser » Sun Sep 17, 2017 6:12 pm

Webdongle wrote:http://forum.joomla.org/viewtopic.php?f=621&t=582860 explains how to copy/paste


I'm sorry but I don't see it in that topic. I see how to download, install and use it. And that is OK. I have the results. But I can't find how to copy paste it here. :(

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 33089
Joined: Sat Apr 05, 2008 9:58 pm

Re: URL on error pages wrong

Postby Webdongle » Sun Sep 17, 2017 8:49 pm

Oh sorry ... they have removed the spoon feed CTRL+A, CTRL+C and CTRL+A. They have left the image in though
fpa copy 01.JPG
You do not have the required permissions to view the files attached to this post.


Return to “Administration Joomla! 3.x”

Who is online

Users browsing this forum: Webdongle and 11 guests