Jump to content
FWR Media

KissER Error Handling & Debugging [contribution]

Recommended Posts

@@stefan21 Thank You! Exactly what I was looking for... :)

Share this post


Link to post
Share on other sites

After upgrade to php7, I'm getting the following error in admin/categories.php:

Quote

Notice: Undefined offset: 8192 in /public_html/shop/admin/includes/kiss_error_handler.php on line 178

Line 178 in admin/includes/kiss_error_handler.php:

self::$registry['errors'][$errno][] = array( 'type'   => self::$error_types[$errno],
                                                   'string' => $errstr,
                                                   'file'   => $errfile,
                                                   'line'   => $errline );

Any idea how to fix that?

Edited by Irin
Nm, I just inserted E_DEPRECATED => 'E_DEPRECATED'.

Share this post


Link to post
Share on other sites

Getting the following error when all the relevant files are uploaded to the server, including the modified includes/application_top.php and includes/functions/database.php. Trying to troubleshoot other issues but it seems that I need to troubleshoot this add-on first. Catch 22. Please help.

select code, title, symbol_left, symbol_right, decimal_point, thousands_point, decimal_places, value from currencies

[TEP STOP]

Share this post


Link to post
Share on other sites
On 10/6/2017 at 7:16 PM, Irin said:

After upgrade to php7, I'm getting the following error in admin/categories.php:

Line 178 in admin/includes/kiss_error_handler.php:


self::$registry['errors'][$errno][] = array( 'type'   => self::$error_types[$errno],
                                                   'string' => $errstr,
                                                   'file'   => $errfile,
                                                   'line'   => $errline );

Any idea how to fix that?

Hi @Irin

Did you find the fix?

Thanks in advance :)

Share this post


Link to post
Share on other sites

I just read your edit reason.

In catalog/includes/kiss_error_handler.php find:

    private static $error_types = array( E_USER_ERROR  => 'E_USER_ERROR',  E_USER_WARNING => 'E_USER_WARNING',
                                         E_USER_NOTICE => 'E_USER_NOTICE', E_WARNING      => 'E_WARNING',
                                         E_NOTICE      => 'E_NOTICE',      E_ERROR        => 'E_ERROR',
                                         E_STRICT      => 'E_STRICT' );

and replace with:

    private static $error_types = array( E_USER_ERROR  => 'E_USER_ERROR',  E_USER_WARNING => 'E_USER_WARNING',
                                         E_USER_NOTICE => 'E_USER_NOTICE', E_WARNING      => 'E_WARNING',
                                         E_NOTICE      => 'E_NOTICE',      E_ERROR        => 'E_ERROR',
                                         E_STRICT      => 'E_STRICT',      E_DEPRECATED => 'E_DEPRECATED' );

Bests regards

Gustavo

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×