split() is throwing an exception in production (exception 'yii\base\ErrorException' with message 'Function split() is deprecated' in /app/controllers/NegativeKeywordController.php:128) but not development. How can I turn on exceptions in development?
            Asked
            
        
        
            Active
            
        
            Viewed 211 times
        
    1
            
            
         
    
    
        Chloe
        
- 25,162
- 40
- 190
- 357
- 
                    3Check the versions of PHP (phpInfo())? For error reporting see: [How do I get PHP Errors to display?](http://stackoverflow.com/questions/1053424/how-do-i-get-php-errors-to-display) – Ryan Vincent Dec 17 '15 at 01:16
1 Answers
0
            I had to change error_reporting to E_ALL and restart Apache.
;error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT # old
error_reporting = E_ALL
 
    
    
        Chloe
        
- 25,162
- 40
- 190
- 357
- 
                    1That means your development is hiding more errors than the production. This is not good practice as you have just experienced. Please try to align them (or better yet, always enable all on errors on the dev.) – Sheepy Dec 17 '15 at 05:48