• Resolved fly_in_the_sky

    (@fly_in_the_sky)


    Hello,
    I just installed your calendar. I have an error that is displayed regularly. Sometimes it disappears … but most of the time it is there.
    What can I do ?
    Tanks

    Warning: A non-numeric value encountered in /home/clients/d258c2bcfbbebdbca6ed14e8c4ad60ba/Cedric/wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 253
    
    Warning: A non-numeric value encountered in /home/clients/d258c2bcfbbebdbca6ed14e8c4ad60ba/Cedric/wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 256
    
    Warning: A non-numeric value encountered in /home/clients/d258c2bcfbbebdbca6ed14e8c4ad60ba/Cedric/wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 259
    
    Warning: A non-numeric value encountered in /home/clients/d258c2bcfbbebdbca6ed14e8c4ad60ba/Cedric/wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 263
    
    Warning: A non-numeric value encountered in /home/clients/d258c2bcfbbebdbca6ed14e8c4ad60ba/Cedric/wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 266
    
    Warning: A non-numeric value encountered in /home/clients/d258c2bcfbbebdbca6ed14e8c4ad60ba/Cedric/wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 269
    
    Warning: A non-numeric value encountered in /home/clients/d258c2bcfbbebdbca6ed14e8c4ad60ba/Cedric/wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 253
    
    Warning: A non-numeric value encountered in /home/clients/d258c2bcfbbebdbca6ed14e8c4ad60ba/Cedric/wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 256
    
    Warning: A non-numeric value encountered in /home/clients/d258c2bcfbbebdbca6ed14e8c4ad60ba/Cedric/wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 259
    
    Warning: A non-numeric value encountered in /home/clients/d258c2bcfbbebdbca6ed14e8c4ad60ba/Cedric/wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 263
    
    Warning: A non-numeric value encountered in /home/clients/d258c2bcfbbebdbca6ed14e8c4ad60ba/Cedric/wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 266
    
    Warning: A non-numeric value encountered in /home/clients/d258c2bcfbbebdbca6ed14e8c4ad60ba/Cedric/wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 269

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 22 total)
  • Hi @fly_in_the_sky

    It seems like you are using PHP 7.1 and your WP_DEBUG is true. You can get rid of this warning by editing wp-config.php file and change
    define( 'WP_DEBUG', true ); to
    define( 'WP_DEBUG', false ); [or just add this line if you don’t find]

    Hope it might help you.

    Thanks

    Thread Starter fly_in_the_sky

    (@fly_in_the_sky)

    Hello i use PHP 7.4

    and it was allready this code :

    define( 'WP_DEBUG', false );
    define('WP_DEBUG_LOG',      false);
    define('WP_DEBUG_DISPLAY',  false);
    
    Thread Starter fly_in_the_sky

    (@fly_in_the_sky)

    This morning, no error,… lets see…

    Thread Starter fly_in_the_sky

    (@fly_in_the_sky)

    I have always the error…

    I have the same error with the same lines added to WP-config, running latest WordPress and php7.4

    how to fix it, we cannot post and edit:

    A non-numeric value encountered in /home/xxxxxxx/public_html/wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 253

    if you search Google for “I18n.php on line 253” you will see how many sites affected, obviously it’s a plugin error

    • This reply was modified 4 years, 2 months ago by Vladinator. Reason: update

    update, adding these lines to wp-config will suppress the messages:

    ini_set(‘display_errors’,’Off’);
    ini_set(‘error_reporting’, E_ALL );
    define(‘WP_DEBUG’, false);
    define(‘WP_DEBUG_DISPLAY’, false);

    it will not fix the problem, tho

    Same issue here, following.

    Same here!

    Same here!
    I just installed the Events Calendar Pro and I have the same errors…

    Warning: A non-numeric value encountered in /htdocs/wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 253

    Warning: A non-numeric value encountered in /htdocs/wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 256

    …..

    Warning: A non-numeric value encountered in /htdocs/wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line 269

    Apparently The error message “Warning: A non-numeric value encountered” is new feature in version 7.1 of the PHP. Lots of sites have the same problem and waiting for the plugin update !

    We see the same error message every now and then as well on one of our sites. To find even more sites affected like this, don’t limit it to just that line of code, just try searching “Warning: A non-numeric value encountered in /wp-content/plugins/the-events-calendar/src/Tribe/I18n.php on line”

    It seems to be a lot of non-English sites, no?

    is this a racist remark?

    Of course not. It is meant to point to a possible common denominator for the problem. The fact that the error message seems to be especially frequent on sites that uses some other language than the plugin’s native (English) might be a reason it can be both widespread and under-published (and therefore still not addressed).

    The “I18n” (meaning “internationalization”) bit in the name of the php-file also suggest it has to do with translations.

    • This reply was modified 4 years, 2 months ago by Tutman. Reason: spelling

    @tutman my site uses WPML, this could be a hint.

    @kokomoweb Mine too.

    Mine too

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘A non-numeric value encountered : I18n.php’ is closed to new replies.