Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] bfa_post_parts.php (http://forum.bytesforall.com/showthread.php?t=15323)

ljwahl Sep 7, 2011 08:42 PM

[SOLVED] bfa_post_parts.php
 
1 Attachment(s)
Hi everyone,

I screwed up my bfa_post_parts.php and now I can't even access wp-admin nor the front-end.

I get this error

Parse error: syntax error, unexpected '<' in /data/web/culturelink/culturelink.com.sg/wp-content/themes/atahualpa/functions/bfa_post_parts.php on line 56

I tried to upload an original copy of the file I had on my computer via FTP, but the error is still there, and I'm entirely mortified that I managed to shut down the entire website in the blink of an eye. I've attached the file here. Is there any reason why uploading a clean original bfa_post_parts.php file won't work?

HELP!!

juggledad Sep 8, 2011 04:26 AM

If you uploaded a fresh unedited copy it should work. It could be you have a caching plugin that is displaying the error.

Do this, use FTP and navigate to the wp-content/themes/atahualpa folder. Rename index.php to index.old

This should cause wordpress to switch to the default twenty-eleven theme so you can get in. Then check to see if you have a caching plugin and disable it and flush the cache (you can turn it on again later) next go backhand rename the index.old to index.ph and see if the error occurs again

juggledad Sep 8, 2011 11:33 AM

I just compared the file you uploaded to the original and there is no difference

ljwahl Sep 8, 2011 09:19 PM

Thank you Juggledad!

It turns out that I wasn't actually able upload the original file afterall, even via FTP. My server admin tells me that this was because I had installed Wordpress via a PHP process, so I'm not allowed to edit Wordpress folders and files via FTP.

I don't understand why this should be the case, but in the end, the admin unlocked something specific to the corrupted file, and I was able to replace it with the fresh copy. All has been fixed now.

In any case, thank you very much for your advice!


All times are GMT -6. The time now is 08:52 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.