We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Debug Preference : 1 / 2 OR 0 / 2

Development and Programming

Gurudutt Verma's avatar
Gurudutt Verma
74 posts
14 years ago
Gurudutt Verma's avatar Gurudutt Verma

Hi

Control Panel : “Output and Debugging Preferences”

“Debug Preference” says :

1: PHP/SQL error messages shown only to Super Admins 2: PHP/SQL error messages shown to anyone - NOT SECURE

While in the database it stores the value 0 OR 2 I guess it should store it 1 OR 2

My mail issue is that site does not display some content on our site because following code in expressionengine/controllers/ee.php around line 86:

if ($this->config->item('debug') == 0 AND $this->output->remove_unparsed_variables == TRUE)
{
 $output = preg_replace("/".LD."[^;\n]+?".RD."/", '', $output);
}

Even though I am logged in as a superadmin it removes all content which is encrypted by json_encode(..)

I belive it should also check if I am super admin or not If I am logged in as super admin, then at least it should not remove content.

I am not sure how can I set FALSE value to : $this->output->remove_unparsed_variables

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.