jDiction Forum

English => General Questions => Topic started by: pivovary on November 18, 2019, 07:54:38 am

Title: After update to Joomla 3.9.13 Jdiction not working
Post by: pivovary on November 18, 2019, 07:54:38 am
Hi,
after update Joomla! to 3.9.13, Jdiction not working. I have all content, which one is translate on JDiction still in default language.

Update:
Maybe this is problem no Joomla! but PHP with PHP version 7.3.9 is fatal error, on PHP 7.1.32 work no problem.

PHP 7.3.9

Fatal error: Declaration of PHPSQLParser\processors\ReplaceProcessor::process($tokenList) must be compatible with PHPSQLParser\processors\InsertProcessor::process($tokenList, $token_category = 'INSERT') in /domains1/gh43424600/public/www_root/libraries/jdiction/database/parser/processors/ReplaceProcessor.php on line 52
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: Harald Leithner on November 18, 2019, 08:49:24 am
Which version are you using?
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: pivovary on November 18, 2019, 09:04:57 am
Sorry, i use last version Jdiction 2.2.2 and Joomla 3.9.13
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: Harald Leithner on November 18, 2019, 09:09:44 am
you can try to switch the database driver to the xml driver.
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: pivovary on November 18, 2019, 09:14:22 am
I see only Mysqli, Pdomysql and Jdiction_Mysqli and also is problem with select database driver.
I select Jdiction_mysqli but after save still is checked Mysqli but in cofiguration.php is jdiction_mysqli.
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: Harald Leithner on November 18, 2019, 09:25:21 am
Can you please post the output of the check page?
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: pivovary on November 18, 2019, 09:37:05 am
On email you have urls and also login to backend.
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: Harald Leithner on November 18, 2019, 09:49:11 am
can you replace the line at 54 in file libraries/jdiction/database/parser/processors/InsertProcessor.php
Code: [Select]
public function process($tokenList) {with
Code: [Select]
public function process($tokenList, $token_category = 'INSERT') {
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: pivovary on November 18, 2019, 10:03:22 am
I update /libraries/jdiction/database/parser/processors/ReplaceProcessor.php in InsertProccessor on line 54 was another function but same problem.
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: Harald Leithner on November 18, 2019, 10:06:01 am
are you sure you change the correct file?
libraries/jdiction/database/parser/processors/ReplaceProcessor.php

Because the error message on the site you mailed me still has the same error?
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: pivovary on November 18, 2019, 10:18:10 am
Sorry my fail.
After change file ReplaceProcessor.php i also change DuplicateProcessor.php on line 46
Code: [Select]
public function process($tokens) {to
Code: [Select]
public function process($tokens, $isUpdate = false) {
And fronted now maybe is ok, but on backend still in database driver show wrong driver even if jdiction selected and save.
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: Harald Leithner on November 18, 2019, 10:21:26 am
I have seen this on the backend, not sure why this happens... I have to check this, for now it's working for you (don't double safe the configuration)
you can see if the correct database driver is select at z/administrator/index.php?option=com_jdiction&view=check
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: pivovary on January 31, 2020, 08:52:52 am
Hi,
please you have any progress in full support for Joomla! 3.9.x and PHP 7.3?
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: Harald Leithner on January 31, 2020, 01:46:57 pm
It's on my todo list, sorry it takes so long.
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: twindaddy on February 02, 2020, 11:12:06 am
I have the same problem on 2-sites, no translation is made. Checker gives :
Version         Could not load lib_jdiction.xml File
Database        jDiction Database Driver is not selected

Before it all worked, any suggestion to get this solved?
I am ready to dontate if it gets solved, because i like this component, for easy translation
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: gerardtolosa on February 24, 2020, 09:42:35 am
Similar issue on my site.

Joomla Version 3.9.15
PHP Version 7.2.24
Database Version 5.5.5-10.2.25-MariaDB-log
Jdiction Library Version: 2.2.2
Jdiction check: jDiction Database Driver XML View is selected

On Global Configuration (Server) it says that the Database Type is Mysqli, even do I selected and saved Jdiction_mysqli_viewxml.
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: ese105 on September 29, 2020, 02:22:00 am
I have the same problem on 2-sites, no translation is made. Checker gives :
Version         Could not load lib_jdiction.xml File
Database        jDiction Database Driver is not selected

Before it all worked, any suggestion to get this solved?
I am ready to dontate if it gets solved, because i like this component, for easy translation

i resolved it :
please check the file inside joomla folder /administrator/manifests/libraries/
i just copied lib_jdiction.xml from package into the folder.
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: Harald Leithner on October 02, 2020, 10:31:18 pm
This is fixed in jdiction 2.2.3
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: pivovary on October 05, 2020, 06:31:12 am
Hi, after update jDiction to 2.2.3 database driver is selected but in Jdiction -> check still Library version 2.2.2 this is ok?

Test    Result
Version    
    Library Version: 2.2.2
    Joomla Version 3.9.21 is unkown.

And in Extension Manager i have two version lib_jdiction.
   
lib_jdiction
   Site    Library    2.2.2    March 2011    ITronic Harald Leithner    N/A    10088    10411      
lib_jdiction
   Site    Library    2.2.3    March 2011    ITronic Harald Leithner    N/A    10088    10445
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: Harald Leithner on October 05, 2020, 08:52:50 am
That's strange because all extension parts have the correct version number... You may try to uninstall the wrong version and reinstall the new one.
Title: Re: After update to Joomla 3.9.13 Jdiction not working
Post by: pivovary on October 05, 2020, 10:16:53 am
I tried unistall only both version lib_diction, and this attempt ended of total error on web.
I must copy data to /libraries/jdiction

Second uninstall, setup mysql driver to mysql, in manage all jdiction set to disabled and unnistall.
i installed version 2.2.2 and update to 2.2.3 and this is no problem. Are files for jdiction are version 2.2.3

So everything is ok. Thank you

Edit: I try update 3 webs and on all were problem with duplicity lib_jdiction.