Support

Home Forums Event Espresso Premium My Events page breaking

My Events page breaking

Posted: November 2, 2018 at 6:58 pm


Praxis

November 2, 2018 at 6:58 pm

I’m using [ESPRESSO_MY_EVENTS] to display an order history for customers, but as of recently the page no longer works. https://events.praxiscet.com/account/orders/ (login only)
The H1 appears, but no content after that. Even the footer is gone.
This is all I have in the body for that page:

<h3>Events and Courses</h3>
<p style="font-size: .9em; margin: 0;">Click on event name to review event info page. Click on Action icons to edit your registrations, view invoices or receipts or resend registration emails.</p>
[ESPRESSO_MY_EVENTS]

Any guesses about what might be causing it to break?


Praxis

November 2, 2018 at 7:00 pm

Oh! interestingly, it works for logged out users.


Josh

  • Support Staff

November 2, 2018 at 7:04 pm

Hi,

You can capture then log or display the error that’s causing the breakage by activating WP_DEBUG mode. This guide has further instructions:

https://eventespresso.com/wiki/troubleshooting-checklist/#wpdebug


Praxis

November 6, 2018 at 11:03 am

Thanks Josh.
My php-error.logs repeatedly shows this warning:
PHP Warning: count(): Parameter must be an array or an object that implements Countable in /srv/bindings/[server location]/wp-includes/post-template.php on line 284
I guessed it means that PHP 7.2 is conflicting with one of my plugins, so I deactivated all of them (which fixed it) and reactivated until I found that the EE WP Users add-on is the culprit. Of course this makes sense since the problem is clearly with the [ESPRESSO_MY_EVENTS] shortcode.
Is this a conflict that you’ve seen before?


Josh

  • Support Staff

November 6, 2018 at 11:09 am

The EE WP Users add-on isn’t exactly a culprit here, it’s the plugin that adds the [ESPRESSO_MY_EVENTS] shortcode. In other words, if you get a blank page when viewing a page with the [ESPRESSO_MY_EVENTS] shortcode, there’s an error being thrown when the shortcode is being parsed.

A PHP warning wouldn’t usually cause a blank screen either. You’ll be looking for a PHP Fatal error in those logs.


Praxis

November 6, 2018 at 11:14 am

ok, that makes sense. The fatal error that i have been receiving is PHP Fatal error: Uncaught EE_Error: An attempt to access and/or write to a file on the server could not be completed due to a lack of sufficient credentials. in /srv/bindings/[server location]/wp-content/plugins/event-espresso-core-reg/core/helpers/EEH_File.helper.php:101


Josh

  • Support Staff

November 6, 2018 at 11:45 am

Usually, that’s due to an issue with the server config/permissions.
Can you try adding
define('FS_METHOD', 'direct');
to your wp-config.php file somewhere before the
/* That's all, stop editing! Happy blogging. */
Does it load then?


Praxis

November 6, 2018 at 1:21 pm

Okay, that finally did it for me (just like the others with this error) 🙂

For anyone else searching, i’ll note that my host is Pantheon, and there seem to be frequent permissions errors with Pantheon.


Praxis

November 6, 2018 at 1:23 pm

BTW, thanks for your patience, Josh! much appreciated.

The support post ‘My Events page breaking’ 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