Uncaught TypeError: gform.addAction is not a function

Just purchased the plugin (2.9.1.1), and current we cannot edit any newly created forms.

When editing an existing form: Console shows:
Uncaught TypeError: gform.addAction is not a function
Uncaught TypeError: gform.addAction is not a function
Uncaught TypeError: gform.applyFilters is not a function
Uncaught (in promise) TypeError: h(…).applyFilters is not a function
Uncaught (in promise) TypeError: a(…).addAction is not a function

None of the buttons are clickable, or otherwise useable on the edit screen.

The plugin is in “no conflict” mode.

We tested this with both creating a new blank form, and creating from template. We can use the template form on the frontend (it can be submitted etc) but neither the template form, nor a blank form can be edited, so we effectively have no way to create working forms currently.

Worth noting that this is a Bedrock Installation, running in a development environment, no SSL.

System report (With sensitive info removed):
`

wp-core

version: 6.6.1
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /%category%/%postname%/
https_status: false
multisite: false
user_registration: 1
blog_public: undefined
default_comment_status: open
environment_type: development
user_count: 2
dotorg_communication: true

wp-paths-sizes

wordpress_path: /var/www//web/wp
wordpress_size: loading…
uploads_path: /var/www/
/web/app/uploads
uploads_size: loading…
themes_path: /var/www//web/app/themes
themes_size: loading…
plugins_path: /var/www/
/web/app/plugins
plugins_size: loading…
fonts_path: /var/www/****/web/app/uploads/fonts
fonts_size: loading…
database_size: loading…
total_size: loading…

wp-active-theme

name: bootstrap-starter-child (bootstrap-starter-child)
version: undefined
author: Anonymous
author_website: (undefined)
parent_theme: bootstrap-starter (bootstrap-starter)
theme_features: core-block-patterns, menus, widgets-block-editor, post-thumbnails, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, title-tag, automatic-feed-links, html5, wp-block-styles, align-wide, editor-styles, editor-style, widgets
theme_path: /var/www/****/web/app/themes/bootstrap-starter-child

wp-parent-theme

name: bootstrap-starter (bootstrap-starter)
version: 3.4.1
author: ****
author_website: ****
theme_path: /var/www/****/web/app/themes/bootstrap-starter

wp-themes-inactive (1)

**** New: version: 1.1, author: Anonymous

wp-mu-plugins (2)

Bedrock Autoloader: version: 1.0.3, author: Roots
Better error levels: version: 1.0.0, author: Olly

wp-plugins-active (24)

Advanced Custom Fields PRO: version: 6.2.7, author: WP Engine (latest version: 6.3.11)
Classic Widgets: version: 0.3, author: WordPress Contributors
Contact Form 7: version: 5.9.8, author: Takayuki Miyoshi (latest version: 6.0.1)
Contact Form 7 Add Password field: version: 4.2, author: Kimiya Kitani (latest version: 5.0)
Custom Post Type Maker: version: 1.2.0, author: Graffino
Default featured image: version: 1.7.3, author: Jan Willem Oostendorp
FacetWP: version: 4.2.12, author: FacetWP, LLC (latest version: 4.3.5)
Favorites: version: 2.3.4, author: Kyle Phillips
GenerateBlocks: version: 1.9.1, author: Tom Usborne
Gravity Forms: version: 2.9.1.1, author: Gravity Forms
Gravity Forms PayPal Checkout Add-On: version: 3.8.0, author: Gravity Forms
Gravity Forms Stripe Add-On: version: 5.9.0, author: Gravity Forms
LearnDash - ConvertKit: version: 1.4.0, author: Real Big Plugins
LearnDash Licensing & Management: version: 1.3, author: LearnDash
LearnDash LMS: version: 4.12.1, author: LearnDash
Magic Login: version: 2.3.3, author: HandyPlugins (latest version: 2.3.4)
myCred: version: 2.8, author: myCred
ReCaptcha v2 for Contact Form 7: version: 1.4.8, author: IQComputing
S3 File Upload: version: 1.0, author: ****
SVG Support: version: 2.5.8, author: Benbodhi
Widget Options: version: 4.0.8, author: Widget Options Team
WooCommerce: version: 9.5.1, author: Automattic
WooCommerce Subscriptions: version: 6.7.0, author: WooCommerce (latest version: 7.0.0)
Yoast SEO: version: 23.9, author: Team Yoast (latest version: 24.1)

wp-plugins-inactive (36)

AAWP: version: 3.40.1, author: AAWP
Advanced Custom Fields: version: 6.3.11, author: WP Engine
Advanced Form Integration: version: 1.97.0, author: nasirahmed (latest version: 1.98.0)
Advanced Woo Search: version: 3.23, author: ILLID
Akismet Anti-spam: Spam Protection: version: 5.3.5, author: Automattic - Anti-spam Team
All-in-One WP Migration: version: 7.87, author: ServMask
****: version: 1.0, author: ****
: version: 1.0.0, author:
Classic Editor: version: 1.6.7, author: WordPress Contributors
Contact Form DB: version: 2.10.25, author: Michael Simpson
Email Templates: version: 1.4.4, author: wpexpertsio
Happy SCSS Compiler - Compile SCSS to CSS automatically: version: 1.3.10, author: Happy Monkey
Hubbub Lite: version: 1.34.7, author: NerdPress
Kadence WooCommerce Email Designer: version: 1.5.14, author: Kadence WP
Kit (formerly ConvertKit): version: 2.6.9, author: Kit (latest version: 2.7.0)
LearnDash LMS - ProPanel: version: 2.2.2, author: LearnDash
LearnDash LMS - Thrivecart Integration: version: 1.0.2, author: LearnDash
Mediavine Control Panel: version: 2.10.5, author: Mediavine
Notification: version: 9.0.3, author: BracketSpace
Photo Gallery: version: 1.8.2, author: Photo Gallery Team (latest version: 1.8.31)
Pixel Cat Lite: version: 3.0.6, author: Fatcat Apps
Really Simple SSL: version: 8.3.0.1, author: Really Simple Plugins (latest version: 9.1.4)
Relevanssi: version: 4.24.2, author: Mikko Saari (latest version: 4.24.3)
Search Exclude: version: 2.2.0, author: QuadLayers
Shortcoder: version: 6.4, author: Aakash Chakravarthy
Simple 301 Redirects: version: 2.0.11, author: WPDeveloper
Uncanny Toolkit for LearnDash: version: 3.7.0.1, author: Uncanny Owl
Uncanny Toolkit Pro for LearnDash: version: 4.2, author: Uncanny Owl
WooCommerce PayPal Payments: version: 2.9.5, author: WooCommerce
WooCommerce Shipping & Tax: version: 2.8.5, author: WooCommerce
WooCommerce Stripe Gateway: version: 9.0.0, author: Stripe
WooPayments: version: 8.6.1, author: WooCommerce
Wordfence Security: version: 7.11.7, author: Wordfence (latest version: 8.0.1)
WP-Optimize - Clean, Compress, Cache: version: 3.8.0, author: TeamUpdraft, DavidAnderson
WPForms Lite: version: 1.9.2.3, author: WPForms
WP Mail SMTP: version: 4.3.0, author: WP Mail SMTP

wp-media

image_editor: WP_Image_Editor_GD
imagick_module_version: Not available
imagemagick_version: Not available
imagick_version: Not available
file_uploads: 1
post_max_size: 50M
upload_max_filesize: 50M
max_effective_size: 50 MB
max_file_uploads: 20
gd_version: 2.3.3
gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF, XPM
ghostscript_version: not available

wp-server

server_architecture: Linux 5.15.0-125-generic x86_64
httpd_software: Apache/2.4.52 (Ubuntu)
php_version: 8.3.14 64bit
php_sapi: apache2handler
max_input_variables: 1000
time_limit: 30
memory_limit: 256M
admin_memory_limit: 512M
max_input_time: 60
upload_max_filesize: 50M
php_post_max_size: 50M
curl_version: 7.81.0 OpenSSL/3.0.2
suhosin: false
imagick_availability: false
pretty_permalinks: true
current: 2024-12-19T16:33:04+00:00
utc-time: Thursday, 19-Dec-24 16:33:04 UTC
server-time: 2024-12-19T16:33:01+00:00

wp-database

extension: mysqli
server_version: 8.0.40-0ubuntu0.22.04.1
client_version: mysqlnd 8.3.14
max_allowed_packet: 67108864
max_connections: 151

wp-constants

WP_HOME: http://****
WP_SITEURL: http:///wp
WP_CONTENT_DIR: /var/www/
/web/app
WP_PLUGIN_DIR: /var/www/****/web/app/plugins
WP_MEMORY_LIMIT: 256M
WP_MAX_MEMORY_LIMIT: 512M
WP_DEBUG: true
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: true
SCRIPT_DEBUG: true
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: development
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8mb4
DB_COLLATE: undefined

wp-filesystem

wordpress: not writable
wp-content: not writable
uploads: writable
plugins: not writable
themes: not writable
fonts: writable
mu-plugins: not writable

learndash

version: 4.12.1
last_updated: 1731670266
previous_version: new
license_validated: false
course_count: 19
group_count: undefined
lesson_count: 216
topic_count: undefined
quiz_count: undefined
question_count: undefined
exam_count: undefined
certificate_count: undefined
shared_course_steps: true
active_template: ld30
focus_mode: false
rtl: false
registration_page: false
currency: undefined
nested_urls: true
payment_gateway_paypal_ipn: false
payment_gateway_stripe_connect: false
payment_gateway_razorpay: false
course_using_free_form_progression_count: 19
course_using_linear_progression_count: undefined
lesson_using_video_progression_count: undefined
lesson_using_drip_content_count: undefined
topic_using_drip_content_count: undefined
quiz_using_randomized_question_ordering_count: undefined
enrolled_user_count: 1
LEARNDASH_DEBUG: false
LEARNDASH_SCRIPT_DEBUG: true

`

Is dom included in the list of loaded PHP extensions on the Forms > System Status page? If not, that would cause that JS error.

Yep:

Loaded Extensions Core, date, libxml, openssl, pcre, zlib, filter, hash, json, random, Reflection, SPL, session, standard, sodium, apache2handler, mysqlnd, PDO, xml, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, Zend OPcache

It looks like the gforms_hooks.js file containing those functions hasn’t been loaded / included.

maybe an issue with the way the plugin was installed, there are a lot of files missing from your screenshot. here’s what that folder looks like on my test site: Screenshot 2024-12-19 at 17.18.09.png - Droplr

That’s a screenshot from my browser inspector (what’s actually being passed back to chrome)- the files themselves are there on the server:

I’ve also checked the function that loads that js file (with file_get_contents) and it is receiving the correct file content, it just doesn’t appear to be making it back up the chain

Just a further update here.

After doing the usual WordPress turn it all off and back on again thing to debug, it looks like a conflict with WooCommerce (9.5.1).

I have not rolled the WooCommerce back a version. Will continue to debug

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.