Support

Home Forums Event Espresso Premium Error when creating custom message template

Error when creating custom message template

Posted: September 24, 2015 at 2:48 pm

Viewing 10 reply threads


Alan Lewis

September 24, 2015 at 2:48 pm

Hi there

It appears with the latest update of EE4 that many of my custom templates have become dissociated with events they were associated with.

In addition, when I click “Create Custom” to create a custom template from a message, I get this error

Warning: Invalid argument supplied for foreach() in /home/bodhiins/public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Base_Class.class.php on line 1747

Warning: Cannot modify header information – headers already sent by (output started at /home/bodhiins/public_html/wp-content/plugins/event-espresso-core-reg/core/db_classes/EE_Base_Class.class.php:1747) in /home/bodhiins/public_html/wp-includes/pluggable.php on line 1207

Please advise


Alan Lewis

September 24, 2015 at 2:56 pm

I upgraded today to Version 4.8.10.p


Lorenzo Orlando Caum

  • Support Staff

September 24, 2015 at 4:22 pm

Hi Alan,

Do you currently have debugging display along with WP debugging enabled? That isn’t needed on a live/production site.

Here is an example that can be added to your wp-config.php file that will remove those PHP warnings:

https://gist.github.com/lorenzocaum/848801a1173be464fbe7#gistcomment-1239850


Lorenzo


Alan Lewis

September 24, 2015 at 7:35 pm

I dont have have debugging display along with WP debugging enabled,

The problem is more serious than just an error message at the top of the page. When I click “Create Custom” to create a custom template from a message it throws a blank page with that error only. I cannot proceed and am prevented from creating a custom template. The update has completely broken this functionality

Also events have been reset to only use the global templates, even though I have chosen to use several custom templates.

I was hoping for a fix, not a suggestion to hide the symptoms


Alan Lewis

September 24, 2015 at 8:20 pm

of what happens – wordpress navigation disappears also


Alan Lewis

September 24, 2015 at 8:21 pm

http://bodhi-institute.org/wp-content/uploads/25-09-15%2003-10-16.jpg


Alan Lewis

September 24, 2015 at 8:23 pm

that is a screenshot of what happens


Alan Lewis

September 25, 2015 at 3:28 am

Hi again – turns out that new templates are being created, but each time it throws up that full-screen error message. So this is more of a minor inconvenience, and I have reassigned the correct templates to the events they had become dissociated from. Would be nice to not have the error message come up, though. It was fine on the previous version of EE4


Tony

  • Support Staff

September 25, 2015 at 4:35 am

Hi Alan,

Does this happen with all custom templates? I looks like the screenshot you have shown is from the receipt template, I’ve tested this and could not reproduce so need to try and narrow this down some.

By using the phrase ‘Create Custom’ I assume you are creating the template from the messages section rather than the event editor?

Here – http://take.ms/JcTqs

Not here – http://take.ms/kPYfN
(The bottom of the event editor page)

If so can you try from within the event editor and see if the same happens?

Viewing all of the templates within ‘Event Espresso -> Messages’ do they match up with the active messengers within the messenger settings?

Event Espresso -> Messages -> Settings.

If you count the messengers active within both the Email and HTML sections does that number match the number of template available? (Its different depending on which add-ons you have enabled)


Alan Lewis

September 25, 2015 at 5:20 am

Hi Tony

Many thanks

The number of messages in use is 14 = 2 HTML and 12 email and it matches what’s in the Messages –> settings

I am attempting to create the template from the messages section (where it says “Create Custom”) rather than the event editor (where it says “Create New Custom”)

I was attempting to create a custom template from Registration Approved Global Template. The error, though, comes up whichever template I try and customise – a white screen with just the error messages. However, when I go into the custom templates and refresh the screen a couple of times, the template I have been trying to create then appears

If I try to create a custom template from the event editor – a similar effect happens. A a popup comes up which asks me for Name for Template and Description. No error message, as with the other method, But When I click Create Template, the background goes dark, but then nothing happens. If I cancel I get a rotating gear wheel. But when I go into the custom templates and refresh the screen a couple of times, the template I have been trying to create then appears.

It seems that the problem is pretty localised, and is not as drastic as I first thought.

I was wondering about deactivating and reactivating the core plugin, or putting the site into maintenance mode, disabling all plugins and then enabling only EE core plugin – what else could be tried?

Thanks for your help


Tony

  • Support Staff

September 25, 2015 at 5:36 am

It sounds like something is hijacking the query and adding additional details that EE is not expecting when looping over the messages. I may be wrong about that but I’ll check with the developers for any feedback they can provide (due to time differences it will take a little).

De-activating all non-EE plugins and retesting will show if this is a plugin conflict. If the same happens with those de-activate, also switch to one of the default themes and retest (to rule out the theme doing something odd to the query)

I would recommend doing this on a development copy of the site if possible, this can either be on a live server (a subdomain of the current site maybe?) or event locally. One of the quickest ways to set one up is using the Duplicator plugin to create a ‘package’ you can install on another server/directory. It just prevents needed to troubleshoot on the live server. At the very least create a database backup before attempting the above, just to be safe.

When you updated EE4 did you do so through the Dashboard or via FTP?

Viewing 10 reply threads

The support post ‘Error when creating custom message template’ 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