Support

Home Forums Event Espresso Premium Can't add Paypal (or any other) Payment Option – Won't open

Can't add Paypal (or any other) Payment Option – Won't open

Posted: May 31, 2014 at 3:06 pm


Tomah ACT

May 31, 2014 at 3:06 pm

I’ve tried multiple browsers, deactivated plugins, even reinstalled, but cannot get the payment settings set up, because it won’t slide open on any of the payment options. It shows the payment options, but I can’t select open the paypal payments to “Activate” as shown in the directions. I’m in a bit of a time crunch, and this is just one of the multiple issues I’m having with this plugin already. I paid for the VIP support, but don’t see any special place to go for that?


Dean

June 2, 2014 at 12:34 am

Hi,

That sounds like a JavaScript error, most likely from another plugin or the theme. Can you open up the console by right clicking, clicking Inspect Element and then clicking the console tab (that’s for Chrome, it’s similar in other browsers). Then can you screenshot or copy the content of the console and paste it here?


Tomah ACT

June 2, 2014 at 12:10 pm

TypeError: e is undefined
wp-auth-check.min.js:1
reflow: 0ms
reflow: 15ms

Hope this helps…


Tomah ACT

June 2, 2014 at 12:12 pm

when I click on the linked wp-auth…js it shows:
!function(a){function b(){var b,d=a(“#wp-auth-check”),f=a(“#wp-auth-check-form”),g=e.find(“.wp-auth-fallback-expired”),h=!1;f.length&&(a(window).on(“beforeunload.wp-auth-check”,function(a){a.originalEvent.returnValue=window.authcheckL10n.beforeunload}),b=a(‘<iframe id=”wp-auth-check-frame” frameborder=”0″>’).attr(“title”,g.text()),b.load(function(){var b,i;h=!0;try{i=a(this).contents().find(“body”),b=i.height()}catch(j){return e.addClass(“fallback”),d.css(“max-height”,””),f.remove(),void g.focus()}b?i&&i.hasClass(“interim-login-success”)?c():d.css(“max-height”,b+40+”px”):i&&i.length||(e.addClass(“fallback”),d.css(“max-height”,””),f.remove(),g.focus())}).attr(“src”,f.data(“src”)),a(“#wp-auth-check-form”).append(b)),e.removeClass(“hidden”),b?(b.focus(),setTimeout(function(){h||(e.addClass(“fallback”),f.remove(),g.focus())},1e4)):g.focus()}function c(){a(window).off(“beforeunload.wp-auth-check”),”undefined”==typeof adminpage||”post-php”!==adminpage&&”post-new-php”!==adminpage||”undefined”==typeof wp||!wp.heartbeat||wp.heartbeat.connectNow(),e.fadeOut(200,function(){e.addClass(“hidden”).css(“display”,””),a(“#wp-auth-check-frame”).remove()})}function d(){var a=parseInt(window.authcheckL10n.interval,10)||180;f=(new Date).getTime()+1e3*a}var e,f;a(document).on(“heartbeat-tick.wp-auth-check”,function(a,f){“wp-auth-check”in f&&(d(),!f[“wp-auth-check”]&&e.hasClass(“hidden”)?b():f[“wp-auth-check”]&&!e.hasClass(“hidden”)&&c())}).on(“heartbeat-send.wp-auth-check”,function(a,b){(new Date).getTime()>f&&(b[“wp-auth-check”]=!0)}).ready(function(){d(),e=a(“#wp-auth-check-wrap”),e.find(“.wp-auth-check-close”).on(“click”,function(){c()})})}(jQuery);


Josh

  • Support Staff

June 2, 2014 at 3:51 pm

Hi Tomah,

You may need to deactivate other plugins and possibly switch to one of the default WordPress themes, that may help.


Tomah ACT

June 2, 2014 at 5:42 pm

are you serious?! I’m paying extra for you to tell me to ditch the theme I spent months designing and customizing? I don’t think so! That is ridiculous! Please send someone into the discussion who knows coding better. Otherwise, I’m paying for a coder from Fiverr.com and asking for a refund from this month’s VIP support! Good grief!


Josh

  • Support Staff

June 2, 2014 at 5:48 pm

Hi Tomah,

I am serious. Temporarily switching to a default theme is a standard troubleshooting step. If you find that everything works after the theme is switched over, then we know where to look next. If it doesn’t work with the default theme, then we know it’s not the theme that’s causing the issue, and we’ll continue investigating other potential causes for breakage.


Tomah ACT

June 2, 2014 at 11:51 pm

Ok. Sorry for the blowup. rough day of design and coding as it was. Your second explanation made more sense, so I tried it first, and temporarily changed the theme to see if that would allow me to make changes on the payment settings. Sure enough. It did. I I was able to make changes and activate the Paypal, but as soon as I switched back to my original theme it was back to being “stuck.”


Dean

June 3, 2014 at 3:55 am

Hi,

What theme is it? (theme name and developer name please).

If you can send us a copy of the theme to support@eventespresso.com (include a link to this forum thread) we can see if it is an obvious issue or not.

We may still refer you back to the theme developer, if the issue is not directly related to Event Espresso.


Tomah ACT

June 5, 2014 at 2:45 pm

I have sent the information to the support email address you gave me. Thanks.


Josh

  • Support Staff

June 9, 2014 at 12:14 pm

Hi there,

We were able to investigate the error on the Manage Payment Gateways page, and the first error that it fails on is this:

Uncaught TypeError: undefined is not a function

It’s crashing on line 103 of the Galaxy theme’s /core/page-builder/js/pb.js file. Ideally this script should only load where the page builder function is being used, not across the entire WordPress admin.

The simplest option to fix this is prevent the theme’s scripts from loading on every admin page. The theme author may have instructions on how to do this, if they do not, the following can be added to near the end of the theme’s functions.php file, just before the closing ?> tag:

// remove pb.js from WordPress admin pages where we don't want it to load

add_action('admin_init', 'remove_pb_js');

function remove_pb_js() {

    if (isset($_REQUEST['page'])) {
        $espresso_pages = apply_filters('filter_hook_espresso_admin_pages_list',array(
            'event_espresso',
            'discounts',
            'groupons',
            'event_categories',
            'admin_reports',
            'form_builder',
            'form_groups', 
            'my-events',
            'event_emails',
            'event_venues',
            'event_staff',
            'events',
            'espresso_reports',
            'support',
            'template_confg',
            'payment_gateways',
            'members',
            'admin_addons',
            'espresso_calendar',
            'event_tickets',
            'espresso-mailchimp',
            'espresso_social',
            'espresso_permissions',
            'roles',
            'event_locales',
            'espresso-system-status',
            'event_groups'
        ));
        if (in_array($_REQUEST['page'], $espresso_pages)) {
            // if this is *any* of the above pages, remove the Galaxy /core/page-builder/js/pb.js script from the queue
            wp_dequeue_script('admin');
        }
    }
}

You’ll find that without the above script in place, many other pages in the admin will have broken JavaScript functionality. One example is the promocode box wouldn’t work either. The above script takes care of that too.

The support post ‘Can't add Paypal (or any other) Payment Option – Won't open’ 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