I have a fatal erro on child theme install

Posted in: Newspaper
Post count: 14

I have a fatal [Sat Jan 27 15:19:39.279740 2018] [:error] [pid 25500] [client 104.196.118.37:57392] PHP Fatal error: Cannot redeclare _check_isactive_widgets() (previously declared in /nas/content/live/feline13/wp-content/themes/Newspaper-child/functions.php:30) in /nas/content/live/feline13/wp-content/themes/Newspaper/functions.php on line 208, referer: http://purrview.com/wp-cron.php?doing_wp_cron=1517066378.8447420597076416015625

I asked WpEngine to try and resolve but they said it was in the child theme folder. I also tried uploading child theme via ftp and via theme upload.

It basically makes my site disappear and gives me a 500 error, Any advice I would really like to use your theme and I need a child theme so I don’t lose all my customizations when you update the core theme.
.
ps one thread said to update the main theme and then use the child theme, isn’t that backwards? don’t you mean update and customize the child theme so we don’t loose our customizations when you update the core theme?

Thanks, Tonia

Post count: 20688

Hi,

So the error is present when activating the child theme from what I understand. A default child theme should not cause such issues, it does not contain any code that can cause this.
Please try again, use the child theme provided in the theme package, do not enter any code in it initially. Activate it and check if the error is still happening, it should not. Code you are entering in the child theme might cause the problem, test with a default child theme
https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks

Post count: 14

Hello Simon Thanks for the reply, Yes this blank page is happening when I upload the Child theme, So I have downloaded a new folder with a new child theme zip file and I just now uploaded it and when I activate the theme the live site and the admin site go blank. I called wpengine to see if they could help me and they said its a 500 error and to write your team back that created the theme.

on my staging I also added the child theme and when I went to live site or close the customize section on my admin side I get this message:

Fatal error: Cannot redeclare _check_isactive_widgets() (previously declared in /nas/content/staging/feline13/wp-content/themes/Newspaper-child/functions.php:30) in /nas/content/staging/feline13/wp-content/themes/Newspaper/functions.php on line 208

Would love some help, I too have never had this issue on a child theme, so I don’t know what to do.
T

  • This reply was modified 8 years by toniacat.
Post count: 14

do I have to copy the single, smart lists, module etc to the child theme for it to work?

Post count: 14

Ps I have not entered any code. Im trying to use it right out of the box.

Post count: 20688

Now this is unusual, the default child theme contains no code that could affect the website and cause such issues.

The error seems to point to lines in the code that would be nonexistent, unless code was entered in the either theme functions file or child theme functions. Remove any code you might have entered in theme functions, and use a default child theme.

Indeed files have to be copied in the child theme if you want to modify them. The same directory path has to be created as in the main theme. In the tutorial it is mentioned what files can be customized through it.

If there is still an issue using a default child theme, send us an email at contact@tagdiv.com and provide admin login information, as well as FTP access. Make a backup of the website before. Include a link to this topic in the email.

Thanks

Post count: 14

Good Morning Simon, Thanks for your reply. You’re right I just looked in dreamweaver and there is no code in either the style sheet and functions docent even have a line 208 in either the child or the parent theme. I am truly stumped. I will take you up on your offer to contact support by email to hear everyone’s insight. My brain can only go so far, and you guys can really see the bigger picture and details.

I will do my backups and then send my logins for my staging to the email you provided. Thank you, Tonia

Post count: 7909

Replied via email!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.