Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

KissER Error Handling & Debugging [contribution]


FWR Media

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

Link to comment
Share on other sites

Nobody can assist me?

 

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

Link to comment
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

Link to comment
Share on other sites

@@cramli

 

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

Link to comment
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

Link to comment
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
Link to comment
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' );

Link to comment
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';
}

Link to comment
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.

Link to comment
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

*/

Link to comment
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
Link to comment
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
Link to comment
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.

Link to comment
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; ?

Link to comment
Share on other sites

Well change it then set again to screen

Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...