Support

Home Forums Event Espresso Premium Event Espresso assets is invalid

Event Espresso assets is invalid

Posted: June 3, 2021 at 9:02 am


maccore2

June 3, 2021 at 9:02 am

I am experiencing the same issue referenced in the previous post: https://eventespresso.com/topic/event-espresso-assets-url-error/

This started after upgrading Events Espresso to the latest release this morning. I have checked the wp-config.php and there is no reference to WP_PLUGIN_URL. I have tried disabling all plugins except Event Espresso and still no resolution.


maccore2

June 3, 2021 at 9:03 am

Here is the full error on the page: An error has occurred:
The url given for Event Espresso assets is invalid. The url provided was: “/wp-content/plugins/event-espresso-core-reg/assets/dist/”. This usually happens when another plugin or theme on a site is using the “plugins_url” filter or has an invalid url set for the “WP_PLUGIN_URL” constant


Tony

  • Support Staff

June 3, 2021 at 10:46 am

Hi there,

When you disabled all plugins, did you also switch to a default theme?

Something on your site was set up to use relative URLs and/or change the wp-content directory as looking on your homepage your logo is trying to load from /jlfiles/uploads/2017/02/{filename}.png.

Do you know where jlfiles is from?

Looking over the assets loading on your site the are loading using relative URLs, for example:

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /><link rel="preload" href="/wp-content/themes/Divi/core/admin/fonts/modules.ttf" as="font" crossorigin="anonymous"><link rel="icon" href="/wp-content/uploads/2017/02/{filename}.png" sizes="32x32" />

That is not default WordPress behaviour so something is hooking in to do this on the site.


maccore2

June 4, 2021 at 6:09 am

Thanks for the reply. That folder doesn’t seem to be anything created by themes/plugins on the site.

I did try to disable all plugins plus reverting the theme to the standard WordPress theme (2021), and the problem still persists.

What I’m still caught up on is that this was not an issue in previous versions of EventExpresso, so why is it now an issue?


Tony

  • Support Staff

June 4, 2021 at 7:10 am

Thanks for the reply. That folder doesn’t seem to be anything created by themes/plugins on the site.

That’s part of what suggests that something has been/is changing URL’s to me, the folder doesn’t exist but the site is trying to use it and that logo isn’t something EE would set.

What I’m still caught up on is that this was not an issue in previous versions of EventExpresso, so why is it now an issue?

Unfortunately, I can’t give you an answer to that.

Do you know what version number you were running before the update?

You can find this in Event Espresso -> Maintenance -> System info -> ee_activation_history.

The code that throws that error has been within EE4 for a long time, it was added in 4.9.59.p (Release April 9th 2018) so unless you were on a really old version prior to the latest update I can only guess that another plugin has started changing those URLs. However, even then the versions prior to the above would throw an exception rather than just show a notification.

Did you update only Event Espresso recently or other plugins, server updates (although I can’t see how they would cause this) etc?

In short, do you know if prior to recent updates the URL’s were as they are now? As in it was using the correct full URL’s previously and since updating the above is shown because the URL’s have changed.

The support post ‘Event Espresso assets is invalid’ 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