white screen of death after adding code to php file
-
Help!
Though your install directions here, on wp, do not say it’s required, your plugin settings, after it’s installed say differently.
As you know, when I get into the General settings, it says,
“Copy and paste the following code into any PHP file<?php echo do_shortcode(‘[prisna-google-website-translator]’); ?>” as if to imply that this step is required.
So, I pasted it into my child theme’s function.php, hit update, and got the W.S.O.D. Thankfully, I did it only to the child theme, so I was able to copy over the parent’s good functions.php file to restore site access.
I figured I pasted it into the wrong section, by mistake that time- user error. So, I redid it, this time, making sure that I scrolled all the way down to the bottom of the functions.php file first. Then, I pasted that code there, hit update, and got yet another WSOD. I’ve just recopied the functions.php file from the parent theme back into the child theme to restore access the 2nd time.
Am I doing this wrong? What could be causing the WSOD? do you really mean any php file? What should I do to get this working, ’cause I can’t move forward adding it like I have so far.
I really want to use this plugin, and I will need a prompt answer, or I’ll have to switch to a different one.
https://www.ads-software.com/plugins/google-website-translator/
- The topic ‘white screen of death after adding code to php file’ is closed to new replies.