Okay
  Public Ticket #3054908
Critical Error
Closed

Comments

  • Karl Gilmore started the conversation

    Hi Support,


    I am experiencing a critical error on the bookings page

    https://clanrye.onyx-sites.io/book-activities/


    This has happened after I added new times to a service via employee.


  • Karl Gilmore replied

    I attach error text file.


    <b>Fatal error</b>:  Uncaught AmeliaBooking\Domain\Common\Exceptions\InvalidArgumentException: Invalid key 1. in /var/www/html/wp-content/plugins/ameliabooking/src/Domain/Collection/AbstractCollection.php:88
    Stack trace:
    #0 /var/www/html/wp-content/plugins/ameliabooking/src/Application/Services/User/ProviderApplicationService.php(1243): AmeliaBooking\Domain\Collection\AbstractCollection->getItem(1)
    #1 /var/www/html/wp-content/plugins/ameliabooking/src/Application/Services/Stash/StashApplicationService.php(381): AmeliaBooking\Application\Services\User\ProviderApplicationService->getProviderServiceLocations(Object(AmeliaBooking\Domain\Entity\User\Provider), Object(AmeliaBooking\Domain\Collection\Collection), Object(AmeliaBooking\Domain\Collection\Collection))
    #2 /var/www/html/wp-content/plugins/ameliabooking/src/Infrastructure/WP/ShortcodeService/AmeliaShortcodeService.php(161): AmeliaBooking\Application\Services\Stash\StashApplicationService->getStash()
    #3 /var/www/html/wp-content/plugins/ameliabooking/src/Infrastructure/WP/ShortcodeService/CatalogShortcodeService.php(40): AmeliaBooking\Infrastructure\WP\ShortcodeService\AmeliaShortcodeService::prepareScriptsAndStyles()
    #4 /var/www/html/wp-includes/shortcodes.php(356): AmeliaBooking\Infrastructure\WP\ShortcodeService\CatalogShortcodeService::shortcodeHandler(Array, '', 'ameliacatalog')
    #5 [internal function]: do_shortcode_tag(Array)
    #6 /var/www/html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(amelia...', 'do_shortcode_ta...', '\n\n[ameliacatalo...')
    #7 /var/www/html/wp-content/themes/flatsome/inc/shortcodes/ux_text.php(47): do_shortcode('\n\n[ameliacatalo...')
    #8 /var/www/html/wp-includes/shortcodes.php(356): flatsome_render_ux_text_shortcode(Array, '\n\n[ameliacatalo...', 'ux_text')
    #9 [internal function]: do_shortcode_tag(Array)
    #10 /var/www/html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(amelia...', 'do_shortcode_ta...', '\n\n[ux_text font...')
    #11 /var/www/html/wp-content/themes/flatsome/inc/shortcodes/row.php(216): do_shortcode('\n\n[ux_text font...')
    #12 /var/www/html/wp-includes/shortcodes.php(356): ux_col(Array, '\n\n[ux_text font...', 'col')
    #13 [internal function]: do_shortcode_tag(Array)
    #14 /var/www/html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(amelia...', 'do_shortcode_ta...', '\n\n[col span__sm...')
    #15 /var/www/html/wp-content/themes/flatsome/inc/shortcodes/row.php(79): do_shortcode('\n\n[col span__sm...')
    #16 /var/www/html/wp-includes/shortcodes.php(356): ux_row(Array, '\n\n[col span__sm...', 'row')
    #17 [internal function]: do_shortcode_tag(Array)
    #18 /var/www/html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(amelia...', 'do_shortcode_ta...', '\t<section class...')
    #19 /var/www/html/wp-content/themes/flatsome/inc/shortcodes/sections.php(237): do_shortcode('\t<section class...')
    #20 /var/www/html/wp-includes/shortcodes.php(356): ux_section(Array, '\t<section class...', 'section')
    #21 [internal function]: do_shortcode_tag(Array)
    #22 /var/www/html/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(amelia...', 'do_shortcode_ta...', '\n[section label...')
    #23 /var/www/html/wp-includes/class-wp-hook.php(307): do_shortcode('\n[section label...')
    #24 /var/www/html/wp-includes/plugin.php(191): WP_Hook->apply_filters('\n[section label...', Array)
    #25 /var/www/html/wp-includes/post-template.php(253): apply_filters('the_content', '<!-- wp:flatsom...')
    #26 /var/www/html/wp-content/themes/flatsome/page-blank.php(13): the_content()
    #27 /var/www/html/wp-includes/template-loader.php(106): include('/var/www/html/w...')
    #28 /var/www/html/wp-blog-header.php(19): require_once('/var/www/html/w...')
    #29 /var/www/html/index.php(17): require('/var/www/html/w...')
    #30 {main}
      thrown in <b>/var/www/html/wp-content/plugins/ameliabooking/src/Domain/Collection/AbstractCollection.php</b> on line <b>88</b><br />

  •  1,853
    Miloš replied


    Hi, Karl 

    Thanks for reaching out to us

    9932487403.png

    I can't see any errors right now on the page you have sent?

    Can you confirm that you still have the issues on the page?

    -

    Perhaps it was a caching issue. Whenever you make a significant change in Amelia, make sure to purge all cache on site, to avoid issues.

    Looking forward to your reply.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables