Thanks for the report, did you try the other choice for the “TinyMCE filter” option in Insert Pages settings?
Yes, I tried both options, and I get the error either way.
Running the free Gravity Forms Demo (https://www.gravityforms.com/gravity-forms-demo/) and installing the Insert Pages plugin, we do not see any errors when editing a form confirmation, and the Insert Pages TinyMCE plugin seems to work fine:
View post on imgur.com
View post on imgur.com
Can you check to see if you’re on the latest version of Gravity Forms, and maybe see if there’s another plugin that’s causing the conflict? Or try to reproduce the issue in a test environment with other variables removed and describe the steps to reproduce?
I have the latest version of gravity forms, and the error was happening with all other plugins disabled and default twenty twenty-five theme. You’re correct however — when I tried a fresh installation in a test environment, I didn’t have any errors there. I used ChatGPT to try to diagnose what might be going on in my specific environment, and it gave me a suggestion that worked, if this is helpful for anyone else:
Add this temporarily to functions.php and then visit any admin page once, which will run the snippet. Then it can be removed from functions.php:
add_action( 'admin_init', function() {
global $wpdb;
// Only delete known Insert Pages transient or options safely by name
$wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name IN ('insert_pages_settings', 'insert_pages_mce_plugin')" );
// Remove any user meta keys that specifically mention wpInsertPages
$wpdb->query( "DELETE FROM {$wpdb->usermeta} WHERE meta_key LIKE '%wpInsertPages%'" );
});
It seems something was stuck in the database somewhere, even after I updated Insert Pages and cleared all other caches. The snippet cleared everything out and everything is working now.
-
This reply was modified 4 months, 2 weeks ago by
imdtracy.
-
This reply was modified 4 months, 2 weeks ago by
imdtracy.
-
This reply was modified 4 months, 2 weeks ago by
imdtracy.
Strange! The first snippet is unlikely to do anything, the option_name for this plugin has always been wpip_settings. Not sure about the second snippet, it’s possible some previous version of TinyMCE (or the Classic Editor plugin) set some usermeta value with the TinyMCE plugins? This plugin registers wpInsertPages as the TinyMCE plugin name: https://github.com/uhm-coe/insert-pages/blob/master/js/wpinsertpages_plugin.js#L14
Regardless, glad you got it fixed, and let us know if the problem crops up again!