Support

Home Forums Event Espresso Premium Payment settings page blank

Payment settings page blank

Posted: July 27, 2013 at 8:34 pm

Viewing 20 reply threads


Chris Fisher

July 27, 2013 at 8:34 pm

Just installed 3.1.33.3.P and was setting up the payment gateway. I chose paypal and click the enable paypal. After processing the button click the payment settings screen is blank. The wp-admin side bar is there but the main section is completely blank. No other payment gateways are available.

Wordpress 3.5.2


Garth

  • Support Staff

July 28, 2013 at 7:11 pm

Hi Chris,

I’ve never heard of that before. Can you try deactivating and reactivating Event Espresso and let me know if the page loads correctly?


Chris Fisher

July 29, 2013 at 8:18 am

I have deactivated a few times … the other day and this morning, no luck. I just uninstalled and re-uploaded a new download, still same result. Are there any requirements that I might need to install ie some php Library ?

This is a server on Amazon EC2 with a pretty basic nginx webserver installed.


Josh

  • Support Staff

July 29, 2013 at 9:25 am

Hi Chris,

Can you try setting the WP_DEBUG constant to true in the wp-config.php file and load up the Payment settings page? This will display any PHP errors being thrown and help narrow down the issue.


Chris Fisher

July 29, 2013 at 9:56 am

Warning: fopen(http://www.virtualrace.org/wp-cron.php?doing_wp_cron=1375113089.9712278842926025390625): failed to open stream: HTTP request failed! in /var/www/virtualrace.org/public_html/wp-includes/class-http.php on line 929


Josh

  • Support Staff

July 29, 2013 at 10:13 am

Hi Chris,

The error you posted was reported along with some discussion in this core trac ticket:

http://core.trac.wordpress.org/ticket/11831

A few of the participants in the discussion related that they didn’t have php-curl installed, which you could check to see if that’s the case for your server:

http://core.trac.wordpress.org/ticket/11831#comment:20

http://core.trac.wordpress.org/ticket/11831#comment:21


Chris Fisher

July 29, 2013 at 11:08 am

installed php5-curl the message goes way but the original problem still exists.


Josh

  • Support Staff

July 29, 2013 at 12:06 pm

Hi Chris,

Is the footer or the right sidebar displaying? If so, what widgets are displaying in the right side bar?


Chris Fisher

July 29, 2013 at 1:08 pm

Josh the only page on the whole site that is jacked up is the payment settings page. the rest of the site front end and back end work as expected. The only widgets I have active are the upcoming events widget.

I am trying to get phpmyadmin installed to look at the db to set the payment settings to default and see if the page will work.


Josh

  • Support Staff

July 29, 2013 at 1:40 pm

I understand. Normally there is a footer message in the admin, as well as a right sidebar that displays two widgets in the admin on the payment options screen. The reason I’m asking about this is there may be a timeout or another error happening when the Payment options screen loads up.

If you want to empty the payment options you can do this by adding the following to your theme’s functions.php, saving, refreshing a page on your site, then remove the code and save again:

update_option ( 'event_espresso_active_gateways', '' );


Chris Fisher

July 29, 2013 at 1:49 pm

Success … sort of. The page now loads. but there is a debug warning:

warning: Invalid argument supplied for foreach() in /var/www/virtualrace.org/public_html/wp-content/plugins/event-espresso/includes/functions/main.php on line 1130


Josh

  • Support Staff

July 29, 2013 at 2:25 pm

This would be an expected error since the gateway options have been wiped out. The error will go away after a gateway is activated then updated/saved. You might try a offline gateway first since the PayPal one was originally causing errors. The check gateway would be a good one to try activating then saving first.


Chris Fisher

July 29, 2013 at 2:49 pm

I can activate the check but the page fails again when I try Paypal weather the the check gateway is enabled or disabled.

the warning does go away after I go away from the page and come back.


Josh

  • Support Staff

July 29, 2013 at 3:07 pm

What happens if you try to activate the 2Checkout gateway?


Chris Fisher

July 29, 2013 at 3:41 pm

Same issue page fails to fully load.


Josh

  • Support Staff

July 29, 2013 at 4:24 pm

I think I know what this might be. We added a check for SSL to the settings pages, and I think your server isn’t handling it too well.

If you look in event-espresso/gateways/paypal/settings.php there is a block of code that starts around 231 that reads like this:

<?php if (espresso_check_ssl() == TRUE || ( isset($paypal_settings['force_ssl_return']) && $paypal_settings['force_ssl_return'] == 1 )) {?>
	<li>
	<label for="force_ssl_return">
		<?php _e('Force HTTPS on Return URL', 'event_espresso'); ?>
		<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=force_ssl_return"><img src="<?php echo EVENT_ESPRESSO_PLUGINFULLURL ?>/images/question-frame.png" width="16" height="16" /></a>
	</label>
	<input name="force_ssl_return" type="checkbox" value="1" <?php echo $paypal_settings['force_ssl_return'] ? 'checked="checked"' : '' ?> /></li>
	<?php }?>

What you can do is comment out the first line where it starts the check, and the last line where it ends the check.

It will look like this when you’re done:

<?php //if (espresso_check_ssl() == TRUE || ( isset($paypal_settings['force_ssl_return']) && $paypal_settings['force_ssl_return'] == 1 )) {
?>
	<li>
	<label for="force_ssl_return">
		<?php _e('Force HTTPS on Return URL', 'event_espresso'); ?>
		<a class="thickbox" href="#TB_inline?height=300&width=400&inlineId=force_ssl_return"><img src="<?php echo EVENT_ESPRESSO_PLUGINFULLURL ?>/images/question-frame.png" width="16" height="16" /></a>
	</label>
	<input name="force_ssl_return" type="checkbox" value="1" <?php echo $paypal_settings['force_ssl_return'] ? 'checked="checked"' : '' ?> /></li>
	<?php  //}
?>


Chris Fisher

July 29, 2013 at 6:28 pm

Hi Josh that was it! it works now.

What do you suggest I do to deal with this for the future? If paypal is handling all the transaction data is it necessary for my server to have ssl capabilities?

Thanks for the help. Much appreciated.


Dean

July 30, 2013 at 5:08 am

Hi Chris,

If your are using offsite PayPal (normal PayPal that takes the user to the actual site) then no SSL isnt required.

I think what Josh is saying here is that some code we added to do checks for SSL were conflicting with your server so taking them out resolved the issue.


Chris Fisher

July 30, 2013 at 8:23 am

Hi Dean,

so is it necessary to have the SSL check on the normal PayPal functionality? I recognize I must be the exception as my server is not dealing well with the check, most likely just timing out as the firewall ports and server are not configured to handle https traffic or requests.

Regardless thanks for the help.


Dean

July 30, 2013 at 8:26 am

No, the SSL check was to hide the SSL options so people didnt accidentally use them and break things by having them active but without SSL.


Josh

  • Support Staff

July 30, 2013 at 5:33 pm

Although what Dean said about SSL is correct, the PayPal gateway does require a CA cert to be set up on the server.

So when you start using the PayPal IPN if you see IPN failure errors due to a missing CA file like this:

Errors resulting from the execution of curl transfer: SSL certificate problem, verify that the CA cert is OK.

You can download a cacert.pem file from here:

http://curl.haxx.se/docs/caextract.html

and install it on your server, then point the curl.cainfo directive in the php.ini file to the path/location to the cacert.pem file.

Viewing 20 reply threads

The support post ‘Payment settings page blank’ 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