Posted: September 3, 2013 at 3:48 pm
|
Hi Guys, I’m working on a fairly massive project with alot of plugins, unfortunately there seems to be a registration form submit conflict with this plugin: http://wordpress.org/plugins/gravity-forms-addons/ The registration process completes, but instead of going to the registration review and confirmation pages it goes to a 404 and a php error seems to be sent through the URL… I’m going to try and find out why because I need both plugins, so I’ll let you know for any future customers, but if you find out a reason before I do please let me know. |
Hi Deborah, I am sorry you are having trouble. So, does everything work fine when the GF add-on is deactivated? I don’t have the core of GF, so I can’t download and test this. |
|
Also Deborah, Can you share the link to your site where both of the plugins are installed and activated? |
|
|
Hi Jonathan. I don’t have a public link available just yet. The error warning that I get is this: Warning: Creating default object from empty value in /wp-content/plugins/gravity-forms-addons/gravity-forms-addons.php on line 266 And it happens at this line in the gravity forms code: [code language=”php”]global $post; $post->permalink = $permalink; $url = add_query_arg(array());[/code] If I comment the above line of code out, the error goes away. Not sure what causes this yet… |
|
I’ve confirmed that its a issue with permalinks. This is the line of code in GF Directory that is causing the error: [code language=”php”]$post->permalink = $permalink;[/code] I can see where it causes the registration form error in the registration_page_display.php file here: [code language=”php”]<form method=”post” action=”<?php echo get_permalink( $event_page_id );?>” id=”registration_form”>[/code] |
Hi Deborah, I don’t know what we could be doing differently here to avoid this conflict. Using the WordPress get_permalink function should not lead to a 404 page. (Although you might try loading up the WP>Settings>Permalinks page to flush the rewrite rules). I tried loading up the GFD plugin on a test site running PHP 5.4 and I could not get the event content to load up. Instead it threw errors related to the GFD plugin. A few things that may help: It seems like your server is running PHP 5.4, is that the case? If so then it may help to turn off error display/set wp_debug to false. I checked around the wp.org forums and there’s another user with a different plugin that is reporting the same issue. You may want to team up with them and work with the plugin’s developer to resolve this: http://wordpress.org/support/topic/php-warning-creating-default-object-from-empty-value-2 |
|
|
Thanks, Josh. I’m going to try and see if I can get the Gravity Forms extension to work without that line of code, I don’t think that its Event Espresso that is causing the problem. |
|
I posted a work around here: http://wordpress.org/support/topic/php-warning-creating-default-object-from-empty-value-2 Hopefully this helps. |
The support post ‘FYI Conflict with Gravity Forms Directory Add-On’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.