Support

Home Forums Event Espresso Premium Error – url given for Event Espresso assets is invalid

Error – url given for Event Espresso assets is invalid

Posted: May 30, 2018 at 9:45 am

Viewing 5 reply threads


carolhayes

May 30, 2018 at 9:45 am

“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”

Domain is correct within Espresso admin. Any help for resolution is greatly appreciated.


Josh

  • Support Staff

May 30, 2018 at 9:56 am

Hi Carol,

Do you have a plugin that’s set to change the URLs on the site to relative URLs? If so the solution will be to deactivate that plugin.


carolhayes

May 30, 2018 at 11:25 am

No we do not have a plugin to change the URLs


Josh

  • Support Staff

May 30, 2018 at 12:02 pm

Something else to change the plugin URLs for assets then? The reason I ask is because this screenshot shows the html source of your site’s homepage:

https://slack-files.com/T02SY781D-FAZM0PNDC-41449a0a78

You’ll note that all CSS and JavaScript files for plugins, linked in the source, are relative URLs. Normally these are absolute URLs.

There are plugins that make this change, but it’s also possible to make this happen by adding a code snippet to a functions file, or also possible to make an edit to the site’s wp-config.php file.

In any case, whatever is set up on your site to make the change from absolute URL to relative URL needs to be removed to avoid the error.


carolhayes

May 30, 2018 at 12:12 pm

We are using Sucuri SSL Firewall would that be related to our issue?


Josh

  • Support Staff

May 30, 2018 at 2:17 pm

I don’t believe so. Unless one of the features of Sucuri SSL Firewall includes a setting that changes all of the WordPress plugins’ assets to relative URLs. WordPress by default uses absolute URLs and things can break when changed to relative URLs.

Viewing 5 reply threads

The support post ‘Error – url given for 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