gvwriter
Member
Posted 4 years ago #
I tried to add a cookie trail on my site using Joost de Valk plug in. Everything was moving smoothly until I tried this. I tried to add:
<?php
if ( function_exists('register_sidebar') )
register_sidebar(array('name'=>'left_sidebar',
'before_widget' => '<div class="sidebar_box">',
'after_widget' => '</div>',
'before_title' => '<h4>',
'after_title' => '</h4>',
));
register_sidebar(array('name'=>'right_sidebar',
'before_widget' => '<div class="sidebar_box">',
'after_widget' => '</div>',
'before_title' => '<h4>',
'after_title' => '</h4>',
));
?>
........
to my theme and wham! I get this error.
I can't even get to my login screen.
YIKES.
Have I been hacked?
Try replacing the edited theme file with an unedited one. You may also need to delete whatever plugin you were trying to use.
gvwriter
Member
Posted 4 years ago #
I think I could do that if I could log in. I can't even log in.
I think I have to delete everything then re-upload wordpress.
gvwriter
Member
Posted 4 years ago #
Again, I think I can do this but do you have a suggestion or two (or three?)
...
Do I have to delete everything that is there first?
Do I have to download wordpress to a local file then use my FTP to upload it to the already established site?
I'm confused.
thanks,
t
Use ftp to download the bad, edited theme file. Using a text editor (not Word), delete the code additions. Use ftp to upload the fixed theme file to replace the bad one.
You can also use ftp to delete the bad plugin's folder from the WordPress plugins folder.
For more ftp help, see:
http://codex.wordpress.org/FTP_Clients
gvwriter
Member
Posted 4 years ago #
TYVM!!! Problem solved.
The answer was in the error message....
"Parse error: syntax error, unexpected '<' in /home/tgronent/public_html/wp-content/themes/cognoblue.1.0/cognoblue/functions.php on line 2"
The functions.php was screwed up. I DID IT! My fault completely.
It took me a while to figure it out but when I compared the file I had on my site to the one that came with cognoblue the file sizes were different. I checked the content and the error was as clear as the nose on my face.
I took the standard functions.php file and ftp it over the functions.php file I had on my site. Refreshed the site and it's back.
Thanks to you iridiax!