Jump to content
FWR Media

KissER Error Handling & Debugging [contribution]

Recommended Posts

Hello

I installed this contribution on my osc 2.3.1, but it is not working. I do not know what I am doing wrong. Can somebody have a look on my side: apromo.com.br and let me know? Would be very nice.

Awaiting and thank you in advance

 

Marc

Share this post


Link to post
Share on other sites

Nobody can assist me?

 

I didn't understand the question, what's not working exactly?

Share this post


Link to post
Share on other sites

Hello Rob

I installed all as in the describtion but nothing coming on on my site, no errors, nothing. As I understud, it should show when something is wrong, right?

I can not bleief that my site should be without some errors.

I hope you understand what I mean.

Here again my site: http://apromo.com.br

 

Thank you for helping

Share this post


Link to post
Share on other sites

@@cramli

 

You need to read a file in the download ( using_kiss_error_handling_debugging.html )

Share this post


Link to post
Share on other sites

I was reading and installing all what was written in the mentioned file, but I do not know what I am doing wrong. maybe I have to add this file:

 

KissER::i( 'my_identifier', $variable_array_or_object, __FILE__, __LINE__ ); ??

 

To understand all is not so easy, because my mothertang is not english. I have to add the above file?

 

Please understand and try to explain me.

 

Thank you for passion

Best regards

 

Marc

Share this post


Link to post
Share on other sites

@@cramli

 

I understand it must be very hard when reading instructions that are not in your own language .. keep going :)

 

Ok let's take this step by step

 

1) [TEST] Is KissER installed properly

 

take a look in [root/catalog] /errors/

 

Is there a file in there? if there is does it contain errors?

 

Stay with me though .. if you go offline I won't be able to help.

Edited by FWR Media

Share this post


Link to post
Share on other sites

That's very kind of you.

I checked and the installation as I think is ok.

In the root/catalog/errors is a file: kiss_errors.txt and this file is empty

Share this post


Link to post
Share on other sites

@@cramli

 

There's really nothing not to work, if installed it works.

 

Are you definately running a PHP version 5.2+?

 

Do you have another system set in set_error_handler()?

 

Does your host allow the use of set_error_handler?

 

In the main file are the settings: -

 

define( 'KISS_ERROR_REPORTING_OUTPUT', 'screen' );

define( 'KISS_ERROR_REPORTING_SWITCH', 'on' );

Share this post


Link to post
Share on other sites

Thank you.

 

I have a PHP Version 5.2.17

No other set error handler

I don't know if it's allowed tu use set error handler!

Share this post


Link to post
Share on other sites

Thank you.

 

I have a PHP Version 5.2.17

No other set error handler

I don't know if it's allowed tu use set error handler!

 

if ( !function_exists( 'set_error_handler' ) ) {
 echo 'set_error_handler not available';
}

Share this post


Link to post
Share on other sites

anywhere within <?php ?> tags .. it's a test to see if the function is available.

 

It is NOT meant to stay in the files.

Share this post


Link to post
Share on other sites

I add it and what should I see now?

 

I add it in the error_handler approx. line 214 like this and I hope it is right:

 

 

?>

<div style="padding: 3em; font-family: verdana; width: 750px; margin-left: auto;

margin-right: auto; clear: both;">

<div style="width: 100%; background-color: #ffffdd; border: 1px solid #1659AC; font-size: 10pt;">

<div style="background-color: #2E8FCA; font-size: 12pt; font-weight: bold; padding: 0.5em; color: #00598E;">

<div style="float: right; color: #0073BA; font-weight: bold; font-size: 16pt; margin-top: -0.2em;">FWR MEDIA</div>

<?php echo $title . PHP_EOL; ?>

</div>

<?php

if ( !function_exists( 'set_error_handler' ) ) {

echo 'set_error_handler not available';

}

}

 

private function outputHtmlBottom() {

?>

</div>

</div>

<?php

}

 

/**

* Output the error registry to screen

*/

Share this post


Link to post
Share on other sites

No :) take that out please.

 

Make a new file in root called test.php, put in it: -

 

<?php
if ( !function_exists( 'set_error_handler' ) ) {
 echo 'set_error_handler not available';
} else echo 'set_error_handler is fine';
?>

 

Then run the file from your browser.

Edited by FWR Media

Share this post


Link to post
Share on other sites

Ok, done. Now I have this answer from my browser: set_error_handler is fine

Share this post


Link to post
Share on other sites

Ok, done. Now I have this answer from my browser: set_error_handler is fine

 

Ok so it looks like you have a template problem perhaps . .you're not using that horrible STS thing are you?

 

in the file find: -

 

define( 'KISS_ERROR_REPORTING_OUTPUT', 'screen' );

 

Change it to: -

 

define( 'KISS_ERROR_REPORTING_OUTPUT', 'file' );

 

 

Load your site a few times and tell me if the errors file fills up

Edited by FWR Media

Share this post


Link to post
Share on other sites

Done. My template is the basic one in osc 2.3.1.

No I get messages in the text file, that means it is working. I chaged again in "Screen" to have a look, but on the screen nothing is coming up.

Share this post


Link to post
Share on other sites

Actually, I just remembered something. In the version you have look for

 

    private function outputHtmlTop( $title ) {
?>
 <div style="padding: 3em; font-family: verdana; width: 750px; margin-left: auto; margin-right: auto; clear: both;">

 

Does yours have the clear: both; ?

Share this post


Link to post
Share on other sites

no. mine is like thath:

<div style="padding: 3em; font-family: verdana; width: 750px; margin-left: auto; margin-right: auto;">

Share this post


Link to post
Share on other sites

Well change it then set again to screen

Share this post


Link to post
Share on other sites

Ok I need to check out the latest version and try it on 2.3.3 ( which I haven't done yet ).

 

Give me 5 mins.

Share this post


Link to post
Share on other sites

Ok thank you in advance. I will leaf for 30 minutes. See you then

and Thank you again for your passion

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

×