• I just installed the theme and all pages get error 500 als front and admin. When enabling debug in wp-config.php I get this error

    Fatal error: Cannot use isset() on the result of an expression (you can use “null !== expression” instead) in wp-content/themes/sshop/inc/wc-functions.php on line 50

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi..

    Download notepad++ so you can see the line which you are having a problem.
    The problem says, line 50.

    So open wc-functions.php in notepad++ and scroll down to line 50.
    the problem is the missing ‘$’ character.
    line 50: if ( isset( $vr[‘regular_price’] ) && isset( vr[‘sale_price’] ) ) {

    it must be like this
    if ( isset( $vr[‘regular_price’] ) && isset( $vr[‘sale_price’] ) ) {

    this will fix your problem.

    Thread Starter shopimport

    (@shopimport)

    Thanks! It fixed the issue and will solve the error 500.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘cannot use isset()’ is closed to new replies.