Archived topic
Child Theme Making Issue
30 replies · Started by Sourabh on December 12, 2020
Hi,
Almost every week due to some unknown issue my site breaking down, when I try to recover I always find its error from child theme, today I removed the entire WordPress and reinstalled it again, but again when uploaded backed up data, the problem is the same, when disabled child theme an error goes away but reactivating child theme again giving error -
https://www.dropbox.com/s/9samq7qzi1fo06b/child%20theme%20error.png?dl=0
https://www.dropbox.com/s/sm6unrdazrpb5by/child%20theme%20error1.png?dl=0
Do I making any mistake related to the child theme, because I have not touched it apart from your shown way, only PHP codes which u peoples giving I am pasting in function.php and saving, apart from it I do nothing with child theme.
I am stuck, Should I even use a child theme (Coz using CSS given by you peoples), or not ??
Do you have any solution ??
At present disabled the GP main theme + Child theme and activated twenty twenty one, You can login and try to activate child theme, site will crash again, so log in see yourself and help me whats wrong ??
Hi there,
What do you have inside the child theme functions.php file? It's likely something in there is coded incorrectly and causing the error.
I am not aware tom, I just downloaded from github, I thought u made it
How to find out the area of problem?
You can check your error_log file for specific errors.
Has nothing been changed in the child theme at all? No files added, no functions added?
I installed rank math Pro, which I have purchased recently, it was asking to add a line of PHP code in function.php so I did it, However, I don't call it a problem of rank math because it's common and happens each time even in every week...
Ask Leo he has asked several times that my website is down, it was not down actually coz it was broken down and I am restoring it always from backup...Refer error email which i receive almost every week -
https://www.dropbox.com/s/yzy69077qzofcuz/GP%20Child%20Error.png?dl=0
And child theme which I use is below -
https://www.dropbox.com/s/q95ffli8hk6k1j5/generatepress_child.zip?dl=0
Now what is wrong I don't know...
Hi, tom,
I have restored it, if you wish you can have a look inside (Refer credential).
Can you replace the existing child theme with this one here?
https://docs.generatepress.com/article/using-child-theme/#installing-a-child-theme
The credentials you've provided also isn't working for me.
Let me know :)
I need to update all the codes again then..which I have done in child theme...
Credentials r same..shared many times..giving again
Did you resolve the error with the Child Theme?
I just checked the site and i cannot see any issues with the child theme.
Did you resolve the error with the Child Theme?
Seems it was because of WordPress 5.6 update, which was installed automatically.
I just checked the site and I cannot see any issues with the child theme.
And its because I have restored it from backup, but it breaks each week due to some issue, dont know why..
If it breaks again then i would recommend you speak to your hosting provider and ask them to review their error logs - this should help pinpoint what the actual issue was.
Okay David, Can you suggest something like - is it mandatory to use the child theme ??
I use CSS codes given by you, and updates are also coming from time to time still despite the child theme site is breaking ....??
I use hostinger web hosting..
The alternative to using a Child Theme for adding PHP Snippets is to use the Code Snippets plugin: