• Resolved zigsp8

    (@zigsp8)


    Getting Warning: Constants may only evaluate to scalar values in …/wp-content/plugins/force-refresh/filter-force-refresh.php on line 30

    php: 7.1
    WP: 5.3.2

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author jordanleven

    (@jordanleven)

    This is an error when running PHP 5.6, which does not support array values as class constants.

    I’m not able to replicate your issue with PHP 7.1. Please send a message linking to an image with the error as you see it and version of WordPress you’re using, along with a screenshot of the phpinfo output detailing the exact version of PHP you’re using.

    • This reply was modified 4 years, 7 months ago by jordanleven.
    Thread Starter zigsp8

    (@zigsp8)

    ahh. I think I see my problem…. this is generated by a cron job which looks like is running under php5.6 while the site is running 7.1 … I will talk to the hosting provider. thanks.

    and thanks for the quick response.

    Plugin Author jordanleven

    (@jordanleven)

    No problem! Best of luck!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Constants may only evaluate to scalar values’ is closed to new replies.