Support

Home Forums Event Espresso Premium Event App Customization plugin causes media library to not load Reply To: Event App Customization plugin causes media library to not load

Reply To: Event App Customization plugin causes media library to not load

Author Replies
Tony # Posted on April 24, 2018 at 2:56 am

Hi there,

I think what may be going on here is the HTTP response includes the erroneous text “No image url provided when trying to create an image attachment” along with the JSON object resulting in JavaScript failing to parse the JSON string into a JavaScript object for updating the DOM. So it basically errors out and the AJAX call fails to update the page.

Yeah, that’s the problem.

The reason you are getting the ‘No image url provided when trying to create an image attachment.’ error is due to not having a logo set within either:

Event Espresso -> App Customization -> App Logo Image

or

Event Espresso -> General Settings -> Company Logo

So the app customization add-on doesn’t have an image to use and when it tests both those locations and finds them empty, it throws an exception with the above message which we write to the error log using:

catch (EE_Error $e) {
    error_log($e->getMessage());
    return;
}

It seems your server is set to display the errors rather than log them, but only within the admin calls and as all of the ajax requests are considered to be admin they break. So when the exception is thrown it outputs the error and if is an ajax request, it breaks.

I will create a ticket for our developers to investigate this further, although a quick fix that should work on your site is to add an image to either of the above locations, you can just manually enter the URL of an image on your site, for example:

http://www.lamission.edu/communityedwp/wp-content/uploads/2018/04/LAMC-CommunityEd-Logo2.png

Once you have a URL set, the media library should then work again and you can use it to select another if preferred.

Or set up your server not to output errors directly to the page when in production (including outputting errors to the admin) and just log them to the error logs so you can view them there.

Do NOT follow this link or you will be banned from the site!