Categories
Code jQuery WordPress

Fixing JSON Parse Error in WordPress Plugins


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /srv/users/serverpilot/apps/katzco/public/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /srv/users/serverpilot/apps/katzco/public/wp-content/plugins/wp-syntax/wp-syntax.php on line 383

If you write WordPress plugins and make AJAX requests, you may be familiar the dreaded Javascript error: SyntaxError: JSON Parse Error: Unrecognized token ‘>’ Why? Why!?! What it means is that the response your code expected is screwed up because a plugin barfed PHP warnings into the admin-ajax.php ventilation system. When WP_DEBUG is on, admin-ajax.php […]

Categories
Plugins WordPress

Gravity Forms Ajax Submit – Version 1.4 Adds Ajax Support

The Gravity Forms plugin has recently updated to Version 1.4, and it adds a bunch of features. The one I am most excited about is Ajax submission – this means that the form no longer requires a page reload to display errors and to submit. This brings the plugin in line with Contact Form 7 […]