Support

Home Forums Event Espresso Premium The renamer file is not working

The renamer file is not working

Posted: December 16, 2018 at 11:51 pm


Congressia

December 16, 2018 at 11:51 pm

Hello,

I was trying to integrate a new payment gateway in the event espresso. However, after adding the files for a New Payment gateway offsite, i was trying to rename the Payment Gateway. I was following this Link. Somewhat it is not working. Would you please take a look. I have already followed the process. You can see my updates from here.


Tony

  • Support Staff

December 17, 2018 at 3:25 am

Hi there,

It looks like you have saved the entire GitHub page, which contains the code for renamer.php to your new payment method.

So this page:

https://congressia.com/home/wp-content/plugins/new-payment-method/renamer.php

although named renamer.php is actually a HTML file from Github.

Go here: https://github.com/eventespresso/eea-renamer

Click on the green ‘Clone or download’ button and then ‘Download ZIP’ – http://take.ms/swBz4

You’ll download a zip file containing a readme.md and renamer.php file, that renamer.php is the one you want to use. So extract that to /wp-content/plugins/new-payment-method/ in place of the one you have now.

The file you currently have will never work how you are expecting as it’s not a PHP file (it contains the PHP code as a preview but that’s all, you can’t use it for server-side processing as is).


Congressia

December 17, 2018 at 6:13 am

Thanks for your answer.

Seems like the link is fixed here. Then what next? I am a bit confused. Would you please just give me a heads up?


Tony

  • Support Staff

December 17, 2018 at 7:43 am

The instructions within that file tell you the next step, you need to pass ‘replace’ get parameter of your new payment method with the first letter of each word capitalized and spaces replaced with underscores, for as an example:

/renamer.php?replace="My_Custom_Payment_Method"

Would run the renamer and change the files to use that string.

As your are using a payment method mock add-on, you’ll likely need to use:

/renamer.php?replace="My_Custom_Payment_Method"&search="New_Payment_Method"

The renamer just runs through and uses the string you provided to build out the skeleton of the payment method using that string, you’ll still need to add all of your custom code for the payment method to work.


Congressia

December 17, 2018 at 11:41 pm

Hi,

I followed the process according to your instructions. Now, the thing is we cant access the Payment Methods Tab from the event espresso Menu. Please check the screenshot attached.


Josh

  • Support Staff

December 18, 2018 at 7:09 am

Hi,

1) Please consider doing your development on a development server. A live/production server is not suited for doing development.

2) After you’ve set up your development environment, you can edit the wp-config.php file and set WP_DEBUG to true. This will allow for errors to display instead of a blank screen.

3) If no PHP errors are displayed with WP_DEBUG activated on that payment settings screen, you can check the browser’s console for JavaScript errors.

The support post ‘The renamer file is not working’ 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