Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error reporting #14

Closed
viralganatra opened this issue Dec 2, 2011 · 4 comments
Closed

Error reporting #14

viralganatra opened this issue Dec 2, 2011 · 4 comments

Comments

@viralganatra
Copy link

Error reporting doesn't appear to work properly. In the config I have set error reporting to:

$config['template_error_reporting'] = "E_ALL ^ E_NOTICE";

so that any notices don't show up. However in the CI log files it seem to interpret it as an error? E.g:

ERROR - 2011-12-02 21:00:54 --> Severity: Notice --> Undefined index: foo \cache\smarty\compiled\b45265bb89040a86b3bc4d30ea7ca5c612acb525.file.bar.tpl.php 55

I can't work out how to stop these appearing, any ideas?

I'd rather not have to go through every variable and do {if isset($foo)}

Thanks

@Vheissu
Copy link
Owner

Vheissu commented Feb 5, 2012

Sorry about the delayed response, I've had other work commitments. I'm going to take a look at this ASAP.

@Vheissu
Copy link
Owner

Vheissu commented Feb 5, 2012

Had a look and I think it is because error values are not meant to be within quotes, like they're meant to be CONSTANT values, so no quotes around the error setting. I made a commit without the quotes and no errors from initial testing have appeared. Try that and let me know how it goes.

@Vheissu Vheissu closed this as completed Feb 5, 2012
@viralganatra
Copy link
Author

Sorry still have the same issue :(

@haider-pw
Copy link

Same here.
$config['template_error_reporting'] = E_ALL & ~E_NOTICE;
if there is any error in template, then smarty don't show the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants