• Plugin couldn’t be activated due to the error below …

    Fatal error: Can’t use function return value in write context in /wp-content/plugins/brands-for-woocommerce/woocommerce-brand.php on line 425

    Please advise on a fix. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jason Wong

    (@eljkmw)

    On line 425, the error is most probably caused by the empty function.
    $term_find = ( empty(get_query_var( 'berocket_brand' )) ? get_query_var( 'term' ) : get_query_var( 'berocket_brand' ) );

    Shouldn’t it be
    $term_find = ( (get_query_var( 'berocket_brand' ) == '') ? get_query_var( 'term' ) : get_query_var( 'berocket_brand' ) );

    Also, on line 447, another error is caused by the empty function.
    if( empty(get_the_ID()) ) {

    Perhaps it should be
    if( get_the_ID() == '' ) {

    Plugin Author RazyRx

    (@razyrx)

    Hi,

    All errors will be fixed in next plugin release.

    Regards,
    Oleg

    Thread Starter Jason Wong

    (@eljkmw)

    @razyrx,

    Thanks, Oleg. I hope you’ll include some screenshots and sample instructions too.
    To date, I can’t figure out how to use your plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin could not be activated because it triggered a fatal error.’ is closed to new replies.