• Now I am getting a weird error message.
    When you do a search and have several results to display the error does not appear.

    It only appears when you do a SEARCH on my blog and returns a NO RESULT or blank search query…

    here is the whole line from the page:

    Notice: Trying to get property of non-object in …/htdocs/blog/wp-content/plugins/lightbox-plus/classes/actions.class.php on line 139
    <!– Lightbox Plus ColorBox v2.6/1.3.32 – 2013.01.24 – Message: –>
    <script type=”text/javascript”>
    jQuery(document).ready(function($){
    $(“a[rel*=lightbox]”).colorbox({initialWidth:”30%”,initialHeight:”30%”,maxWidth:”90%”,maxHeight:”90%”,opacity:0.8});
    });
    </script>
    <script type=’text/javascript’ src=’https://www.edparton.com/blog/wp-content/plugins/lightbox-plus/js/jquery.colorbox.1.3.32.js?ver=1.3.32′></script&gt;

    A small nuisance but I can’t find out why Lightbox Plus is giving an error on a Search and not anywhere else??

    Thanks!

    https://www.ads-software.com/extend/plugins/lightbox-plus/

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter jollymoon

    (@jollymoon)

    funny
    display_errors = Off is OFF in my php.ini

    Thread Starter jollymoon

    (@jollymoon)

    Trying to get property of non-object in …
    /htdocs/blog/wp-content/plugins/lightbox-plus/classes/actions.class.php on line 139

    is the error I was getting on blank search or 404.php

    it only appears if the search is empty and on the 404 page.

    I commented OUT line:
    137 // if ( $lightboxPlusOptions[‘fixed’] == ‘1’ ) { $lbpArrayPrimary[] = ‘fixed:’.$this->setBoolean( //$lightboxPlusOptions[‘fixed’] ); }
    138 // if (!is_admin()) {
    139 // $lbp_autoload = get_post_meta( $post->ID, ‘_lbp_autoload’, true );
    140 // if ( $lbp_autoload == ‘1’ ) { $lbpArrayPrimary[] = ‘open:true’; }
    141 // }

    and the error goes away…

    I also tested it in the default twentytwelve theme and got the same error…

    Doesn’t seem to affect the lightbox plus functions on other pages.

    Any ideas??

    I would just ignore this – until dev. has made an update and error is still there. Then nagging starts for real ?? Is not a permanent notice and is not even an error or warning. If it was why are there warnings and errors? A notice can be sign of something problematic that should get fixed but not like it break site.

    Reminds me of https://core.trac.www.ads-software.com/ticket/23255 I use a framework that allow you to filter in new get_template parts based on what ever you tell it to look for. This https://dev.themeblvd.com/tutorial/incorporating-post-formats/ show how to make new templates for specific post formats. Ok, so when told to add new template part for a format, like “link” – it will do that. Works 100% but there is a “Trying to get property of non-object, line 768” in post.php notice, only WHEN on a category index/archive page. “Checking of post format” in other words, see the file. I tried all sorts of things, thinking internals were broken. I dont think so as the “fix” in trac remove notice. “Fix” is not approved of, though core devs. also will say a notice is sort of an error right?, but in “nightly” WordPress 3.6 code for post-format checking in post.php is split out in to a new post-formats.php. So I wait it out.

    A bit more weird than what you have but things can be more complicated than they seem, also for plugin devs. ??

    Thread Starter jollymoon

    (@jollymoon)

    Thanks TZDK for all your help…

    Maybe the DEV will notice the code snippet above and realize that the get_post_meta is unnecessary on a blank page and fix this error

    I tried to post over in the DEV DEBUG forum of this site, but I got bumped for having a double post…

    Things are working for now… hope you find your GREMLIN / BUG

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘actions.class.php on line 139’ is closed to new replies.