Bitcoin Forum

Other => Off-topic => Topic started by: xXBEVOXx on October 05, 2014, 11:01:31 PM



Title: Need help. Got answers?
Post by: xXBEVOXx on October 05, 2014, 11:01:31 PM
I was editing my functions.php file on my site and something went wrong. Now it just brings back a syntax error. See for yourself. (http://pieceofbit.com) Does anyone know how to fix this, as I can no longer access my /wp-admin page.


EDIT: problem solved, thanks to all outs those who offered the great advice.


Title: Re: Need help. Got answers?
Post by: BaltimoreJoe on October 05, 2014, 11:22:33 PM
Can you paste 10 lines before and after line 204 of /home/pieceofbit/public_html/wp-content/themes/minamaze/functions.php ?


Title: Re: Need help. Got answers?
Post by: Anduck on October 05, 2014, 11:24:32 PM
You're probably missing a '$' there.


Title: Re: Need help. Got answers?
Post by: SpiderLegion on October 06, 2014, 12:12:21 AM
Yeah we can't really help you with your problems since PHP is server side code.  Paste the lines around 204 and then we'll talk.  In all likelyhood, you probably forget the $ though.


Title: Re: Need help. Got answers?
Post by: xXBEVOXx on October 06, 2014, 12:15:13 AM
Can you paste 10 lines before and after line 204 of /home/pieceofbit/public_html/wp-content/themes/minamaze/functions.php ?
I don't know how I would edit this. When I try to log in to my admin where I would make these edits, it seems me this error.


Title: Re: Need help. Got answers?
Post by: BaltimoreJoe on October 06, 2014, 12:44:41 AM
Can you ssh the server?


Title: Re: Need help. Got answers?
Post by: Vod on October 06, 2014, 01:59:03 AM
Can you paste 10 lines before and after line 204 of /home/pieceofbit/public_html/wp-content/themes/minamaze/functions.php ?
I don't know how I would edit this. When I try to log in to my admin where I would make these edits, it seems me this error.

Open the file in Notepad or some other text editor.  (Assuming you are using Windows)


Title: Re: Need help. Got answers?
Post by: BaltimoreJoe on October 06, 2014, 03:37:16 AM
Run this command on the server to get the context off the error ( lines 194 to 214 ) and past it here

sed -n '194,214p' /home/pieceofbit/public_html/wp-content/themes/minamaze/functions.php

Still see error when you try to log in:  "When I try to log in to my admin where I would make these edits, it seems me this error"?