Dibi panel in Tracy error in Nette 2.4

Notice: This thread is very old.
Wick
Member | 4
+
0
-

Hello

After upgrading to Nette 2.4, Dibi panel [Oracle 12c] stopped working, shows this error; what's wrong?

Error: Dibi\Bridges\Tracy\Panel
ErrorException: oci_fetch_array(): ORA-24374: define not done before fetch or execute and fetch in /var/www/prod/libs/dibi/Dibi/Drivers/OracleDriver.php:321
Stack trace:
#0 [internal function]: Tracy\Bar->Tracy\{closure}(2, 'oci_fetch_array...', '/var/www/prod/l...', 321, Array)
#1 /var/www/prod/libs/dibi/Dibi/Drivers/OracleDriver.php(321): oci_fetch_array(Resource id #20, 5)
#2 /var/www/prod/libs/dibi/Dibi/Result.php(191): Dibi\Drivers\OracleDriver->fetch(true)
#3 /var/www/prod/libs/dibi/Dibi/ResultIterator.php(54): Dibi\Result->fetch()
#4 /var/www/prod/libs/dibi/Dibi/Helpers.php(49): Dibi\ResultIterator->rewind()
#5 /var/www/prod/libs/dibi/Dibi/Bridges/Tracy/Panel.php(113): Dibi\Helpers::dump(Object(Dibi\Result), true)
#6 /var/www/prod/libs/Nette/Tracy/Bar.php(133): Dibi\Bridges\Tracy\Panel->getPanel()
#7 /var/www/prod/libs/Nette/Tracy/Bar.php(89): Tracy\Bar->renderPanels()
#8 /var/www/prod/libs/Nette/Tracy/Debugger.php(254): Tracy\Bar->render()
#9 [internal function]: Tracy\Debugger::shutdownHandler()
#10 {main}

Versions:

  • PHP: 7.0.19–1
  • Tracy: 2.4.6
  • Server: Apache/2.4.25 (Debian)
  • Nette Framework: 2.4 (2.4–20170221)
  • Dibi: 3.0.7
  • using DibiExtension22 [is there a 24 one?]

Tried meddling with the way this panel is registered; eventually panel show but says [0 queries] even though there were queries made.

Thank you.

Last edited by Wick (2017-06-08 11:05)

CZechBoY
Member | 3608
+
0
-

Does it work without tracy bar? Or is problem in the dibi itself?

Wick
Member | 4
+
0
-

Dibi itself works fine. It just doesn't show in the bar.

Zdeno1981
Member | 115
+
0
-

10 months ago, I addressed the same problem in the Czech thread: https://forum.nette.org/…panel-oracle

  • dibi 3.0.7 with Nette 2.3 is fine
  • dibi 3.0.7 with Nette 2.4 does not show (select query). Other insert, update or delete queries is fine.