Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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!

    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!

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