Disabling PHP strict standards warning on development servers

  • Published by
    George Papadakis
  • Last modified
    28 October 2013
  • Up to date
    Yes
  • Profile concerned
    End user, Webdesigner, Developer
  • Concerns
    Component
  • Since Version
    1.5.1
  • Voting
    Average rating
    4 votes
    • 1
    • 2
    • 3
    • 4
    • 5
  • Favourites
    285 Disabling PHP strict standards warning on development servers /documentation/tutorials-english/70-developer-api-field-plugins/285-disabling-php-strict-standards-warning-on-development-servers.html

On local development servers, it can happen that by default PHP strict standards warning are enabled.

These can cause warning messages to be printed an can cause problems with:
-- JS and JS Ajax code that is generated by PHP

To disable these, please edit
e.g. (if you have a xampp installation)
xampp/php/php.ini

and change the error reporting line from
e.g.
error_reporting = E_ALL


to
error_reporting = E_ALL & ~E_STRICT

NOTE: Remember to restart Apache server after ending the above file