• Resolved babraham76

    (@babraham76)


    After my update to 4.8, I am getting this error on my index page. Just using the shortcode [a-z-listing post-type=”post”]… everything else works fine, but WP throws this error:

    Warning: Attempt to assign property of non-object in /home/content/13/11455113/html/triguybri.com/wp-content/plugins/a-z-listing/partials/class-a-z-listing.php on line 111

    I do have this added to my funtctions.php, but removing it does not change anything:
    // Add numbers for A-Z Listing
    add_filter( ‘a_z_listing_alphabet’, ‘your_alphabet_filter’ );

    function your_alphabet_filter( $alphabet ) {
    return ‘#1234567890,’ . $alphabet;
    }

    Thanks!!!

    • This topic was modified 7 years, 7 months ago by babraham76.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    Are you running version 1.6.3? This is the latest version at time of writing.

    If not, can you try updating to see if it rectifies the problem?

    On the other hand, if you’re already on that version I’ll need to take a look at the plugin to see if I can spot the error.

    Thread Starter babraham76

    (@babraham76)

    I checked, I’m on the latest 1.6.3. I also did a little more digging and we actually have this problem on our live site which is on WP 4.7.5, so it wasnt 4.8 that broke it. We just noticed it while testing 4.8

    Any ideas where to look? Thanks!

    Thread Starter babraham76

    (@babraham76)

    I have it figured out what causes the error. If I have the index page as a child of another page, I get the error. If I make the index page have no parent, no errors.

    This is not ideal as having the index page at the root level picks up a bunch of nonsense…

    Thanks for your help as always!!!

    – B

    Plugin Author Dani Llewellyn

    (@diddledani)

    I’ve hopefully just squashed this one with version 1.6.4 which is a bugfix aimed at this bug. It passes automated tests, but I still need to write a specific test for this scenario.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Warning: Attempt to assign property of non-object’ is closed to new replies.