Archived topic
Customizer not working
9 replies · Started by Keith on March 18, 2022
I just moved my wordpress site to a new server. Everything is working except my Customizer. When I try and open the Customizer I get this message "There has been a critical error on this website. Please check your site admin email inbox for instructions."
I got an email from Wordpress saying that the error was in Generate.
I switched themes from Generate 3.1.3 to the 2022 Theme and the Customizer worked.
The customizer worked on my previous server with Generate active.
Any suggestions?
Hi there,
can you go to Dashboard > Tools > Site Health. First check there are no significant issues/errors being raised there.
If that is clear then:
1. Check for plugin conflicts by temporarily disabling all plugins apart from GP Premium.
2. Check with your host to see if they can enable debugging so hopefully they can get a little more detail on the problem via the error_log
Hello David,
Thanks for your reply.
No errors in Site Health. No plugin conflicts, but Customizer does work with all plugins activated using the 2022 theme.
I looked in my error log and found this:
[19-Mar-2022 21:21:41 UTC] PHP Parse error: syntax error, unexpected 'generate_setup' (T_STRING), expecting ')' in /home2/httpstep/public_html/wp-content/themes/generatepress/functions.php on line 19
Looks like the error is in the Generate theme
Does this help?
Keith
That sounds strange. We haven't had any reports on this.
Can you try reinstalling the theme?
Let me know :)
Hi Leo,
Thanks very much - problem solved!
Cheers
Keith
No problem :)
Make sure to never modify the parent theme's files.
Hello Leo,
I thought everything was working with the customizer, but no.
None of my customizer code that refers to mobiles is working. The bold code below is coloured red in the customizer ie wherever there is a #media (max-width: 768px) statement
#media (max-width: 768px) {.main-navigation .main-nav ul li a, .menu-toggle, .main-navigation .mobile-bar-items a {
padding-left: 15px;
padding-right: 15px;
border-left: 1px solid #9c9785;
border-bottom: 1px solid #80923a;
}
}
Nothing is showing up in the error log.
Thanks
Keith
It doesn’t sound like a customizer issue.
Can you open a new topic and link us to the page in question?
Thanks!
Hi Leo,
I don't think I explained myself clearly.
The problem is in the customizer, so every page viewed on mobile is affected.
This is the CSS for the Generate back to the top button
.generate-back-to-top, .generate-back-to-top:visited {
border-radius: 25px;
line-height: 50px;
width: 50px;
bottom: 130px;
right: 38px;
border: 1px;
border-style: solid;
}
#media (max-width: 768px) {
.generate-back-to-top, .generate-back-to-top:visited {
border-radius: 20px;
line-height: 28px;
width: 28px;
bottom: 130px;
right: 0px;
}
}
But the button is the same size on mobiles as desktops.
Here is one of my pages https://step.asn.au/
I think this problem happened at the same time as the previous Customizer problem. However, if you now still think this is a new issue I will start a new topic.
Thanks
Keith
Let's move this to a new topic.
Thanks!