Support

Home Forums WP User Integration EE3 [ESPRESSO_MY_EVENTS] is empty (worked before)

EE3 [ESPRESSO_MY_EVENTS] is empty (worked before)

Posted: March 28, 2018 at 2:34 am

Viewing 12 reply threads


Jordy van Overeem

March 28, 2018 at 2:34 am

Hi,

On the my account page https://www.rszmotorsport.nl/mijn-account/ we use [ESPRESSO_MY_EVENTS] and it worked for many years. But now it does not work anymore, it shows no results.

We moved the site from 1 server to another. Maybe there is something different in server settings, i am not sure.

I’ve searched the forum for solutions, but i noticed that the solutions where for EE3 but for EE4.

Hope you can help me.

J


Tony

  • Support Staff

March 28, 2018 at 3:03 am

Hi there,

We moved the site from 1 server to another. Maybe there is something different in server settings, i am not sure.

How did you move the site? Did the domain change at all?

If you enable WP_DEBUG on the site do you see any errors from EE?

You can add this snippet to you wp-config.php file to enable it:

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

Any errors will then be logged to /wp-content/debug.log


Jordy van Overeem

March 28, 2018 at 3:07 am

Hi,

The domain did not change, only the server.
I tried to enable WP_DEBUG before.

There is no debug.log file coming in the wp-content folder.


Tony

  • Support Staff

March 28, 2018 at 3:11 am

How did you move the site?


Jordy van Overeem

March 28, 2018 at 3:13 am

Created a copy with SSH and placed it to another server, again with SSH.
Everything works fine.

But maybe the site transfer is not the problem, i am not sure. But we noticed this problem after moving the site.


Tony

  • Support Staff

March 28, 2018 at 3:37 am

When you say it shows no results, what exactly is shown on the page?

Can you add a screenshot?

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


Jordy van Overeem

March 28, 2018 at 3:41 am

Hi,

In the screenshot you’ll see the frontend and backend.

Frontend:
empty

Backend:
events

But the frontend is not showing the events as you can see.


Tony

  • Support Staff

March 28, 2018 at 3:59 am

Hmm, ok. I doubt that’s from the move tbh, both pages use exactly the same function to output the table.

My first suspicion would be something messaging up the $current_user global on the front end.

You comfortable with PHP and FTP (or whatever method you want to use to create/edit files)?


Jordy van Overeem

March 28, 2018 at 4:05 am

Yes i am a bit. But i can give you FTP and admin access if that’s easier. Please e-mail me at info at freshymedia.nl


Tony

  • Support Staff

March 28, 2018 at 4:14 am

Generally, you would need to purchase a support token for us to work directly on your site.

Right now all you need to add to confirm if the above is the problem is:

global $current_user;
echo '$current_user ID = ' . $current_user->ID;

Add that to /wp-content/plugins/espresso-members/my_events_page.phparound just after line 6, which isglobal $ticketing_installed;` – http://take.ms/D5NvQ

Then check that the same user ID is shown at the top of the table both on the front end and admin page. THen remove the above code again.


Jordy van Overeem

March 28, 2018 at 4:26 am

After adding your code i noticed that there are events there, yes!

events

Then i removed your line echo ‘$current_user ID = ‘ . $current_user->ID; and everything works again ๐Ÿ™‚


Tony

  • Support Staff

March 28, 2018 at 4:31 am

Hmm strange.

So yeah it doesn’t like whatever is happening to the $current_user var used in the function. Pulling the global works.


Jordy van Overeem

March 28, 2018 at 4:31 am

Thank you for the quick response ๐Ÿ™‚

Viewing 12 reply threads

The support post ‘EE3 [ESPRESSO_MY_EVENTS] is empty (worked before)’ 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