• Resolved vsolanic

    (@vsolanic)


    As of today my website (https://www.skmbrussels.be) started giving me an error messages:

    Notice: Only variables should be passed by reference in skmbrussels.be/web/wp-content/themes/hueman/option-tree/ot-loader.php on line 98

    Notice: Only variables should be passed by reference in skmbrussels.be/web/wp-content/themes/hueman/option-tree/ot-loader.php on line 326

    I tried to google this issue but I have not managed to find a solution to this. I am using a child theme which I created myself (so not through the Childify plugin). I found on the net that this is a message produced by PHP. I tried to turn off displaying error messages (i.e. changing ‘display_errors’ to off).

    Since this error message is very annoying, I would appreciate any help on this!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter vsolanic

    (@vsolanic)

    MY ISP recommended to downgrade PHP to 5.6. I was using PHP 7 version. It thus seems that Hueman is not compatible with the PHP 7.

    @vsolanic – I have two sites running Hueman v3.1.6 on PHP v7 without any problems.

    Thread Starter vsolanic

    (@vsolanic)

    Hi bdbrown,

    I can reactivate the PHP v7 if you would like to look at it. But as I explained above, downgrade of the PHP to v5 removed the error messages.

    Do you want to look at it? Shall I reactivate the PHP v7?

    You don’t need to change it. Although it doesn’t affect the functionality of the theme it’s been identified as a bug as noted here:
    https://github.com/presscustomizr/hueman/issues/241

    PHP “display_error” is not normally active on a production site:
    https://php.net/manual/en/errorfunc.configuration.php#ini.display-errors

    In my experience it is normally disabled by the host default PHP configuration. If you’ve tried to disable it and you still see the notices then there is something else in the PHP configuration, or possibly your .htaccess file, that’s keeping that from working.

    You can check your host PHP configuration using a phpinfo file:
    https://www.inmotionhosting.com/support/website/php/create-phpinfo-page-to-see-php-settings

    Look in the Core section for the “display_errors” and “error_reporting” options.

    Thread Starter vsolanic

    (@vsolanic)

    OK. Thank you for explanation. If I have time, I will play a bit with it.

    Cheers!

    Juniper

    (@juniper-webcraft)

    I was also seeing these PHP Notices using PHP 7.0.6, WordPress 4.6.1, and Hueman theme 3.2.3. I just upgraded to Hueman 3.2.8 and the problem was solved. My thanks!

    Philosophically, I have to say that configuring PHP to suppress error display might serve as a temporary work-around of last resort but is not a credible fix for anything. Whether during production or in a live site, I want to know when any of the software components is misbehaving or failing to play nicely with the others. Even if I suppress error messages from public view, I need to know.

    Warmly,
    Paul

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Problem with ot-loader.php’ is closed to new replies.