• Resolved aadyasushu

    (@aadyasushu)


    Hi

    Strict Standards: Only variables should be assigned by reference in /home2/tosaleco/public_html/wp-content/themes/mystile/comments.php on line 28

    Observing this message after updating my site.

    What are the thing i need to do to remove this message from my website.
    https://www.9to9sale.com/terms-conditions/

    Thanks in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • It looks like your server might be running a PHP version that your theme, mystile, is not compliant with. There are a number of things you can do:

    • Make sure you are running the most current version of your theme. If not, update to the latest version. If you still get the warning, contact the theme developer to fix it.
    • Look at the code on line 28 of /wp-content/themes/mystile/comments.php, and change it so that the value is set to a variable, and use the variable on that line instead of (probably) checking the value and passing it by reference without assigning it to a variable.
    • Turn off strict standards for your PHP install. I wouldn’t do this, since the strict standards are designed to make sure you use the safest code possible. Some people would tell you to turn off error warnings, but I think that’s a mistake, too. Fix the problem.
    Thread Starter aadyasushu

    (@aadyasushu)

    Hi linux4me2

    First of all thank you for replying my post.

    here is the code one line of 28

    <?php $comments_by_type = &separate_comments( $comments ); ?>

    actually i don’t have that much of knowledge about php. Even I do not what is variable in php.

    If you please let me know what change should i do in that php.

    or please let me know how to turn off or disabling php standard messages .

    You might try just removing the ampersand so that line 28 looks like this:

    <?php $comments_by_type = separate_comments( $comments ); ?>

    Thread Starter aadyasushu

    (@aadyasushu)

    Hey

    It works yaar, really very happy and thankful to you by solving my issue.

    One more error msg is there please have a look at this.

    Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method MR_Social_Sharing_Toolkit::plugin_links() should not be called statically in /home2/tosaleco/public_html/wp-includes/plugin.php on line 192

    line 192 is

    $value = call_user_func_array($the_[‘function’], array_slice($args, 1, (int) $the_[‘accepted_args’]));

    Thanks a lot

    You should do a separate post for that error in the Social Sharing Toolkit support forum (I think that’s it.) so the developer is aware of and can address that.

    It’s another instance of the code not being completely PHP-compliant with the version you’re using. I think in that case, PHP is expecting the first parameter to be an actual callback function, not a member of an array.

    Thread Starter aadyasushu

    (@aadyasushu)

    Thanks yaar. Sure will report over there.

    HI
    Thanks buddy as i was also having the same issue and finally it got resolved

    Thread Starter aadyasushu

    (@aadyasushu)

    Do you having problem with plugins

    But that issue was not resolved

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Updated getting some error message’ is closed to new replies.