Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1241183
    MatrixFour
    Participant

    Hi Guys,

    I get this error when turning debugging on…do you know what could be the cause?

    Notice: Trying to get property of non-object in /public_html/wp-content/plugins/cornerstone/includes/elements/_alternate/recent-posts.php on line 24

    Any help would be greatly appreciated.

    #1241405
    Jade
    Moderator

    HI there,

    That is just a notice/warning and should not affect your site. Kindly disable your debug function as it should only be enabled in the development of a site so you can keep track of the error messages.

    Thank you.

    #1242340
    MatrixFour
    Participant

    I think it may be affecting my site as when debugging is disabled, I get a long running script error in internet explorer 11. When debugging enabled, the page loads normally.

    What could I do /check to see what is causing the problem?

    #1242349
    MatrixFour
    Participant

    We are also getting this error on the front end. We really need to get this sorted out as the we were planning to work on the site today.

    #1242356
    MatrixFour
    Participant

    Here is the error message

    Notice: Trying to get property of non-object in /public_html/wp-content/themes/x/framework/functions/global/classes.php on line 424
    
    Notice: Trying to get property of non-object in /public_html/wp-content/themes/x/framework/functions/global/classes.php on line 424
    class="post-98 page type-page status-publish hentry no-post-thumbnail x-portfolio-d41d8cd98f00b204e9800998ecf8427e">
    #1242379
    Darshana
    Moderator

    Hi there,

    Couple of things to check first. Check your PHP version and make sure that you’re running at least PHP 5.6.0 or above to avoid any incompatibility issues as WordPress recommends it. You can contact your hosting provider and ask them to update if needed.

    Also check your current Cornerstone version and make sure that you’re fully updated. You can check the latest version numbers here (https://community.theme.co/kb/version-compatibility/).

    Let us know how it goes.
    Thanks!

    #1242527
    MatrixFour
    Participant

    Php version is 5.6.5 and we are using the most recent version of cornerstone.

    It shows something with the TinyMCE plugin. But I have not modified or edited it.

    #1242533
    MatrixFour
    Participant

    I actually had the portfolio post type deactivate so I think that is where the one problem was coming from. I removed the follow code from my functions file and those debug messages dissappear.

    add_action( 'after_setup_theme','remove_portfolio_cpt', 100 );
    
    function remove_portfolio_cpt() {   
      remove_action( 'init', 'x_portfolio_init');    
    }

    As for the long running script, it looks like this is still happening on IE11. Really stumped here.. do you know why wp-tinymce could be causing a problem?

    #1242984
    Rad
    Moderator

    Hi there,

    Debugging is just for error reporting, it doesn’t have any connection to functionality especially browser issues since it runs on the server (PHP). What’s running on a browser are just HTML, CSS, Javascript, and all other related browser technologies.

    I’d like to check what’s going on, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks!

  • <script> jQuery(function($){ $("#no-reply-1241183 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>