jDiction Forum

English => General Questions => Topic started by: funky3l on August 07, 2014, 11:33:37 pm

Title: Probable Jdiction 1.3.0 bug in libraries/jdiction/database/database/mysqli.php
Post by: funky3l on August 07, 2014, 11:33:37 pm
Hi,
I have just installed Jdiction 1.3.0 on Joomla 2.5.24 and had a problem to select the jdiction_mysqli driver in Joomla's global options, as Joomla's global options page got broken after Jdiction install.
After some debugging it turned out that the issue was with  libraries/jdiction/database/database/mysqli.php in lines 122 and 132:

They both looked like that:
Code: [Select]
$parser = new \PHPSQLParser\PHPSQLCreator();
I made a change in lines 122 and 132 so that both look now like that:
Code: [Select]
$parser = new PHPSQLCreator();
This fixed my installation and it's working all right now.

Hope this helps someone.

BR,
funky3l
Title: Re: Probable Jdiction 1.3.0 bug in libraries/jdiction/database/database/mysqli.php
Post by: Harald Leithner on August 08, 2014, 08:37:30 am
jdiction requires php 5.3+ the reason for this is the sqlparser uses namespaces