ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

PHP Errors will NOT turn off

August 08, 2012 12:06pm

Subscribe [1]
  • #1 / Aug 08, 2012 12:06pm

    PhireGuys

    525 posts

    I’ve done everything I can think of to turn off PHP errors, and they will not turn off.

    In my config.php:

    $config['debug'] = "0";
    ini_set('display_errors', 0);
    error_reporting(0);

    In Admin -> output and Debugging Preferences, Debug Preference reads “0: No PHP/SQL error messages generated”.

    What am I missing here?

    Error:

    A PHP Error was encountered
    Severity: User Warning
    
    Message: Invalid EE Conditional Variable: {if "exp:playa:total_children entry_id="149" field="performance_listing" var_prefix="playaokBGXyV9"}
    
    Filename: libraries/Functions.php
    
    Line Number: 2843

    edit: edited index.php and set debug = 0 and it seemed to do the trick

  • #2 / Aug 09, 2012 10:59am

    Lisa Wess

    20502 posts

    Hi, PhireGuys -

    I am going to strongly recommend that instead of hiding errors - which can be an indicator of why something isn’t working (thus not seeing them means troubleshooting is MUCH more difficult) that you instead troubleshoot the error itself.  We’d be happy to help with that. It looks like a conditional issue on the visited template around line 2843.  Are you able to post the code that is sending out that error so we can help you get it squared away properly?

    Thanks!

  • #3 / Aug 09, 2012 11:03am

    PhireGuys

    525 posts

    I’ve figured it out.  I have the site in a development state and a production state.  I wanted to hide the errors in the production state while I debugged it in the dev state.

    Thanks.

  • #4 / Aug 09, 2012 11:08am

    Lisa Wess

    20502 posts

    Hi, PhireGuys -

    That makes perfect sense; the hiding of errors can just be a bit of a red flag in these parts.

    I’m glad that you got it sorted out! If anything else comes up, please do let me know.  Thank you!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases