Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #316365

    Hi,
    with the new version of WordPress 4.0, define language in wp-config.php ( define(‘WPLANG’, ‘it_IT’); ) is deprecated and should be removed.
    But this causes the following error:

    Notice: Use of undefined constant WPLANG – assumed ‘WPLANG’ in /home/mynamehosting/public_html/wp-content/themes/enfold/config-layerslider/LayerSlider/classes/class.km.autoupdate.v3.php on line 74

    I also use WPML and WooCommerce.

    thanks for any advice

    • This topic was modified 10 years, 3 months ago by macrunner.
    #317062

    Hey!

    Try adding this to your theme functions.php or wp-config.php:

    error_reporting(E_ALL ^ E_NOTICE);
    

    Cheers!
    Josue

    #317267

    Hi Josue,
    ok it works, only in functions.php of my child-theme.
    Thanks

    #317619

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Notice error if I disable WPLANG’ is closed to new replies.