• Resolved SeanBanksBliss

    (@seanbanksbliss)


    I was using this then my site when down saying: there was some undefined value “boolval()” in admin-css-mu/admincssmu.php on line 275 so I had to deactivate the plugin via FTP to access my admin area.

    When I try to reinstall I get this error:
    Installation failed: <!DOCTYPE html> <!–[if IE 8]> <![endif]–> <!–[if !(IE 8) ]><!–> <!–<![endif]–> LiveSite Pack ‹ Ascendancy Consulting — WordPress addLoadEvent = function(func){if(typeof jQuery!=”undefined”)jQuery(document).ready(func);else if(typeof wpOnload!=’function’){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}}; var ajaxurl = ‘/site/wp-admin/admin-ajax.php’, pagenow = ‘toplevel_page_live-site’, typenow = ”, adminpage = ‘toplevel_page_live-site’, thousandsSeparator = ‘,’, decimalPoint = ‘.’, isRtl = 0; Fatal error: Call to undefined function boolval() in /home/www/ascendancyconsulting.com/site/wp-content/plugins/admin-css-mu/admincssmu.php on line 275

    It worked 2 weeks ago. What’s wrong?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Arun Basil Lal

    (@arunbasillal)

    Hey @seanbanksbliss,

    It looks like your server us using a PHP version lesser than PHP 5.5. boolval() is a function that came in PHP 5.5 and the latest version of Admin CSS MU uses this function for couple of option checks.

    Recommended solution: Ask your host to upgrade the PHP version to the latest (ver 7.1). Latest release addresses a lot of security issues and there is noticeable improvement in performance.

    Quick fix: Install version 2.2 of Admin CSS MU and upgrade after your host upgrades PHP.

    Please remember to take a full backup of your website before upgrading PHP especially if you use old unsupported plugins. Some functions are depreciated in PHP 7 and this might break some old plugins.

    Hope this helps.
    Arun

    Plugin Author Arun Basil Lal

    (@arunbasillal)

    Hey @seanbanksbliss

    I am closing this issue since there is nothing more I can do at my end. If the issue persists even after upgrading PHP or downgrading plugin, please let me know.

    Hope you have a good weekend ??

    Plugin Author Arun Basil Lal

    (@arunbasillal)

    Hey @seanbanksbliss

    Here is an interim solution if you do not want to upgrade PHP. Add this to your theme’s functions.php

    /**
     * Get the boolean value of a variable
     *
     * @param 	mixed 	The scalar value being converted to a boolean.
     * @return 	boolean The boolean value of var.
     * @refer	https://php.net/manual/en/function.boolval.php#114013
     */
    if( !function_exists('boolval')) {
        
        function boolval($var){
            return !! $var;
        }
    }

    This will let you use the newest version of the plugin with all the new features.

    Regards,
    Arun

    Plugin Author Arun Basil Lal

    (@arunbasillal)

    Backward compatibility for PHP versions lesser than PHP 5.5 is included in the latest release Version 2.5

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘boolval() error line 275 admincssmu.php crashes admin access & prevents install’ is closed to new replies.