• Fatal error: Call to a member function getLink() on a non-object in /home/etcetc/public_html/brassandmortar.com/wp-content/plugins/catablog/lib/CataBlog.class.php on line 2497

    I’m getting that error on the gallery on this page when I removed a couple pictures from the library I created.

    The script stops at that point and fails to load the rest of the images.

    I’ve also noticed it also no longer loads the actual custom-post-type content, the footer or the sidebar anymore—just the gallery containing the error.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Ratspeed

    (@ratspeed)

    Update: I noticed that when I went to the Gallery settings and “Saved Changes”, the error went away, so apparently when you erase images from the library and save changes, the script needs to somehow notify the galleries which the image is included in.

    Thanks for the info, I now know what I need to fix this. Unfortunately, going through and removing an item from possibly hundreds of galleries every time an item is deleted is not going to work. Instead I will employ the same tactic I used with the edit gallery admin panel. Before using the getLink() method, it must check if indeed it is a legitimate object. If it is not a CataBlogItem object, go to the next catalog item.

    Thread Starter Ratspeed

    (@ratspeed)

    Okay cool ?? Oh, btw, just fyi, regarding the other issue, I’m currently attempting to hack a lil and get my theme’s jQuery pagination function to call within CataBlog’s gallery template. I’ll share what I’ve done with you afterwards in case you’re curious. ?? (Though I hardly know what I’m doing ’cause I know neither PHP nor JavaScript, but I suppose this is the best way of learning!)

    Thread Starter Ratspeed

    (@ratspeed)

    Err, actually, scratch that. I just remembered. It’s not the lightbox I’m hacking, it’s the pagination function to make the thumbnails slide to and fro..

    Thread Starter Ratspeed

    (@ratspeed)

    I do have another note on THIS issue, though.

    I added more images to the library, gave them the category of the gallery they’re included in, and they’re not appending to the gallery item list. Currently trying to find out why not.

    Thread Starter Ratspeed

    (@ratspeed)

    Oh wow.. check this out…

    Look how the order and alignment of the library entries are off. I bet that’s somehow connected to the issue above.

    Ratspeed, if you upgrade to the new version of CataBlog, 1.6.1, you should no longer get the calling to a member function of non object fatal error. I am not sure about the layout glitch you are experiencing. Did you try hiding and showing the columns using the Screen Options in the upper right?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Bug? Erasing an Image from CataBlog Library causes gallery PHP error’ is closed to new replies.