Okay
  Public Ticket #3317808
Unable to create a new Appointment Notification – TypeError: Cannot read properties of undefined (reading 'includes')
Closed

Comments

  • Danny started the conversation

    As the title suggests, I'm having issues when adding a new custom Appointment notification in Amelia > Notifications.

    Adding a new custom Event notification works, but the Appointment one doesn't. I've attached a couple of images.

    This console error triggers when the blue '+ Create new Notification' button is clicked under Appointments.

    I have deactivated all plugins on the site, and switched themes to ensure there's no conflicts. I've also re-downloaded Amelia and replaced the plugin and I'm still getting the same error.

    I need to be able to add a notification when a customer books something for the first time, so any help here would be great.

    amelia-booking.js?ver=6.2:1 TypeError: Cannot read properties of undefined (reading 'includes')
        at s.getExcludedPlaceholders (amelia-booking-notifications-39cc453b3ff9a14bd214.js:1:19829)
        at s.render (amelia-booking-notifications-39cc453b3ff9a14bd214.js:1:63446)
        at e._render (amelia-booking.js?ver=6.2:1:1048903)
        at pn.before (amelia-booking.js?ver=6.2:1:1082218)
        at pn.get (amelia-booking.js?ver=6.2:1:1040919)
        at pn.run (amelia-booking.js?ver=6.2:1:1041803)
        at hn (amelia-booking.js?ver=6.2:1:1039912)
        at Array.<anonymous> (amelia-booking.js?ver=6.2:1:1026668)
        at Je (amelia-booking.js?ver=6.2:1:1026113)</anonymous>
    

    I'm running this plugin on a local Wordpress installation. I haven't had this issue before with another client site I made, using the same theme

    Server dump here:

    Thanks,

    Danny

    `
    ### wp-core ###
    version: 6.1.1
    site_language: en_US
    user_language: en_US
    timezone: +00:00
    permalink: /%postname%/
    https_status: true
    multisite: false
    user_registration: 0
    blog_public: 1
    default_comment_status: open
    environment_type: local
    user_count: 7
    dotorg_communication: true
    ### wp-paths-sizes ###
    wordpress_path: /Users/dev/Server/gs/app/public
    wordpress_size: 49.67 MB (52079625 bytes)
    uploads_path: /Users/dev/Server/gs/app/public/wp-content/uploads
    uploads_size: 62.19 MB (65206853 bytes)
    themes_path: /Users/dev/Server/gs/app/public/wp-content/themes
    themes_size: 16.00 MB (16778745 bytes)
    plugins_path: /Users/dev/Server/gs/app/public/wp-content/plugins
    plugins_size: 99.16 MB (103981524 bytes)
    database_size: 30.50 MB (31981568 bytes)
    total_size: 257.52 MB (270028315 bytes)
    ### wp-active-theme ###
    name: Twenty Twenty-Three (twentytwentythree)
    version: 1.0
    author: the WordPress team
    author_website: https://wordpress.org
    parent_theme: none
    theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, block-templates, widgets-block-editor, tw-spacing, editor-style
    theme_path: /Users/dev/Server/gs/app/public/wp-content/themes/twentytwentythree
    auto_update: Disabled
    ### wp-plugins-active (11) ###
    Amelia: version: 6.2, author: TMS, Auto-updates disabled
    Code Snippets: version: 3.3.0, author: Code Snippets Pro, Auto-updates disabled
    Custom CSS Pro: version: 1.0.7, author: WaspThemes, Auto-updates disabled
    Duplicate Page: version: 4.5.1, author: mndpsingh287, Auto-updates disabled
    Gravity Forms: version: 2.7.3, author: Gravity Forms, Auto-updates disabled
    jQuery Smooth Scroll: version: 1.4.5, author: Digital Liberation, Auto-updates disabled
    Spectra: version: 2.4.0, author: Brainstorm Force, Auto-updates disabled
    Twentig: version: 1.5.5, author: Twentig.com, Auto-updates disabled
    User Access Shortcodes: version: 2.3, author: WP Darko, Auto-updates disabled
    User Role Editor: version: 4.63.3, author: Vladimir Garagulya, Auto-updates disabled
    WP Migrate: version: 2.6.3, author: WP Engine, Auto-updates disabled
    ### wp-plugins-inactive (1) ###
    Safe SVG: version: 2.0.3, author: 10up, Auto-updates disabled
    ### code-snippets (3) ###
    snippet-2: name: Disable admin bar, scope: front-end, modified: 2023-03-14 10:56:38, tags: [sample, admin-bar]
    snippet-4: name: Current year, scope: content, modified: 2023-03-14 10:56:38, tags: [sample, dates]
    snippet-5: name: Education & Business change user role, scope: front-end, modified: 2023-03-17 17:41:04
    ### wp-media ###
    image_editor: WP_Image_Editor_Imagick
    imagick_module_version: 1808
    imagemagick_version: ImageMagick 7.1.0-46 Q16 x86_64 5ef3d4d66:20220816 https://imagemagick.org
    imagick_version: 3.7.0
    file_uploads: File uploads is turned off
    post_max_size: 1000M
    upload_max_filesize: 300M
    max_effective_size: 300 MB
    max_file_uploads: 20
    imagick_limits: 
        imagick::RESOURCETYPE_AREA: 64 GB
        imagick::RESOURCETYPE_DISK: 9.2233720368548E+18
        imagick::RESOURCETYPE_FILE: 6144
        imagick::RESOURCETYPE_MAP: 64 GB
        imagick::RESOURCETYPE_MEMORY: 32 GB
        imagick::RESOURCETYPE_THREAD: 1
    imagemagick_file_formats: Unable to determine
    gd_version: bundled (2.1.0 compatible)
    gd_formats: GIF, JPEG, PNG, WebP, BMP
    ghostscript_version: not available
    ### wp-server ###
    server_architecture: Darwin 22.3.0 x86_64
    httpd_software: nginx/1.16.0
    php_version: 8.1.9 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 4000
    time_limit: 1200
    memory_limit: 256M
    max_input_time: 600
    upload_max_filesize: 300M
    php_post_max_size: 1000M
    curl_version: 7.84.0 (SecureTransport) OpenSSL/1.1.1q
    suhosin: false
    imagick_availability: true
    pretty_permalinks: true
    htaccess_extra_rules: false
    ### wp-database ###
    extension: mysqli
    server_version: 8.0.16
    client_version: mysqlnd 8.1.9
    max_allowed_packet: 16777216
    max_connections: 151
    ### wp-constants ###
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /Users/dev/Server/gs/app/public/wp-content
    WP_PLUGIN_DIR: /Users/dev/Server/gs/app/public/wp-content/plugins
    WP_MEMORY_LIMIT: 40M
    WP_MAX_MEMORY_LIMIT: 256M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: true
    WP_DEBUG_LOG: false
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_ENVIRONMENT_TYPE: local
    DB_CHARSET: utf8
    DB_COLLATE: undefined
    ### wp-filesystem ###
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    mu-plugins: writable
    `
    

    Attached files:  Screenshot 2023-03-17 at 23.13.13.png
      Screenshot 2023-03-17 at 23.13.31.png

  •  1,171
    Uroš replied

    Hello Danny,

    Thank you for reaching out to us.

    This issue was resolved in the 6.2.1 update of Amelia. 

    Please update the plugin to the latest version, test it out now, and let me know if it works or not.


    Kind Regards, 

    Uros Jovanovic
    [email protected]

    Rate my support

    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

  • Danny replied

    Thanks Uroš :)

    Confirmed working in the latest version

    Thanks to you and the team for the quick responses and fixes

  •   Uroš replied privately