-
BlissfulMissParticipant
I placed */ in my code in functions.php and got an error. I went back by hitting the arrow “back” key, and delete what I had entered, but I still get this error.
Parse error: syntax error, unexpected ‘*’, expecting ‘{‘ in /home3/suchey/public_html/wp-content/themes/pinboard/functions.php on line 1279
I copied and pasted what was currently there into another document to save it, and went to my downloaded folder for my theme on my computer. I found the functions.php section, triple checked it was the exact html I needed, and copied and pasted it into my CSS so it would be the exact default info. It still did not work.
When I open another window and try to go to my website http://blissfulmiss.com, I get the error and am locked out. Yet I still have a separate window open where I can make changes to functions.php. I’m wondering, though, that once I created that error, there is no fixing it this way.
CAN SOMEBODY HELP ME????! 🙁
BlissfulMissParticipantThanks, but it didn’t work. That’s exactly what I had tried to do with my own downloaded version, but tried yours anyway.
Daniel TaraKeymasterCan you please try to paste here line 1279 so we can see what it may be about?
BlissfulMissParticipantWell, without counting to the 1279th line, I assume its this one which is where I made the change.
function pinboard_current_location() {
I had added:
function pinboard_current_location() */ {
And then deleted it.
Here’s a large section for context.
*/
function pinboard_current_location() {
global $pinboard_page_template;
if ( ! ( is_home() && ! is_paged() ) && ! is_singular() || isset( $pinboard_page_template ) ) {
if( is_author() )
$archive = ‘author’;
elseif( is_category() || is_tag() ) {Daniel TaraKeymasterNothing appears to be wrong with that bit of code. Can you please upload the entire file on Pastebin?
BlissfulMissParticipantOkay, I did. Here’s the URL.
I’ve never used pastebin before, so if there’s another way I’m supposed to give you the pastebin info let me know.
Thanks for your help, by the way.
- This reply was modified 11 years, 6 months ago by BlissfulMiss.
Daniel TaraKeymasterThe file is fine, it’s something else causing the issue. Are you sure this is the file on the server and not some local version?
BlissfulMissParticipantAll I know is when I made the initial change and got the error, I hit the back button to go back and nothing I do seems to change anything. I’m thinking pasting in the default info should have worked if anything I do to it COULD work. I think when I made the first change it just locked me out from doing anything and I probably need to re-download the theme. Someone on another forum suggested I do that through my hosting company on the FTP. I have no clue how, of course, but can do a chat with someone at HostGator to walk me through it I guess.
I don’t have time to do it right now, so figured I’d see if I get any other suggestions before trying to re-download in a few hours.
Tagged: locked out, parse error, syntax error
You must be logged in to reply to this topic.