Events Planner Logo
Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Loading checkout fails with a blank page and "0"

Michael — Feb 25, 2017 10:29PM MST

I am using the popup cart.
When I click on the checkout button which is this address:

/event/testy-mc-test-event/?epl_action=show_cart

The only thing that happens is a blank page with a "0" on it.

From then on, any page that loads shows this debugging message at the bottom of screen (I have debug true in config.php) :

Notice: is_single was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/xxxx/public_html/xxxx/wp-includes/functions.php on line 4136

Without the xxxx's. The site is on a subdomain.

I have tried increasing memory in php.ini which made no difference.

adding define( 'WP_MEMORY_LIMIT', '256M' ); to confing.php just crashed the site with a 500 error. (This has never happened on any other sites for me!). And I tried 128M & 64M and they failed too.

Any help appreciated. Thanks



10 Community Answers

Abel - Feb 26, 2017 at 10:43AM MST

WP Events Planner Agent

Hi Michael.

For the 0, please go to Events Planner > Settings > select a page in Shortcode Page dropdown > Save Changes.

The is_single, added to the list of issues to check. Will have it fixed in v3.

As far as the memory limit increase, hmm. That should not crash the site. That’s never happened for me either. One thing that I am suspecting … did you type that whole define line or did you copy/paste from the public portal? If it’s the latter, I am wondering if the character encoding on the single quotes is the cause. Please try my suggestion on the last post on http://help.wpeventsplanner.com/customer/portal/questions/461482-out-of-memory-error . If the error still pops up, please check the error log for fatal errors.

Hope these help. Please let me know if I can be of further help.

Thanks, Abel

rated : 0 Up Down

Michael - Feb 27, 2017 at 09:32PM MST

Hi Abel

Thanks for the really quick response.

I did what you suggested and now I can get to a booking form. At the bottom is some radio buttons for payment method and a button to move on to attendee registration form.

When that is clicked, I get a warning about the certificate and following that through a hijack occurs and a foreign page is brought up although it displays as just whited with no content or text etc.. Page source reveals the following:


<!DOCTYPE html PUBLIC> <html data-adblockkey="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKX74ixpzVyXbJprcLfbH4psP4+L2entqri0lzh6pkAaXLPIcclv6DQBeJJjGFWrBIF6QMyFwXT5CCRyjS2penECAwEAAQ==_ZfRxVKJzSFIEWAVBnBVwLg6zBJmKPs88kFsfxli9Ojx+P7YjuzV/Y1hLhOPGSgr2IsCF7WZEFEws91jZz0ldew==" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable = no">
<title>southerndirt.com.au</title>
<style type="text/css">*{margin:0; padding:0; border: 0; overflow:hidden} html, body {height: 100%;}</style>
</head>
<body width="100%" height="100%">
<noscript><meta http-equiv="refresh" content="0;url=http://imptestrm.com/rg-erdr.php?_dnm=southerndirt.com.au&_cfrg=1&_drid=as-drid-2328251083540182" /><center><p style="padding:1em; font-size:1.5em;">For search results please <a href="http://imptestrm.com/rg-erdr.php?_dnm=southerndirt.com.au&_cfrg=1&_drid=as-drid-2328251083540182" style="text-decoration:underline; color:#0000EE;">CLICK HERE</a>.</p></center></noscript>
<div id="rmgblock" width="100%" height="100%"></div>
<script type="text/javascript" src="http://imptestrm.com/rg-main.php?_srg=1&folio=9POVXDEZ8&dmn=southerndirt.com.au"></script>
<script type="text/javascript" language="JavaScript" src="http://pagead2.googlesyndication.com/apps/domainpark/show_afd_ads.js"></script>
<script type="text/javascript"> function collectHeight(){try{var e=Math.max(document.documentElement.clientHeight,document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight);document.getElementById("rmgblock").style.height=e+"px"}catch(e){}}try{window.onresize=collectHeight;collectHeight()}catch(e){} </script>
</body></html>

My first thought was that imptestrm is hijacking my PC so I tried it on another PC, then a laptop and my iPhone. All gave the same result. So now I'm thinking maybe there's something amiss with the DNS or server. I have no idea.

Do you have any suggestions?

Thanks

rated : 0 Up Down

Michael - Feb 27, 2017 at 09:41PM MST

Following on from my previous comment, I have found that this occurs on any page in the site that has the https prefix. I'm still waiting for the SSL to come through so that is not installed yet.

However the gateways are configured in sandbox/test mode and I know from developing other sites that SSL is not required when testing the gateway.

So there's a bit more to puzzle over.

rated : 0 Up Down

Abel - Feb 27, 2017 at 09:42PM MST

WP Events Planner Agent

Hi Michael.

Since you don’t have a SSL cert. installed, please go to Events Planner > Settings > Registrations tab > set “Enable SSL for registrations?” to No. Looks like imptestrm.com is your host? Or has something to do with your host?

Thanks, Abel

rated : 0 Up Down

Michael - Feb 27, 2017 at 10:38PM MST

OK. Thanks Abel

rated : 0 Up Down

Michael - Feb 27, 2017 at 11:08PM MST

That worked Abel however I picked up a few warnings as it went through. Thought they may be of interest to you. Thanks for all your help! :)

Warning: array_merge(): Argument #2 is not an array in /xxxx/public_html/wp-content/plugins/events-planner-pro/application/models/epl-db-model.php on line 385

Warning: array_flip() expects parameter 1 to be array, null given in /xxxx/public_html/wp-content/plugins/events-planner-pro/application/models/epl-db-model.php on line 395

Warning: Invalid argument supplied for foreach() in /xxxx/public_html/wp-content/plugins/events-planner-pro/application/models/epl-db-model.php on line 248

Warning: array_flip() expects parameter 1 to be array, null given in /xxxx/public_html/wp-content/plugins/events-planner-pro/application/models/epl-registration-model.php on line 2368







Warning: array_flip() expects parameter 1 to be array, null given in /xxxx/public_html/wp-content/plugins/events-planner-pro/application/models/epl-registration-model.php on line 2368
Registration ID: 9CFCE18FC1

Warning: Invalid argument supplied for foreach() in /xxxx/public_html/wp-content/plugins/events-planner-pro/application/views/front/registration/regis-dates-times-prices.php on line 59

rated : 0 Up Down

Michael - Feb 28, 2017 at 01:29AM MST

Another couple of questions

How do I turn those warnings (above) off? They're going out in the notification emails and attendee details page.

Emails to registrants aren't being sent. Notification email is. Is there something I've missed in the manual/help?

Thanks

rated : 0 Up Down

Abel - Feb 28, 2017 at 09:21PM MST

WP Events Planner Agent

Hi Michael.

Thanks for letting me know about these.

To hide them for now, please add this code to your active theme’s functions.php file. For example https://www.screencast.com/t/dNIr76gKlN

ini_set( 'display_errors', 0 );

Thanks, Abel

rated : 0 Up Down

Michael - Mar 01, 2017 at 12:10AM MST

That fixed up the error messages being displayed. All looking pretty good now but emails are still not going out to the ticket buyer.

rated : 0 Up Down

Abel - Mar 01, 2017 at 10:12AM MST

WP Events Planner Agent

Hi Michael.

Sorry, I missed that part. Please check the “Emails are not being sent” section on http://help.wpeventsplanner.com/customer/en/portal/articles/383925-troubleshooting and let me know if that helps. If not, please set me up as an admin user on the website and I will see if I can spot something (email login details to help a[t]~ wpeventsplanner.com). Please don’t post the credentials here as this is a public post.

Thanks, Abel

rated : 0 Up Down

Post Your Public Answer