• Resolved jtcheng

    (@jtcheng)


    This issue is actually for the Breadcrumbs NavXT Remove Current Item Extension Version 1.2.0

    I noticed that when I put the Breadcrumbs NavXT in the Widgetized Sidebar of Visual Composer, then click “update” button on a post making use of these things, I get the following error message:
    Fatal error: Call to a member function get_types() on null in /home/allacros/public_html/wow/wp-content/plugins/breadcrumb_navxt_remove_curitm/breadcrumb_navxt_remove_curitm.php on line 32

    This has occurred on any post where I used Visual Composer to make a post that also has a hero section so I used a Widgetized Sidebar (where Breadcrumbs NavXT is enabled in that Widgetized Sidebar element).
    Examples include:
    https://s1.temporary-access.com/~allacros/wow/niagara-falls-which-side-is-better
    https://s1.temporary-access.com/~allacros/wow/our-summer-road-trip-pacific-northwest-itinerary/

    Funny thing is that once I see the error message, I can click the back button or reload button in the browser and get back the WP post editor, then I can look at the post itself and the widgetized sidebar is there.

    Sso apparently the post/page did update. Then, when I click update on this post once again (after initially seeing this error and hitting the back or reload button), the error doesn’t come back.

    Any ideas on what is causing this behavior?

    It doesn’t seem catastrophic, but I do worry if there’s an underlying issue that might break something else. It is alarming to see the error first come up when you update the post as soon as the Widgetized Sidebar containing the Breadcrumbs NavXT is put in.

    Thanks,
    Johnny

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author John Havlik

    (@mtekk)

    The line that the error is occurring on doesn’t match the location of the code causing the reported issue for some reason. However, I can think of a reason as to why this error would happen. It is likely the result of the function removing the current item being called multiple times on the same breadcrumb trail. I have pushed a new version (1.2.1) up to github that should prevent this error.

    Thread Starter jtcheng

    (@jtcheng)

    Will version 1.2.1 make it to the WordPress plugin interface (where I can click “Update” when an update is found)?

    I’m not familiar with getting updates from gitHub for this purpose so I’m not sure how to get that new version.

    Plugin Author John Havlik

    (@mtekk)

    Since this is such a small little plugin, there hasn’t been an intention to ever get it into the .org repo. The easiest way to update it is to download the file from GitHub and use FTP/SCP to upload it to your server (overwriting the existing file).

    Thread Starter jtcheng

    (@jtcheng)

    Hi,

    So I put in version 1.2.1 and it appears that the error is gone.

    However, I noticed on this post (composed exclusively using Visual Composer) that the current item is in the breadcrumb, which you can see below the hero but at the top of the sidebar on this post: https://s1.temporary-access.com/~allacros/wow/our-summer-road-trip-pacific-northwest-itinerary

    I would imagine that this is unexpected behavior, but it’s not a showstopper.

    For the custom waterfall posts, however, the current item remains absent as expected. Example: https://s1.temporary-access.com/~allacros/wow/canada-shannon-falls.html

    Thanks

    Thread Starter jtcheng

    (@jtcheng)

    Hi,

    I just noticed that there was a version 1.2.2, and after copying-and-pasting the code from the Git/Hub repository, it appears that the extension works as expected.

    Thanks for this fix!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Fatal Error using NavXT Remove Current Item Extension’ is closed to new replies.