• Resolved Xaliber

    (@xaliber)


    Hello,

    I was trying to activate the plugin in my local installation when this appears:

    Plugin could not be activated because it triggered a fatal error.
    Fatal error: Can't use function return value in write context in D:\xampp\htdocs\cakrawikara\wp-content\plugins\background-slider-master\includes\class-background-slider-master.php on line 169

    Any clue why this happens?

    • This topic was modified 7 years, 2 months ago by Xaliber.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WebSPI

    (@devcon1)

    Hello Xaliber,

    You are receiving the error due to running an old version of php.

    I believe it was about 3 to 4 years ago, prior to php5, that you can’t have a function returned value directly be check for “empty.”

    Although it is strongly recommended to upgrade your php to the supported version for security and many other performance reasons, you can open the file, ‘class-background-slider-master.php’ and edit the line 169 with the following:

    Original:
    if( empty( get_option( ‘bsm_notice_get_pro_version_dismissed’ ) ) ){

    Edited:
    $pro_notice = get_option( ‘bsm_notice_get_pro_version_dismissed’ );
    if( empty( $pro_notice ) ){

    Hope this helps.

    Thank you!

    Thread Starter Xaliber

    (@xaliber)

    Oh no wonder. My local installation hasn’t been updated yet. Anyway, it helps, thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error when activating plugin’ is closed to new replies.