Lots of Uncaught TypeError: gform.xxx is not a function after upgrade [RESOLVED]

Hi community.

I recently upgraded to Wordpress 6.0 and GF from 2.5.16 to 2.6.3.3 and I am getting a lot of console errors, resulting in not being able to add form elements or edit existing ones.

Some info on the hosting environment:

NGINX 1.27.0
PHP 7.4.28
GF system status is 100%
The forms still operate correctly (just can’t edit/add form fields)

Steps I have tried
Disabled all plugins except GF
Removed all custom GF functions in functions.php
Changing theme to the default 2022 WP theme
Enabled no conflict mode
Also tried all of the above together

I also tried the toggle HTML5 output
I have also used the troubleshooting mode plugin and the problem persists

I have also set up a sandbox on a CPANEL hosting account and it seems to work fine, which makes me think it might be the settings on the hosting.

Any suggestions would be much appreciated.

This can happen if the PHP DOM extension isn’t enabled on the server hosting the site. Ask the web host to enable that extension and then clear the browser cache before trying to edit the form again.

1 Like

Thanks @richardw8k

We checked the server config.

php7.4-xml is installed
we added the php xsl package
DOM feature is there and enabled

We checked the file permissions and they looked good.

I will keep tinkering and post an update if/when we find the solution.

We resolved the issue. It was a server config issue.

On our NGINX VM, we did a php8.1 upgrade and removed php-unit - just running standard fastcgi (php-fpm). This resolved our issue.