Posted: January 30, 2025 at 1:45 pm
Version 5.0.34p crashes my pages in WordPress 6.7.1 Is there a fix? |
|
Hi there, I’ll need the log from the error being thrown to know what is happening here, WordPress displays a ‘Critica error’ pretty message but in the PHP error logs should be the ‘real’ error being thrown starting ‘Fatal error’. Your host will usually have a section for you to view the error logs within your control panel, can you see if there any errors there and post them here? |
|
Yes. I should be able to access the error logs in the AM. Thank you for your reply. I will get you what I find ASAP. |
|
Unfortunately, the only error message I can find is this (below), which seems to occur every couple of hours every day, but doesn’t seem to cause a problem I can see. I did a search through the log for “fatal error” over the last 48 hours and got nothing. |
|
Ok, so when you say ‘crashes my pages’, what happens on the site? |
|
Though the registration grid seems to be okay, the header text gets an extra </h1> tag: AHA Basic Life Support (BLS) Provider CPR – White Plains (In-Person Classroom Course) </h1 /* */ |
|
Hmm interesting! Ok, can you link me to the page so I can take a look? |
|
Here is the link to the page using EE 5.0.19p: |
|
Oh! I thought you were testing this on a dev/staging copy. No, let’s not update the live site if you know there are issues. Who are you hosting with? Do they have a staging/dev site facility? |
|
Yes, the host has a staging option. I’ll see if I can port the site over to it and get back to you. Thanks for your help. |
|
Okay. I copied the site to the staging environment. Here’s an example of the broken page after updating the staging site to EE 5.0.34p |
|
For some reason, in the staging site, the wording/coding does not appear in the right hand column, but the additional <h1 tag still appears alongside the header. |
|
Can you send me login details so I can take a look at this please? It could be related to something the theme is ding which EE is now highlighting with the next version, but I’ll take a look and advise from there. If that’s ok, send temp login details over using this form: |
|
This reply has been marked as private. | |
This reply has been marked as private. | |
Oooooops! |
|
I changed the password. Let’s hope no one used the old one. |
|
New login sent. |
|
Ok, so your theme has a bunch of EE templates that are overriding the default output. Inside
Which should be:
Note the closing That’s what is breaking your even title. You may also have templates within |
|
Wow! Okay, thank you. Will inserting the closing > also fix the problem with the templates that no longer load, or is that a separate issue? |
|
That’s a separate issue. To explain, Event Espresso has for a long time looked in So… in v5.0.0 we deprecated that location in favour of loading the templates from within a Child theme (note that doing so has always happened, but the above location was checked first) and in the latest versions we made a change which means — So… 2 things I recommend here. 1. Check in If so, look at moving those to the root directly of your child theme (you already have a bunch there which may not even be needed)… compare the the templates to see what changes have been made and why. The templates in the uploads directory may be ‘newer’ than what your theme has. You likely don’t need a bunch of what has been copied, which leads onto the next point…. 2. Within your child theme you have a bunch of template files for event espresso. Loading them there means you have taken ownership of the template, any changes we make to the default templates will be ignored becuase you are loading your own version. So… compare those with the default templates in For example, the file with the issue above in your theme:
That’s basically an exact copy of our default template file but with a typo in it. So your theme has taken control of that template…. to load exactly the same version. I’d be asking why take ownership of it if nothing is changing. Let EE load its own version (remove that one from the theme and EE will load the default). That is less for you to manage within the theme, then… if it’s loading the same code that EE core would load from its own template…. let core load its template. I don’t know if your knowledge with PHP and/or if you copied those templates or someone else, so this may not be something you can do yourself? |
|
Tony, thank you very much. You guessed it, someone else set this all up, and my knowledge of php is extremely limited. At this point, I don’t know where to find content-espresso_events-header.php. If I did, I’d be happy to remove it and call things fixed for now. Going in and dealing with the templates is something I’m not capable of. If you could tell me how to find the above php page, I’d be most grateful. |
|
If you have file access it’ll be in If not, it can be edited within the WP Admin (be careful here! Making a mistake can give you a white screen, and then you need FTP to fix it by undoing the change made or correcting it). Dashboard -> Appearance -> Theme File Editor. Find You’ll see the code I mentioned above with the missing closing tag, update and save. (The WP File editor will not let you remove the template file afaik) — Generally, we don’t work through custom templates but comparing the those with the defaults and removing the unneeded files from the theme is something we can do via a support token if needed. The above should fix the title regardless but just giving you the option. |
|
Oh no! I added the close bracket and the h1 tag went away, but now it is worse, with even more code added to the header!!! Help! |
|
Actually, the <h1 tag is still there at the end of the header, but now there is even more code up there, which you can see on the staging site page I sent. The header now includes: id=”event-details-h1-10901″ class=”entry-title”> at the beginning of the header. |
|
You’d edited the opening tag rather than the closing one. I’ve fixed it on the staging site. |
|
Yes! It’s fixed. Thank you. I made the same (correct) change on the live site, so now I will try to update to EE 5.0.34p. Fingers crossed. Thank you for your patience with this Luddite. If the update works, I promise not to bother you. Thanks again. |
|
Well…I wish I could leave you alone. The header is fixed, but now I get this text/code in the right hand column, which should be blank: /* */ |
|
You can see it here: https://cprdave.com/events/aha-basic-life-support-bls-provider-cpr-white-plains-in-person-classroom-course-2/ It does not occur on the staging site. Very odd. |
|
I compared the code in the events-header section of the staging site with the live site, and to the best of my ability, they look identical. uggggg |
|
This reply has been marked as private. | |
Tony, you’re right. Thank you for letting me know. It does not appear when not logged in. If it’s a simple fix (translation: something even someone like me can handle), I’d be happy to apply it. If not, I’m happy to tell the CPR Dave folks that the site no longer has visible glitches with the EE upgrade. As for the templates issue, I’m happy to open a ticket for them, if someone is willing to deal with them. Is there a charge for that? Most important, I thank you immensely for your patience and expertise. |
|
The config issues isn’t related to your template files, something is preventing one of the config options from loading so EE see’s an ’empty’ config. I’ll need to see that loading to see what is going on there, but I can’t find where that happens, it’s not happening for me when I log into the site and view the event.
Yeah, I can work through those templates and remove what isn’t needed, etc, but yes, there would be a charge to cover the time, as it’s not an issue with EE itself. We can do that using a support token: https://eventespresso.com/product/premium-support-token/
You’re most welcome 🙂 |
|
Thank you again, Tony. I guess I’ll leave the templates alone for now, hoping they don’t cause future issues. If you are willing to watch the loading, I will be glad to provide access to the live site, since it doesn’t seem to happen on the staging site. With gratitude. – D |
|
This reply has been marked as private. | |
I’m sorry, but I don’t understand the question. |
|
This reply has been marked as private. | |
You and I are logging in as the same user. Maybe it’s an intermittent? Your guess is better than mine. |
|
You must be logged in to reply to this support post. Sign In or Register for an Account