• Home
  • Get help
  • Ask a question
Last post 17 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67848
All time tickets 10485
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#20 – Various problems

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Tuesday, 07 April 2015 08:49 UTC
xstelios
 Hi.

I have some functional problems in my site after installing sh404sef. I use joomla 2.5.28 with K2 item contents (latest version). My site is multilanguage, using joomla's default language switcher. My default language is greek and the other is english.

1st Problem:
All greek and english links seems to work fine exept the "Home" menu item at the "english version" on my site. When i click on it, it takes me to the default greek "Homepage" and not in English Homepage as it shoud be. When i disable Sh404sef-system plugin the problem dissapears.

2nd Problem:
I also have the latest version of aicontactsafe componet which is SEF supported through sh404SEF, as they mention in their documentation. Nevertheless i can't make it to have a sef url in both greek and english contact pages.

3rd Problem:
When someone gets a sh404sef 404 error page, the "Bad Karma" description, appears twice in the mainbody. You can see what i mean if you go to a wrong url on my site like: xxxx (english ver.) or xxxx (greek ver.)

My website url of course is xxxx

I realy need some help with the above problems.
Thank you in advance,
Stelios.
Tuesday, 07 April 2015 13:23 UTC
wb_yannick
Hi

As with most multilingual setups, I will have trouble figuring it out remotely. The simplest way would be for you to install akeeba backup, and provide me with admin access so I can download the backup. I can then install locally and step through the code.

In addtion:
Pb 1: needs backup
Pb 2: do you mean that urls stays non-sef, or just that they don't work (ie gives a 404) or something else?

Pb 3: Does this happen with a default template?

Rgds
 
Tuesday, 07 April 2015 16:02 UTC
xstelios
Hi

Pb1. As i have never used akeeba backup in the past, nevertheless i tried to take a backup with all the default settings of akeeba, but i took this error during the prosses "Invalid AJAX data: (HTML containing script tags)" , I tried again with different settings, but i took the same error. I attached the log error.

Pb2. Yes i mean that urls stays non-sef

Pb3. No this doesn't happen with the default template.

Rgds
Wednesday, 08 April 2015 10:06 UTC
wb_weeblr
I don't see any file attached (for the error log). Do you have that?

 
Wednesday, 08 April 2015 10:50 UTC
xstelios
Hi

I can't send you a txt log file through your attachment in your contact form..

If i send you an administrator account to login to my backend site, is this going to help you?

Rgds
Wednesday, 08 April 2015 11:56 UTC
wb_weeblr
I have added .txt to the list of uploadable files, please try again.

Also, yes, pleas post here superadmin credentials, it will speed things up

Rgds
 
Wednesday, 08 April 2015 12:23 UTC
xstelios
Ok.

Here are the credentials:
xxxx
username: xxxx
pass: xxxx

Please be carefull. This is a live site.

I'm also sending you the log file

ps1. i manage to fix problem 3, disabling the the tamplate cache .
ps2. There is one more problem. If i create two sh404sef 404 error pages (one Greek and one English), only in Greek ver. appears correctly . If the site is in english ver. then it appears the template's default 404 error page.
Wednesday, 08 April 2015 13:26 UTC
wb_weeblr
I was not able to make an Akeeba backup, it does fail and that would be one thing you'll have to bring up to Akeeba for a solution (the database backup is fine, it fails when starting to backup the files).

I am not going to be able to do anything else without a backup I can install locally. I just spent 20 minute in the backend of your site, checking various things to no avail. As far as I know, the problem can be anywhere, in k2, in the template, in sh404SEF,... and I need to run tests, put debugging instructions to understand what's going on.

Are you able to take a backup somehow? through your host control panel or some other way? surely you must have a backup?

Rgds

 
Wednesday, 08 April 2015 13:36 UTC
xstelios
my hosting provider hasn't gave me Access to host control panel, but i have a backup of my SQL which i can send it you perhaps with an email. But how can i send you the joomla files??

Thank you for your patient...
Wednesday, 08 April 2015 13:59 UTC
wb_weeblr
I don't really know how to do that outside of Akeeba, which is really the only good solution.
But that's really terrible for you, because if something happens to your site, you have no way to restore it. I'd suggest to see with your host how you can get such full backup, that's really a basic requirement, not just for sh404SEF debugging, but just for your business.
Please try to find a solution with them, and then we can also see later with Akeeba if they can help on making Akeeba work.

Honestly, if you don't have a working backup, I don't really want to work on your live site, that's too dangerous for you. We have to find a solution for that first.

Rgds
 
Wednesday, 08 April 2015 14:27 UTC
xstelios
It's true that i have many problems with my hosting company and i want to get rid of them. I have asked them to give me Access to my domain name dns Server in order to change nameservers and hosting provider. Until then i don't know what else to do. As i told you i have allready my SQL backup in my local computer and of course all the files. So if anything goes wrong i can restore them. I will try to make a full backup for you with Akeeba, and i will let you know.

Thank you
Wednesday, 08 April 2015 15:00 UTC
wb_weeblr
ah ok, if you have those files locally, then we can do something

Please just do a zip with the files and another with the sql, and then put them on a dropbox folder or some other place where I can download them.

They will be too big for email I think, but we can find a way

Actually, I just have a new version that may fix the problem. So instead i can make it available to you and you install on your local machine, and see how it goes?

Rgds
 
