Support

Home Forums Event Espresso Premium Registration Form Disappeared After Modifying the Display File

Registration Form Disappeared After Modifying the Display File

Posted: October 26, 2012 at 10:11 am

Viewing 4 reply threads


Wesley

October 26, 2012 at 10:11 am

Hi there,

The site I’m working on is here: Straightline

I found an error in the registration form and edited my registration_page_display.php. After I uploaded the file, the registration form disappeared. So, I undid all of my changes and uploaded the file as it was before. The registration form is still not displaying.

This is where the file is located: /wp-content/uploads/espresso/templates

Any ideas?

Thanks


Josh

  • Support Staff

October 26, 2012 at 12:24 pm

Hi Wesley,

Here are two things you can do:

Update to the latest version of Event Espresso and remove the templates from /wp-content/uploads/espresso/templates. After you back up the original templates, then you can try those modifications again.


Wesley

October 26, 2012 at 3:00 pm

Thanks Josh,

I’ve done everything but open the files back up. I’ll work on modifying them later and mark this resolved if there are no further issues.


Wesley

October 27, 2012 at 11:06 am

registration_form_display.php

I’m back. The first code changes I added broke the form again, and I don’t understand why.

The code I’ve added is on on lines 22-69. The form is not displaying. The error messages I get are:

Warning: Missing argument 2 for event_espresso_price_dropdown(), called in /home/wesjan1/straightlineprodev.com/wp-content/uploads/espresso/templates/registration_page_display.php on line 178 and defined in /home/wesjan1/straightlineprodev.com/wp-content/plugins/event-espresso/includes/functions/pricing.php on line 195

and:

Warning: extract() [function.extract]: First argument should be an array in /home/wesjan1/straightlineprodev.com/wp-content/plugins/event-espresso/includes/functions/pricing.php on line 200

I’ve got a link to the code above.

Thanks.


Josh

  • Support Staff

October 29, 2012 at 9:54 am

Hi there,

I took a look at the registration_page_display.php template and it looks to me that this is either based on an older version of the plugin, or there’s more changes to it than only on lines 22-69.

My advice would be to start with stock templates, and add in your modifications one by one and check for errors along the way. It’s also recommended to have wp-debug turned on so when one of your changes throws a PHP error, you’ll have an idea where in the code it’s being caused by.

If you’d like someone from Event Espresso to make the customizations for you, we do offer a customization service:
https://eventespresso.com/contact/customization-request-form/

Viewing 4 reply threads

The support post ‘Registration Form Disappeared After Modifying the Display File’ 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