jDiction Forum

English => General Questions => Topic started by: d4rkbl4de on July 30, 2014, 04:01:10 pm

Title: News doesn't switch
Post by: d4rkbl4de on July 30, 2014, 04:01:10 pm
Hi!

My client has just informed me that the latest news on their website doesn't switch any more despite being translated. I checked and indeed, it's all the news.

http://collegeacadieipe.ca/index.php/en

Do you have any idea what could cause this?

Version   
Library Version: 1.2.0
Joomla Version 3.3.3 is untested.

Plugin   
JDiction Plugin is enabled
Languagefilter is enabled

Database   
jDiction Database Driver is selected

Language   
Seam to be good

Module   
Module is enabled
Title: Re: News doesn't switch
Post by: Harald Leithner on July 30, 2014, 04:47:03 pm
You have a good chance that the attached version fixes the problem.
Title: Re: News doesn't switch
Post by: d4rkbl4de on July 30, 2014, 05:01:16 pm
Damn, when I install it, it gives me this error:

 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE `irhqx_jd_store` DROP INDEX `idLang` , ADD UNIQUE `idLang` ( `id' at line 2 SQL=ALTER TABLE `irhqx_jd_store` CHANGE `referenceTable` `referenceTable` VARCHAR( 67 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'Table of the translation' ALTER TABLE `irhqx_jd_store` DROP INDEX `idLang` , ADD UNIQUE `idLang` ( `idLang` , `referenceTable` , `idReference` )
Title: Re: News doesn't switch
Post by: Harald Leithner on July 30, 2014, 06:35:06 pm
strange, anyway did the package install?
this only changes the index of the table that maybe already done.
Title: Re: News doesn't switch
Post by: d4rkbl4de on July 30, 2014, 09:33:37 pm
Sadly no. it's still version 1.2.0 :/
Title: Re: News doesn't switch
Post by: Harald Leithner on July 30, 2014, 09:41:09 pm
retry with the attached version, I know its same git hash but its another build
Title: Re: News doesn't switch
Post by: d4rkbl4de on July 31, 2014, 02:12:55 pm
Library Version: 1.2.9.3-git.2014f44
Joomla Version 3.3.3 is untested.

It did install! Now, when I try to switch in the news section, it gives me this error :

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '9,10,11,12,13,14,15,16,17,18,19,20,224,225,226,234,237,238,239,240,241,242,243,2' at line 3 SQL=SELECT * FROM irhqx_jd_store WHERE idLang='1' AND referenceTable='#__content' AND idReference in (,9,10,11,12,13,14,15,16,17,18,19,20,224,225,226,234,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251)

However, the rest of the articles switch fine.
Title: Re: News doesn't switch
Post by: Harald Leithner on July 31, 2014, 02:20:57 pm
Ok, this shouldn't happen because it tries to preload an article without and ID...
please try the attached version.
Title: Re: News doesn't switch
Post by: d4rkbl4de on July 31, 2014, 03:04:21 pm
Aw, it doesn't show an error now BUT, it's still doing the same thing as initially - it just goes to the homepage of the opposite language, not the article. If you want the admin access, I can give you one. :)
Title: Re: News doesn't switch
Post by: Harald Leithner on July 31, 2014, 04:39:44 pm
thats another problem, this could happen if the "home" menu is a featured or category view and the article is not in a sub category...
it could take some time to fix this.

whats the type of the home entrY?
Title: Re: News doesn't switch
Post by: d4rkbl4de on July 31, 2014, 06:21:04 pm
Articles ยป Category Blog with the category News chosen
It is the news that are doing that bug too! :0
Title: Re: News doesn't switch
Post by: Harald Leithner on July 31, 2014, 06:37:52 pm
so the problem is only for news articles correct?
Title: Re: News doesn't switch
Post by: d4rkbl4de on July 31, 2014, 06:43:39 pm
Exactly! :)
Title: Re: News doesn't switch
Post by: Harald Leithner on July 31, 2014, 06:45:41 pm
I will try to solve this problem tomorrow local time is UTC+1
Title: Re: News doesn't switch
Post by: Harald Leithner on August 01, 2014, 10:28:44 am
Fix is ready, it works for you I will release 1.3.0 today.
Title: Re: News doesn't switch
Post by: d4rkbl4de on August 01, 2014, 02:33:29 pm
Yes it does! Thank you so much for all your hard work! :) <3
Title: Re: News doesn't switch
Post by: Harald Leithner on August 01, 2014, 02:50:28 pm
You are welcome