Thursday, 09 April 2015 06:42 UTC
xstelios
Good morning. I have start uploading the zip files to dropbox in order to send to you. Meanwhile, can you make available to me the version which may fix the problem, in order to test it?

Thank you. :)
Thursday, 09 April 2015 11:09 UTC
wb_weeblr
Yes, you can get it here: https://copy.com/73Ui7xxxx

Rgds
 
Thursday, 09 April 2015 11:37 UTC
xstelios
Hi again.

Unfortunately neither this version seems to correct the problems. The problems with multilanguage "homepage" and "sh404sef 404 error page" are still remaing. At least in my website.

I'm trying all morning to upload my files to dropbox in order to send to you, but i'm getting a dropbox error all the time. Can you send me an email to sent them with "we transfer" ??

Rgds
Thursday, 09 April 2015 12:05 UTC
wb_weeblr
just send to [email protected]
 
Thursday, 09 April 2015 16:24 UTC
xstelios
I send them, but i think the "test" user i had created for u doesn't exist in the db i've sent you. So i thnik you can reset admin password from db. If not, let me know..

Rgds..
Thursday, 09 April 2015 18:07 UTC
wb_weeblr
Hi

Got your files, and spent pretty like 2 hours debugging step by step!
No worries, I created a user for me in the DB.


Point 1: I was convinced by what you said and initial testing that the problem was in sh404SEF so I spent a lot of time testing in all directions, and could not find anything. Everytime I clicked on Home link of english page, I would switch back to Greek. And then I realized that this was absolutely correct!
Problem was not switching to Greek. Problem was that the URL for this link was xxxx. That's the Greek home page and so sh404SEF was correct switching to greek.
So I searched why the link was xxxx instead of xxxx, and I couldn't find the problem because I was seeing that sh404SEF was calculating the correct link, xxxx

And finally, I started looking elsewhere and I found the problem: the template.
The template is overriding the menu system, and calculating its own links, and there's a problem there. I found how to fix it. What you have to do is modify:
templates/xxxx

at line 386, replace:
$data = '<a href="' . $tmp->url . '" ' . $active . ' ' . $id . ' ' . $title .

with
$data = '<a href="' . $tmp->flink . '" ' . $active . ' ' . $id . ' ' . $title .


That fixes it for me, though you have to clear cache, or even disable cache to be sure you see the good result and not the cached one.

Point 2:- aiContactsafe: they do not support SEF at all. I could not find router.php and there's no sh404SEF plugin. Maybe it's a separate download? I'd suggest to ask them.
You can also create a custom SEF url in sh404SEF, that would be very quick:

1.Go to the url manager in sh404SEF
2. Click on new button
Enter a SEF url, for instance xxxx
Enter non-sef url: index.php?option=com_aicontactsafe&view=message&layout=message&pf=4&redirect_on_success=&Itemid=124&lang=el
3 - click save
4. Redo the same for english:
SEF: Contact-us
non-SEF: index.php?option=com_aicontactsafe&view=message&layout=message&pf=3&redirect_on_success=&Itemid=262&lang=en

Please test the the contact forms work after those changes, I didn't.

Point 3: That I found was a bug. The language used for the 404 is not correct in some situations where the visitor already have a language cookie set by Joomla from a previous visit or if has seen some page before hitting the 404 page.
You can download a development version of sh404SEF that fixes the problem at this url: https://copy.com/xxxx.

You should first do all tests locally before you upload new versions on the live site, but I'm sure you know that ;)

Let me know how it goes

Rgds

Yannick

NOTE: you should remove the value you put in the "Homepage URL" parameter of sh404SEF advanced section. Only needed when you have a splash page. (currently you have http://xxxx/index.php and this is not correct, can only cause issues)

 
Thursday, 09 April 2015 20:20 UTC
xstelios
Dear Yannick you're awesome.. It's realy working now...I change GKBase.class.php as you told me and the english homepage is working great. Is there possible to fix the logo url too, in the same way in english ver.??

I haven't try yet the solutions for the other two problems, but as soon as i tried them, i will let you know. And of course i'm going to bring up to Aicontactsafe the fact mentionig that they support sh404sef.

A very very big THANK YOU...
Friday, 10 April 2015 09:51 UTC
wb_weeblr
Hi

Unfortunately I deleted your site on my local machine, including the zip files. I have started to redownload them from wetransfer, I'll try reinstall and see about the template, but I can't tell you when.

Rgds
 
Friday, 10 April 2015 15:16 UTC
wb_weeblr
ok, so I got the template to work as well
You need to modify /templates/xxxx/logo.php, at line 39:
Change:
<a href="/<?php echo JURI::root(); ?> ">

to
<a href="/<?php echo JRoute::_('index.php'); ?>">


Then purge all Joomla cache and the logo link should be consistent with other links

Rgds


 
Monday, 20 April 2015 08:07 UTC
xstelios
Dear Yannick,

sorry for my delayed answer. I just wanted to thank you for your help. As i am in a proggress to upgrade my joomla cms and change my template, i haven't tested the development version you recommend, in order to solve the language problem for the 404 page. You can close this ticket for now, and as soon as i finish with my upgrades, i will get back with a new ticket if i have the same problem after testing your development version.

Thank you
Rgds
Stelios
Monday, 20 April 2015 10:46 UTC
wb_weeblr
ok, thanks for coming back to me. I'll close the ticket now!

Cheers
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.