Support

Home Forums Event Espresso Premium Error appearing on contact form 7 thank you page

Error appearing on contact form 7 thank you page

Posted: July 17, 2015 at 2:18 am

Viewing 5 reply threads


Zoe E

July 17, 2015 at 2:18 am

Hi, I’ve just set up a thank you page for a contact form 7 enquiry form I have on a site. When the thank you page loads the following EE4 error appears!

An error has occurred:
No transaction information could be retrieved because the registration URL link is missing or invalid.
EES_Espresso_Thank_You – _get_reg_url_link – 198

How can I stop this? The page and form have nothing to do with EE4!

Cheers,

Zoe


Tony

  • Support Staff

July 17, 2015 at 1:07 pm

Hi Zoe,

So currently you have:

domain.com/thank-you/ (which would be the EE thank you page?)

domain.com/something/thank-you/ (which would be your Contact Form 7 thank you page)

Is that correct?

I’ve set-up the above and confirmed the notices are displayed on both the pages with that set-up, I just want to confirm that is how you have your pages.

I have requested some developer feedback on why this is happening, but I also have a work around to remove the notice from the additional page for the time being, if you add this function:

add_filter( 'FHEE__EE_Front_Controller__display_errors', 'ee_remove_notices_from_front_page' );
function ee_remove_notices_from_front_page($display_errors) {
	
	// Check if this is the 'other' thank-you page ID and
	// if so set the EE_Front_Controller not to display errors.
	if( is_page(103) ) {
		$display_errors = false;
	}		

	return $display_errors;
}

To either your themes functions.php file, or a Site Specific Plugin, change the page ID (103 in my example) to match the Contact Form 7 thank you page ID and the errors will no longer display.


Zoe E

July 17, 2015 at 1:11 pm

Thanks Tony, Yes that is how I have them set up. Would it help if my URL wasnt thank-you? If not that work around will do the job for now!


Tony

  • Support Staff

July 17, 2015 at 1:15 pm

You’re most welcome.

Yes, it will also work if you change the other page to no longer use ‘thank-you’ as the page slug.


Zoe E

July 17, 2015 at 1:21 pm

Lovely, thats an even quicker fix and works just fine ๐Ÿ™‚


Tony

  • Support Staff

July 17, 2015 at 2:04 pm

Awesome, I’m glad that works for you ๐Ÿ™‚

Viewing 5 reply threads

The support post ‘Error appearing on contact form 7 thank you page’ 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