jDiction Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

jDiction 2.2.0 released. http://jdiction.org/downloads

Author Topic: After update to Joomla 3.9.13 Jdiction not working  (Read 718 times)

pivovary

  • Newbie
  • *
  • Posts: 11
    • View Profile
After update to Joomla 3.9.13 Jdiction not working
« 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
« Last Edit: November 18, 2019, 08:18:04 am by pivovary »
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1652
    • View Profile
Re: After update to Joomla 3.9.13 Jdiction not working
« Reply #1 on: November 18, 2019, 08:49:24 am »

Which version are you using?
Logged
Joomla 3.9.x Release Lead
Joomla Production Coordinator
Vote at JED

pivovary

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: After update to Joomla 3.9.13 Jdiction not working
« Reply #2 on: November 18, 2019, 09:04:57 am »

Sorry, i use last version Jdiction 2.2.2 and Joomla 3.9.13
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1652
    • View Profile
Re: After update to Joomla 3.9.13 Jdiction not working
« Reply #3 on: November 18, 2019, 09:09:44 am »

you can try to switch the database driver to the xml driver.
Logged
Joomla 3.9.x Release Lead
Joomla Production Coordinator
Vote at JED

pivovary

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: After update to Joomla 3.9.13 Jdiction not working
« Reply #4 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.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1652
    • View Profile
Re: After update to Joomla 3.9.13 Jdiction not working
« Reply #5 on: November 18, 2019, 09:25:21 am »

Can you please post the output of the check page?
Logged
Joomla 3.9.x Release Lead
Joomla Production Coordinator
Vote at JED

pivovary

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: After update to Joomla 3.9.13 Jdiction not working
« Reply #6 on: November 18, 2019, 09:37:05 am »

On email you have urls and also login to backend.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1652
    • View Profile
Re: After update to Joomla 3.9.13 Jdiction not working
« Reply #7 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') {
Logged
Joomla 3.9.x Release Lead
Joomla Production Coordinator
Vote at JED

pivovary

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: After update to Joomla 3.9.13 Jdiction not working
« Reply #8 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.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1652
    • View Profile
Re: After update to Joomla 3.9.13 Jdiction not working
« Reply #9 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?
Logged
Joomla 3.9.x Release Lead
Joomla Production Coordinator
Vote at JED

pivovary

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: After update to Joomla 3.9.13 Jdiction not working
« Reply #10 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.
Logged

Harald Leithner

  • Administrator
  • Hero Member
  • *****
  • Posts: 1652
    • View Profile
Re: After update to Joomla 3.9.13 Jdiction not working
« Reply #11 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
Logged
Joomla 3.9.x Release Lead
Joomla Production Coordinator
Vote at JED