Error with new dolphin 7.4.0 BxDolExceptionHandler

When running the Dolphin function execSqlFile, The following error happens if a duplicate entry occurs when running the sql file.

Got error 'PHP message: PHP Catchable fatal error: Argument 1 passed to BxDolExceptionHandler::handle() must be an instance of Throwable, instance of PDOException given in /var/www/vhosts/deanbassett.com/dev740.deanbassett.com/inc/classes/BxDolExceptionHandler.php on line 16\n'

No log entry is made in the errors file that's created in the tmp folder when database errors occur.

Seems to be a bug in dolphin with that function.

Took me a while to track this one down. A couple of my modules use this function and if a database error occurs when execSqlFile runs the sql, there is no indication of what went wrong.

https://www.deanbassett.com
Quote · 13 Feb 2019

Thank you for the report:

https://github.com/boonex/dolphin.pro/issues/674

Rules → http://www.boonex.com/terms
Quote · 15 Feb 2019

to be compatible with php 5 and php 7 remove the word Throwable in all functions.

 

publicfunctionhandle(Throwable$e)

to 

publicfunctionhandle($e)

Quote · 19 Feb 2019

 

to be compatible with php 5 and php 7 remove the word Throwable in all functions.

Thank you for noticing this - https://github.com/boonex/dolphin.pro/issues/675

Rules → http://www.boonex.com/terms
Quote · 21 Feb 2019

Throwable

(PHP 7)

Introduction

Throwable is the base interface for any object that can be thrown via a throw statement in PHP 7, including Error and Exception.

Note:

PHP classes cannot implement the Throwable interface directly, and must instead extend Exception.

Geeks, making the world a better place
Quote · 22 Feb 2019

 

 

to be compatible with php 5 and php 7 remove the word Throwable in all functions.

Thank you for noticing this - https://github.com/boonex/dolphin.pro/issues/675

So would this mean that Dolphin 7.4 was not tested on the least version of PHP listed as compatible?  

Geeks, making the world a better place
Quote · 22 Feb 2019

 

So would this mean that Dolphin 7.4 was not tested on the least version of PHP listed as compatible?

It means that someone provide really good suggestions which helps the whole community and somebody prefer to spent own and others time for nothing Wink

Rules → http://www.boonex.com/terms
Quote · 26 Feb 2019
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.