Okay
  Public Ticket #230707
Getting a large amount of php errors in my log refrencing themes function.php
Closed

Comments

  • Ricardo started the conversation

    Im getting a large amount of errors originating from the functions.php file of the theme. the error looks liek this. 

    [11-Jun-2014 01:00:53 UTC] PHP Warning: Attempt to modify property of non-object in /home/vamosdep/public_html/wp-content/themes/powermag/functions.php on line 275

    [11-Jun-2014 01:01:06 UTC] PHP Warning: Attempt to modify property of non-object in /home/vamosdep/public_html/wp-content/themes/powermag/functions.php on line 275

    [11-Jun-2014 01:01:07 UTC] PHP Warning: Attempt to modify property of non-object in /home/vamosdep/public_html/wp-content/themes/powermag/functions.php on line 275

    [11-Jun-2014 01:01:40 UTC] PHP Warning: Attempt to modify property of non-object in /home/vamosdep/public_html/wp-content/themes/powermag/functions.php on line 275

    [11-Jun-2014 01:03:40 UTC] PHP Warning: Attempt to modify property of non-object in /home/vamosdep/public_html/wp-content/themes/powermag/functions.php on line 275

    [11-Jun-2014 01:03:51 UTC] PHP Warning: Attempt to modify property of non-object in /home/vamosdep/public_html/wp-content/themes/powermag/functions.php on line 275

    [11-Jun-2014 01:04:05 UTC] PHP Warning: Attempt to modify property of non-object in /home/vamosdep/public_html/wp-content/themes/powermag/functions.php on line 275

    [11-Jun-2014 01:04:24 UTC] PHP Warning: Attempt to modify property of non-object in /home/vamosdep/public_html/wp-content/themes/powermag/functions.php on line 275

    it goes on hundreds of times. I opened up the functions.php file and line 275 has this function:

    function filter_js_composer_updates( $value ) {

    unset( $value->response[\\\'js_composer/js_composer.php\\\'] );

    return $value;

    }

    any insight as to what is going on? and how to fix it? 

    thanks.

  •  93
    djwd replied

    Hi there,

    you can safely remove/comment out that part of the code (precisely from line 274 - 278 of functions.php), a fix have been already packed with an upcoming update. Thank you

    Regards
    djwd

    Regards
    djwd