• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Turn off, but log Smarty and PHP errors
PostPosted: Sat Jun 04, 2011 9:20 pm 
Hello all. I am searching the forum on how to disable all Smarty and PHP error notification on the frontend of the website, and not finding anything.

.htaccess setting
php_flag display_errors 0

brings website down.

config.php setting
error_reporting(E_ALL ^ E_NOTICE);

has been added, but a PHP error is still displayed
"Warning: filemtime() [function.filemtime]: stat failed for..."

Is that the correct setting for config.php to disable PHP error display?

I would like to know how to disable all Smarty error reporting on my website. Being able to log Smarty and/or PHP errors would be a big bonus.


Top
  
 
 Post subject: Re: Turn off, but log Smarty and PHP errors
PostPosted: Sat Jun 04, 2011 9:54 pm 
Errors I get is when content was copy-pasted from word with no-no things like page margins in the pasted code, etc.

Once I remove those from my source code, error goes away. But it is unprofessional for my site visitors to see ANY errors.

Text that I copy-pasted into TinyMCE might have contained things like {assign}. CMSMS tries to evaluate that and shows a Smarty error on the front end. I do not want an error to be shown.


Top
  
 
 Post subject: Re: Turn off, but log Smarty and PHP errors
PostPosted: Sun Jun 05, 2011 5:32 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11865
Location: Arizona
Don't paste from word or use the word paste box...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: Turn off, but log Smarty and PHP errors
PostPosted: Sun Jun 05, 2011 6:59 pm 
At this point, I do not know which, if any, of my pages generate Smarty errors. I cannot go thru every single page because there are 400+ and the error is only shown once per page (it may no longer be shown for me).

I also think that it is unprofessional for my site visitors to see PHP or Smarty errors.

I cannot disable display of PHP errors in the .htaccess file.

I do not know how to turn off Smarty errors display.


Top
  
 
 Post subject: Re: Turn off, but log Smarty and PHP errors  [SOLVED]
PostPosted: Thu Jun 16, 2011 9:18 pm 
Anyone who knows?


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner