• Webhost is migrating all their software to PHP 5.6. Their plugin that checks the compatibility with PHP 5.6 is signaling the following error. Is there currently a fix being looked at for this? Thanks!

    FILE: /nas/content/live/talgra/wp-content/plugins/better-wp-security/core/modules/salts/utilities.php
    —————————————————————————————————–
    FOUND 1 ERROR AFFECTING 1 LINE
    —————————————————————————————————–
    66 | ERROR | The function random_int is not present in PHP version 5.6 or earlier
    —————————————————————————————————–

Viewing 2 replies - 1 through 2 (of 2 total)
  • @mwgaston

    It’s a false positive. Compatibility plugins generally do pretty simple and dumm checks … so look at their results with some scepticism.

    As of release 4.4, WordPress includes a Random_* Compatibility Library API (wp-includes/random_compat) that provides backwards compatibility for the (since PHP 7 introduced) random_*() function(s).
    In fact WordPress core uses the random_int() function as well … and as we all know it runs fine on any PHP 5.2.x-5.6.x releases.

    Additionally the iTSec plugin reuses a bit of WordPress core code for the WordPress Salts feature. This is actually the piece of code where the Compatibility plugin detects usage of the random_int() function.
    The code includes 2 failover mechanisms in case the random_int() function fails …

    So basically don’t worry, be happy !

    My website host upgraded to PHP 5.6 in march and since then I have these errors at the top of my site. My host says that the version of WordPress I have is not compatible with PHP 5.6 and they cant fix it. Another hosting service now says the same thing. I am new to wordpress as someone else developed our site. This is at the top of http://www.video1hd.net … any advice would be helpful.

    Notice: get_theme_data is deprecated since version 3.4! Use wp_get_theme() instead. in /services/webpages/util/5/4/54cwbr74.myutilitydomain.com/video1hd.net/public/wp-includes/functions.php on line 3123

    Strict Standards: Declaration of avia_walker::start_lvl() should be compatible with Walker::start_lvl(&$output, $depth = 0, $args = Array) in /services/webpages/util/5/4/54cwbr74.myutilitydomain.com/video1hd.net/public/wp-content/themes/corona/framework/php/class-megamenu.php on line 121

    Strict Standards: Declaration of avia_walker::end_lvl() should be compatible with Walker::end_lvl(&$output, $depth = 0, $args = Array) in /services/webpages/util/5/4/54cwbr74.myutilitydomain.com/video1hd.net/public/wp-content/themes/corona/framework/php/class-megamenu.php on line 121

    Strict Standards: Declaration of avia_walker::start_el() should be compatible with Walker::start_el(&$output, $object, $depth = 0, $args = Array, $current_object_id = 0) in /services/webpages/util/5/4/54cwbr74.myutilitydomain.com/video1hd.net/public/wp-content/themes/corona/framework/php/class-megamenu.php on line 121

    Strict Standards: Declaration of avia_walker::end_el() should be compatible with Walker::end_el(&$output, $object, $depth = 0, $args = Array) in /services/webpages/util/5/4/54cwbr74.myutilitydomain.com/video1hd.net/public/wp-content/themes/corona/framework/php/class-megamenu.php on line 121

    Strict Standards: Declaration of avia_backend_walker::start_lvl() should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = Array) in /services/webpages/util/5/4/54cwbr74.myutilitydomain.com/video1hd.net/public/wp-content/themes/corona/framework/php/class-megamenu.php on line 331

    Strict Standards: Declaration of avia_backend_walker::end_lvl() should be compatible with Walker_Nav_Menu::end_lvl(&$output, $depth = 0, $args = Array) in /services/webpages/util/5/4/54cwbr74.myutilitydomain.com/video1hd.net/public/wp-content/themes/corona/framework/php/class-megamenu.php on line 331

    Strict Standards: Declaration of avia_backend_walker::start_el() should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = Array, $id = 0) in /services/webpages/util/5/4/54cwbr74.myutilitydomain.com/video1hd.net/public/wp-content/themes/corona/framework/php/class-megamenu.php on line 331

    Notice: wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /services/webpages/util/5/4/54cwbr74.myutilitydomain.com/video1hd.net/public/wp-includes/functions.php on line 3290

    Strict Standards: Declaration of avia_description_walker::start_el() should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = Array, $id = 0) in /services/webpages/util/5/4/54cwbr74.myutilitydomain.com/video1hd.net/public/wp-content/themes/corona/includes/admin/register-menu-walker.php on line 0
    HomeContact

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Compatibility Issues PHP 5.6’ is closed to new replies.