• Resolved vistacd

    (@vistacd)


    Hello! We are having issues with our bookshelves not completing a search in our catalog. Currently when a book is clicked, it sends the user to our catalog and inputs the ISBN, however it does not complete the search and the book does not pop up. We use SirsiDynix Enterprise for our catalog and Syndetics for images. I’ve tried changing the Domain Name in settings which did not fix anything.

    We also have some sort of issue with compatibility. Currently if we display a bookshelf on our home page, it causes a critical error and messes with our widgets. I’m honestly not sure if this has to do with our current version of WordPress or our theme or Library Bookshelves itself. This error is new as of July 1st 2022, and we’ve used Bookshelves with no issues since 2021.

    Just wondering if we could get some insight on these issues, thank you!

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

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

    (@photonicgnostic)

    Hi! Try setting your domain name to arrowhead.ent.sirsi.net, and enter THPL in the catalog profile field. That should take care of the link issue.

    It’s possible a theme or plugin update is causing a conflict. Do you know which ones were recently updated? Does the error message give you any specific information? Can you replicate the issue on a hidden page without breaking the rest of your site?

    Thread Starter vistacd

    (@vistacd)

    Thanks for the reply! The catalog profile fix worked for the search function.

    As for the error, it seems that putting the shortcode for bookshelves into a sidebar widget works okay, but here’s the original error we received when we had the shortcode on our homepage:

    Error Details
    =============
    An error of type E_ERROR was caused in line 478 of the file /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-content/plugins/library-bookshelves/functions.php. Error message: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, string given in /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-content/plugins/library-bookshelves/functions.php:478
    Stack trace:
    #0 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-content/plugins/library-bookshelves/functions.php(478): array_map(NULL, '', '', Array)
    #1 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-content/plugins/library-bookshelves/class-bookshelves-shortcode.php(35): lbs_shelveBooks('21557')
    #2 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-includes/shortcodes.php(356): Bookshelves_Shortcode->bookshelf_shortcode(Array, '', 'bookshelf')
    #3 [internal function]: do_shortcode_tag(Array)
    #4 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(booksh...', 'do_shortcode_ta...', '[bookshelf id="...')
    #5 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-includes/class-wp-hook.php(309): do_shortcode('[bookshelf id="...')
    #6 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-includes/plugin.php(191): WP_Hook->apply_filters('[bookshelf id="...', Array)
    #7 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-includes/widgets/class-wp-widget-custom-html.php(148): apply_filters('widget_text', '[bookshelf id="...', Array, Object(WP_Widget_Custom_HTML))
    #8 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-content/plugins/siteorigin-panels/inc/renderer.php(717): WP_Widget_Custom_HTML->widget(Array, Array)
    #9 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-content/plugins/siteorigin-panels/inc/renderer.php(1059): SiteOrigin_Panels_Renderer->the_widget(Array, Array, 2, 0, 1, false, true, 19940, '')
    #10 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-content/plugins/siteorigin-panels/inc/renderer.php(1024): SiteOrigin_Panels_Renderer->render_widget(19940, 2, 0, 1, Array, true)
    #11 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-content/plugins/siteorigin-panels/inc/renderer.php(936): SiteOrigin_Panels_Renderer->render_cell(19940, 2, 0, Array, Array, Array)
    #12 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-content/plugins/siteorigin-panels/inc/renderer.php(491): SiteOrigin_Panels_Renderer->render_row(19940, 2, Array, Array)
    #13 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-content/plugins/siteorigin-panels/inc/admin.php(1095): SiteOrigin_Panels_Renderer->render(19940, false, Array)
    #14 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-content/plugins/siteorigin-panels/inc/admin.php(209): SiteOrigin_Panels_Admin->generate_panels_preview(19940, Array)
    #15 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-admin/includes/template.php(1401): SiteOrigin_Panels_Admin->render_meta_boxes(Object(WP_Post), Array)
    #16 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-admin/edit-form-advanced.php(711): do_meta_boxes(Object(WP_Screen), 'advanced', Object(WP_Post))
    #17 /home/thpl/twoharborspubliclibrary.dreamhosters.com/wp-admin/post.php(206): require('/home/thpl/twoh...')
    #18 {main}
      thrown

    I also was not able to replicate this error when I put the shortcode onto the actual page. It seems to be going well so far but I am curious about this original error just in case it happens again for some reason. Sorry the error is pretty long, and I’m not sure how helpful it is but I just included the entire thing. Thanks again for the assistance!

    Plugin Author photonicgnostic

    (@photonicgnostic)

    This is extremely helpful. You found a bug! I’ll have it fixed in the next version.

    In the mean time, check the shortcode you used to place the Bookshelf. As far as I can tell, 21557 is not a valid post ID, or that post contained no items at the time of the error.

    Thread Starter vistacd

    (@vistacd)

    Oh wow! I’m glad I could help with finding the bug! Everything seems to be good right now but if I get any errors I’ll be sure to check the shortcode. Thanks again for everything!

    Plugin Author photonicgnostic

    (@photonicgnostic)

    This issue should be resolved with version 5.1.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Issues with searching catalog’ is closed to new replies.