Support

Home Forums Event Espresso Premium FYI Conflict with Gravity Forms Directory Add-On

FYI Conflict with Gravity Forms Directory Add-On

Posted: September 3, 2013 at 3:48 pm

Viewing 7 reply threads


marketing

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.


Jonathan Wilson

September 3, 2013 at 3:57 pm

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.


Jonathan Wilson

September 3, 2013 at 3:58 pm

Also Deborah,

Can you share the link to your site where both of the plugins are installed and activated?


marketing

September 4, 2013 at 12:21 pm

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…


marketing

September 4, 2013 at 3:08 pm

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]


Josh

  • Support Staff

September 5, 2013 at 7:44 am

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


marketing

September 10, 2013 at 2:59 pm

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.


marketing

September 10, 2013 at 3:40 pm

I posted a work around here: http://wordpress.org/support/topic/php-warning-creating-default-object-from-empty-value-2

Hopefully this helps.

Viewing 7 reply threads

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.

Event Espresso