Home › Forums › Graphene Mobile › Support
function.php messed up
-
Hi
I was adding an event plug-in and was told to post a code to my function.php file which I did. Unfortunately it now does not get me logged in. Here is what I get:
Warning: Cannot modify header information – headers already sent by (output started at /home/content/24/2489024/html/wp-content/themes/graphene/functions.php:39) in /home/content/24/2489024/html/wp-login.php on line 368
Warning: Cannot modify header information – headers already sent by (output started at /home/content/24/2489024/html/wp-content/themes/graphene/functions.php:39) in /home/content/24/2489024/html/wp-login.php on line 380
Warning: Cannot modify header information – headers already sent by (output started at /home/content/24/2489024/html/wp-content/themes/graphene/functions.php:39) in /home/content/24/2489024/html/wp-includes/pluggable.php on line 680
Warning: Cannot modify header information – headers already sent by (output started at /home/content/24/2489024/html/wp-content/themes/graphene/functions.php:39) in /home/content/24/2489024/html/wp-includes/pluggable.php on line 681
Warning: Cannot modify header information – headers already sent by (output started at /home/content/24/2489024/html/wp-content/themes/graphene/functions.php:39) in /home/content/24/2489024/html/wp-includes/pluggable.php on line 682
Warning: Cannot modify header information – headers already sent by (output started at /home/content/24/2489024/html/wp-content/themes/graphene/functions.php:39) in /home/content/24/2489024/html/wp-includes/pluggable.php on line 876
I went in to the web hosting and removed the code using file manager but I still cannot log into wp-admin.
The website is http://www.american-hi-tek.com
I am at a loss as to what to do from here. Here is the code I was told to add to the functions.php file:
<?php
if (get_magic_quotes_gpc()) {
$process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
while (list($key, $val) = each($process)) {
foreach ($val as $k => $v) {
unset($process[$key][$k]);
if (is_array($v)) {
$process[$key][stripslashes($k)] = $v;
$process[] = &$process[$key][stripslashes($k)];
} else {
$process[$key][stripslashes($k)] = stripslashes($v);
}
}
}
unset($process);
}
?>Can someone help? When I use file manager to get in the above code is no longer showing but I still cannot access wp-admin.
AdminPlease post the full content of the
functions.php
file on the pastebin.Put code in between backtick (
Code:`) characters here in this forum. It’s usually located above the Tab key on your keyboard.
I posted it to pastebin as directed and it is named function.php
ModLink to pastebin file?
I am completely lost, I cannot email this to you as it is a no-reply email. I do not feel comfortable here but I guess it does not matter.
Is that what you want? I cannot find it again in pastebin.
I think you need to dumb it up for me, I am not a programmer.
AdminAfter you’ve submitted the code to pastebin, copy the URL of the page that it brought you to:
Thanks I ended up renaming the theme to reset the site to the default theme. I then deleted the Graphene and reloaded it again. Switched back to it and all is fine.
Thank for your help
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.