• Resolved nohe

    (@nohe)


    Hello,

    thanks for the work you put into this plugin! Until now it was straight forward and easy to use.

    Unfortunately after updating from version 1.2 to 1.3 wordpress is completely broken for us. All we get is the error message “Fatal error: Call to undefined function boolval() in /[…]/wp-content/plugins/custom-login-admin-front-end-css-with-multisite-support/clafc_custom-login-admin-frontend-css.php on line 400”

    (I inserted the […] instead of our full website path for privacy reasons)

    What do you suggest we could do to solve it? We’re not even able to access our backup-plugin to revert to a working wordpress with clafc 1.2 without FTP-hassle :/

    Thx in advance

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

    (@arunbasillal)

    Hey @nohe

    I am just seeing this message, I wasn’t subscribed to the forum for this plugin.

    Looks like your PHP version is lesser than 5.5. boolval() is in PHP 5.5 and later apparently.

    The resolution would be to ask your host to upgrade PHP version. Upgrading PHP will have some amazing performance improvements.

    Ideally you should be upgrading to PHP 7, but if you are using very old plugins, some of the functions they use might be depreciated in PHP 7. PHP 7 has been around for a while, so plugins that are still maintained should be fine.

    Until that happens, the only solution I can think of is the use CLAFC 1.2 ?? Thankfully, there were no security fixes, so there is nothing to worry with using 1.2.

    I would like to hear back from you about your thoughts.

    Regards

    Thread Starter nohe

    (@nohe)

    Hi Arun,

    you were right. The information given on the host’s website says “PHP 5”. I can’t really look any deeper into that as I’m only helping and not owner of the webspace.

    I was able to get access to wordpress again by deleting the plug-in folder via ftp. With the help of the backup plug-in we use all is back to normal – using CLAFC 1.2 for now.

    I hope we get around to having PHP 7 as we are also having performance issues in the backend. Thx for the tip! That explains some issues ??

    Keep up the good work.

    Best wishes,
    Norman

    Plugin Author Arun Basil Lal

    (@arunbasillal)

    Hey Norman,

    Glad that you keep awesome backups, such a great practice!

    You can check details of your php by using the function phpinfo(). Just call the function on a page template or you can use a plugin like this.

    Thanks for letting me know of the progress. Kind regards,
    Arun

    Plugin Author Arun Basil Lal

    (@arunbasillal)

    Hey Norman,

    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 enable you to use the latest version of the plugin and all the new features.

    Regards,
    Arun

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error after update from 1.2 to 1.3’ is closed to new replies.