Support

Home Forums Event Espresso Premium Update to 4.9.6.p Checkout Warning and Mobile Render Issue

Update to 4.9.6.p Checkout Warning and Mobile Render Issue

Posted: August 2, 2016 at 8:45 pm

Viewing 6 reply threads


Brett Stallings

August 2, 2016 at 8:45 pm

I just updated http://www.statscamp.org to 4.9.6.p from the version just prior. I now see this warning on my add registration to cart page.

Warning: array_pop() expects parameter 1 to be array, object given in /home/brettstallings/public_html/wp-content/plugins/event-espresso-core-reg/core/services/commands/CommandBus.php on line 119

Additionally, when viewing on mobile the site is locked to the left of the screen.

I am running Avada 4.0.3 on WordPress 4.5.3


Josh

  • Support Staff

August 2, 2016 at 8:59 pm

Hi Brett,

You really should turn set WP_DEBUG to false for your website expect unless it’s actively being developed and not ready to be made live yet.

The mobile styles will be fixed for the next release of EE4, in the meantime, you can remove this CSS from /core/templates/global_assets/css/espresso_default.css:

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
	body {
		padding: 0;
		margin: 0;
		width: 320px;
	}
}

/* iPads (portrait and landscape) ----------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
	body {
		width: 495px;
	}
}


Brett Stallings

August 2, 2016 at 9:08 pm

Thanks! I removed the code as instructed and emptied all W3 Caches. Still see the issue. Also, I checked my wp-config file and the WP_DEBUG is set to false already. Please advise.


Brett Stallings

August 2, 2016 at 9:10 pm

Follow Up: The above CSS edit did indeed fix the mobile issue. Thank you very much!

Now just the add to cart warning on the checkout page. “Warning: array_pop() expects parameter 1 to be array, object given in /home/brettstallings/public_html/wp-content/plugins/event-espresso-core-reg/core/services/commands/CommandBus.php on line 119”


Seth Shoultes

  • Support Staff

August 2, 2016 at 10:35 pm

Hey Brett,

Thanks for working through this with us. I’ve submitted a ticket to the developers to look into that warning that’s showing up on your registration page. For now, you might try adding this line of code to your wp-config file:
define('WP_DEBUG_DISPLAY', FALSE );

That should hide these types of warnings for now. After we get this issue fixed you can keep/remove that line.


Seth Shoultes

  • Support Staff

August 2, 2016 at 10:51 pm

Brett,

I just heard that the warning has been fixed, but hasn’t been released yet. If you like, you can download and install the latest unreleased version from Github here:
https://github.com/eventespresso/event-espresso-core


Brett Stallings

August 2, 2016 at 11:15 pm

Thanks Seth! Very quick response and the wp-config line fixed my issue. Also thank you for the git hub link. I will wait for the next one click release. I assume it will be soon and want to give you guys time to work through it. Appreciate the awesome support!

Viewing 6 reply threads

The support post ‘Update to 4.9.6.p Checkout Warning and Mobile Render Issue’ 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