Support

Home Forums Event Espresso Premium Braintree Not Working

Braintree Not Working

Posted: June 8, 2018 at 7:08 am

Viewing 15 reply threads


mrisley84

June 8, 2018 at 7:08 am

Hi, I submitted a ticket earlier about Braintree not working. I was unable to get back in front of the project for a while but I want to now go ahead and get this resolved. When I try to activate Braintree I get what shoes in the image at the bottom.

If I try to reload the Braintree activation URL link . I get a popup in chrome that says there are “Unsafe Scripts” that are trying to load. If I select to load those unsafe scripts then it turns my site HTTPS Red.

I was suggested in my other thread to add this code:

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
if ( WP_DEBUG ) {
        @ini_set( 'display_errors', 0 );
        define( 'WP_DEBUG_LOG', true );
        define( 'WP_DEBUG_DISPLAY', false );
}

But I do not believe that this is a WordPress issue so debugging had no effect.

Braintree Not Working


Tony

  • Support Staff

June 8, 2018 at 8:02 am

Hi there,

But I do not believe that this is a WordPress issue so debugging had no effect.

It doesn’t need to be a ‘WordPress issue’, the snippet above enables error logging to a debug.log file in wp-content so if any errors are being thrown on the above request but not shown they should show in the file mentioned.

Did you add that code to your wp-config.php file?

Also, it could be an issue with capabilities on your account, can you go to:

Event Espresso -> Maintenance -> Reset/Delete Data.

Click on ‘Reset Event Espresso Capabilities’ only (the other features on that page will remove your event data so make sure you click the correct button) – http://take.ms/vRgcZ

Then retest activating the payment method. (If you have the WP_Debug code active when testing this any errors should then be logged).


Josh

  • Support Staff

June 8, 2018 at 8:04 am

Hi there,

May I ask can you check the debug.log file located in the wp-content folder of your server? Specifically are there any PHP Fatal Errors in the log file?


mrisley84

June 8, 2018 at 8:44 am

@Tony Ah, okay. Yes I added the code there. I will try that.


@Josh
There is no debug.log in the /wp-content


mrisley84

June 8, 2018 at 8:49 am

@Tony I tried that, did not work. Still no debug.log. Should I create that file or should it be created automatically?


Josh

  • Support Staff

June 8, 2018 at 11:28 am

If the server’s file permissions allow it, the debug.log file will be created automatically. So you can create the file since apparently WP cannot.


mrisley84

June 13, 2018 at 7:26 am

I’ve created the debug.log file but it stays empty. Following all the above hasn’t added anything to the file. I’m not getting an error message on this or anything, it’s just like the plugin has no content so it’s not displaying anything.


Josh

  • Support Staff

June 13, 2018 at 7:58 am

The thing is WordPress would still generate a header and footer if this were a matter of the plugin having no content. What’s more than likely happening here is there’s a fatal error being through and your server isn’t allowed to write to debug.log. So here are two other options to find that fatal error:

1) Check the server’s PHP error logs, your web host may be able to help with that.
2) Follow this guide: https://digwp.com/2009/07/monitor-php-errors-wordpress/


Josh

  • Support Staff

June 13, 2018 at 8:12 am

and a third option:

3) Install this plugin and view its log page after attempting to activate the Braintree add-on:

https://wordpress.org/plugins/wp-log-viewer/


mrisley84

June 13, 2018 at 9:01 am

I had my server check the PHP Error Logs and they found nothing. They said it was a plugin problem and not a server or site issue. I tend to agree as I had not problems until I updated Event Espresso from last years version to the current version.


Josh

  • Support Staff

June 13, 2018 at 9:12 am

OK, thank you for checking.

You could try reinstalling the Braintree add-on with a fresh copy downloaded from your account page. If that doesn’t help, we’re going to need to somehow figure out a way to capture the error, with or without the cooperation of your web host.

Just so you’re aware of what the Braintree add-on settings page will look like when no errors are thrown, here’s what it looks like on one of our testing sites:

https://slack-files.com/T02SY781D-FB66GE7MW-94ac0aaee3


mrisley84

June 13, 2018 at 11:10 am

I’ve just tried that. No effect. That’s what it was before I updated. I see the green button to activate it, just when I click that it brings me to that empty settings page, WP Sidebar and header is all there, just an empty EE Page.

Tell me what you need an I’ll make it happen.


Josh

  • Support Staff

June 13, 2018 at 4:59 pm

One thing to check for is a capabilities issue. If you go to Event Espresso > Maintenance > Reset page, then click the Reset Event Espresso Capabilities button, does the page begin loading as expected?

If not, another thing to check for is the potential for a plugin conflict. If all other plugins on the website are deactivated does the issue persist?


mrisley84

June 14, 2018 at 8:11 am

I did a plugin check and found the rouge plugin: Event Espresso – Payment Methods Pro (Version 1.0.0.dev.003). When I deactivated it I could activate Braintree. Upon reactivating the plugin Braintree still works. It appears that the plugin is only stopping it from activating.


Josh

  • Support Staff

June 14, 2018 at 8:16 am

You should delete that older version of Payment Methods Pro and replace with the current version (currently 1.0.1.p). You can download the current version of Payment Methods Pro from your account page.


mrisley84

June 14, 2018 at 9:29 am

Will do, thank you

Viewing 15 reply threads

The support post ‘Braintree 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