!!

Welcome Guest

You are viewing this forum as a guest therefore You are Not Allowed to Post and Reply and You are not allowed to view links. Register or Login

collapse

* Search


* Recent Replies

Website Showcase - Drop Your Website Link(s) Here by [Not Shown, Login to View]
[Yesterday at 12:28 PM]


Site contributor click in Google Ads by [Not Shown, Login to View]
[Yesterday at 08:24 AM]


How to Apply for Payoneer Card and US Payment Service to Receive Amazon & others by [Not Shown, Login to View]
[Yesterday at 12:10 AM]


Ads plugins by [Not Shown, Login to View]
[Sep 14, 2018]


European Union laws by [Not Shown, Login to View]
[Sep 14, 2018]


price for a web design project by [Not Shown, Login to View]
[Sep 12, 2018]


my first website online by [Not Shown, Login to View]
[Sep 11, 2018]


WordPress on whogohost by [Not Shown, Login to View]
[Sep 07, 2018]


User ID Pageviews Plugin by [Not Shown, Login to View]
[Sep 07, 2018]


facebook ads by [Not Shown, Login to View]
[Sep 07, 2018]


How to Start Amazon affiliate marketing by [Not Shown, Login to View]
[Sep 07, 2018]


Possibility of Monetizing YouTube using a Nigerian postal address,etc ? by [Not Shown, Login to View]
[Sep 07, 2018]


Can I Build an Ecommerce Site Using Blogger? by [Not Shown, Login to View]
[Sep 04, 2018]


Creating public opinion poll on a website by [Not Shown, Login to View]
[Aug 17, 2018]


Add A Second Admin To Word press Site by [Not Shown, Login to View]
[Aug 17, 2018]


Google page ranking discontinued. by [Not Shown, Login to View]
[Aug 17, 2018]


Amazon registration in becoming an affiliate 2016 by [Not Shown, Login to View]
[Aug 17, 2018]


How to become a money maker agent by [Not Shown, Login to View]
[Aug 10, 2018]


Adding Widget to Feedburner by [Not Shown, Login to View]
[Aug 02, 2018]


Am sorry for my long break,am happy am back by [Not Shown, Login to View]
[Jul 18, 2018]


Another Course Update - Introducing Fast Track M.O.B by [Not Shown, Login to View]
[Jul 17, 2018]


Pop up ads wordpress plugin by [Not Shown, Login to View]
[Jul 14, 2018]


Information on Google Adwords by [Not Shown, Login to View]
[Jul 13, 2018]


Can I embed Images in my Blog Along With Adsense? by [Not Shown, Login to View]
[Jul 13, 2018]


Amount of Disc Space for A News Site by [Not Shown, Login to View]
[Jul 13, 2018]


Which Chamber, 1, 2 or 5? by [Not Shown, Login to View]
[Jul 13, 2018]


Amazon Identity Verification by [Not Shown, Login to View]
[Jul 13, 2018]


Building With WordPress: Can't find some plugins by [Not Shown, Login to View]
[Jul 13, 2018]


New Facebook page for every new business idea you want to promote? by [Not Shown, Login to View]
[Jul 13, 2018]


Growing Followers on Social Media by [Not Shown, Login to View]
[Jul 13, 2018]

Author Topic: My site is not accessible:Parse error  (Read 2223 times)

0 Members and 1 Guest are viewing this topic.

Offline [Not Shown, Login to View]

  • Level 3 (Regular)
  • ***
  • Posts: 136
  • Age: 2013
  • Respect: +18
  • Gender: Male
  • Location: Ilorin
  • 1st Chamber
  • My Rank: 9
    • Online and offline business ideas and guide
My site is not accessible:Parse error
« on: Sep 19, 2013 »
0
Good day boss and exprience member of the house. I was working on my website last night and modified function.php by pasting a code i got from a site (You are not allowed to view links. Register or Login) that will enable me create author profile for my guest bloggers and updated it. After the update I receive this error
Parse error: syntax error, unexpected T_STRING in /home4/esuccess/public_html/wp-content/themes/freshlife/functions.php on line 28
I immediate remove the code and updated it again only to receive the same error. I tried login into my wordpress admin but could not, I received the same error message again. It was then I knew my site is in trouble.
I search on net for solution and even restore my function.php folder from my backup but the problem still persist.
At this point i need the assitance of our mentors and experience member of the house because I didn't sleep through the night trying to get my site running back but I could not.
My site is: You are not allowed to view links. Register or Login
Thanks for your support always.


You are not allowed to view links. Register or Login

Offline [Not Shown, Login to View]

  • Administrator
  • Level: Mentor
  • ******
  • Posts: 259816
  • Respect: +8013
  • Gender: Male
  • Location: Benin City
  • 18th Chamber
  • My Rank: 97
Re: My site is not accessible:Parse error
« Reply #1 on: Sep 19, 2013 »
0
You normally get this message when there is a problem with your PHP code. You probably made a mistake in the process of adding or removing the code, I guess there is a missing semi-colon somewhere. Please post here the contents of your functions file from Line 1 to Line 28 let me see if I can detect the error.
Leave it for God, don't worry yourself. Leave it for God, don't cry no more.

Offline [Not Shown, Login to View]

  • Level 3 (Regular)
  • ***
  • Posts: 136
  • Age: 2013
  • Respect: +18
  • Gender: Male
  • Location: Ilorin
  • 1st Chamber
  • My Rank: 9
    • Online and offline business ideas and guide
Re: My site is not accessible:Parse error
« Reply #2 on: Sep 19, 2013 »
0
Thank you oga Tony for your quick response always. I cannot access to my wordpress admin dashbord. Each time I try to login i receive that error. So there is no way  I could copy the code. Sir, what else can i do. I have back up files of my site if that could help. Thanks
You are not allowed to view links. Register or Login

Offline [Not Shown, Login to View]

  • Administrator
  • Level: Mentor
  • ******
  • Posts: 259816
  • Respect: +8013
  • Gender: Male
  • Location: Benin City
  • 18th Chamber
  • My Rank: 97
Re: My site is not accessible:Parse error
« Reply #3 on: Sep 19, 2013 »
0
You can log in through your cPanel and access the file directly through File Manager. As given in the error message you will find the file under the following folder/path:  public_html/wp-content/themes/freshlife/functions.php
Leave it for God, don't worry yourself. Leave it for God, don't cry no more.

Offline [Not Shown, Login to View]

  • Level 3 (Regular)
  • ***
  • Posts: 136
  • Age: 2013
  • Respect: +18
  • Gender: Male
  • Location: Ilorin
  • 1st Chamber
  • My Rank: 9
    • Online and offline business ideas and guide
Re: My site is not accessible:Parse error
« Reply #4 on: Sep 20, 2013 »
0
Good day boss, thanks for yesterday. I have followed the instruction you gave to me but I'm still unable to resolve the problem. Please sir, can I PM my host username and password to you, so that you can help check. I know this may inconvenience you because of your tight schedule, I will be glad if you could help me out. Thanks and God bless.
You are not allowed to view links. Register or Login

Offline [Not Shown, Login to View]

  • Administrator
  • Level: Mentor
  • ******
  • Posts: 259816
  • Respect: +8013
  • Gender: Male
  • Location: Benin City
  • 18th Chamber
  • My Rank: 97
Re: My site is not accessible:Parse error
« Reply #5 on: Sep 20, 2013 »
0
Okay send it
Leave it for God, don't worry yourself. Leave it for God, don't cry no more.

Offline [Not Shown, Login to View]

  • Level 3 (Regular)
  • ***
  • Posts: 136
  • Age: 2013
  • Respect: +18
  • Gender: Male
  • Location: Ilorin
  • 1st Chamber
  • My Rank: 9
    • Online and offline business ideas and guide
Re: My site is not accessible:Parse error
« Reply #6 on: Sep 21, 2013 »
0
Thanks boss. I have sent the theme i used for the website.
You are not allowed to view links. Register or Login

Offline [Not Shown, Login to View]

  • Level 3 (Regular)
  • ***
  • Posts: 136
  • Age: 2013
  • Respect: +18
  • Gender: Male
  • Location: Ilorin
  • 1st Chamber
  • My Rank: 9
    • Online and offline business ideas and guide
Re: My site is not accessible:Parse error
« Reply #7 on: Sep 21, 2013 »
0
Thanks boss. I have sent the theme i used for the website.
You are not allowed to view links. Register or Login

Offline [Not Shown, Login to View]

  • Forum Guide
  • Level 4 (Dedicated)
  • ******
  • Posts: 927
  • Respect: +323
  • Gender: Male
  • am already in cloud 9
  • My Rank: 41
    • Latest News In Nigeria
Re: My site is not accessible:Parse error
« Reply #8 on: Sep 21, 2013 »
0
Ojekunle, as this been fixed?
Browse & Download unlimited with MTN here You are not allowed to view links. Register or Login

Offline [Not Shown, Login to View]

  • Administrator
  • Level: Mentor
  • ******
  • Posts: 259816
  • Respect: +8013
  • Gender: Male
  • Location: Benin City
  • 18th Chamber
  • My Rank: 97
Re: My site is not accessible:Parse error
« Reply #9 on: Sep 21, 2013 »
0
@Yomiprof: I'm still working on it.
Leave it for God, don't worry yourself. Leave it for God, don't cry no more.

Offline [Not Shown, Login to View]

  • Administrator
  • Level: Mentor
  • ******
  • Posts: 259816
  • Respect: +8013
  • Gender: Male
  • Location: Benin City
  • 18th Chamber
  • My Rank: 97
Re: My site is not accessible:Parse error
« Reply #10 on: Sep 21, 2013 »
0
Okay thank God the issue has been resolved and your site is now back up. Like I guessed earlier, some missing semicolons at the end of some lines of your code caused the problem. Actually what happened was that you copied the line numbers from the site along with the code, this is not supposed to be so and caused some extra lines that were not supposed to be among the code.

What you should have done was hover your mouse over the code snippet and you will see some icons appear over the code. The first one has the following symbol: <> , if you click that one it will give you the exact code formatted for copying. For clarity, below is the correct code (which I have already corrected in the functions.php):


add_filter( 'the_author', 'guest_author_name' );
add_filter( 'get_the_author_display_name', 'guest_author_name' );

function guest_author_name( $name ) {
global $post;

$author = get_post_meta( $post->ID, 'guest-author', true );

if ( $author )
$name = $author;

return $name;
}


THE WRONG CODE:
But what you used before was (notice the included line numbers which were not supposed to be there):

01
add_filter( 'the_author', 'guest_author_name' );
02
add_filter( 'get_the_author_display_name', 'guest_author_name' );
03
   
04
function guest_author_name( $name ) {
05
global $post;
06
   
07
$author = get_post_meta( $post->ID, 'guest-author', true );
08
   
09
if ( $author )
10
$name = $author;
11   
 
12
return $name;
13
   }
Leave it for God, don't worry yourself. Leave it for God, don't cry no more.

Offline [Not Shown, Login to View]

  • Forum Guide
  • Level 4 (Dedicated)
  • ******
  • Posts: 927
  • Respect: +323
  • Gender: Male
  • am already in cloud 9
  • My Rank: 41
    • Latest News In Nigeria
Re: My site is not accessible:Parse error
« Reply #11 on: Sep 21, 2013 »
0
You are not allowed to view links. Register or Login
@Yomiprof: I'm still working on it.


Thank you very much boss. That is why you are always their for us.
@Ojekunle, congrat!
Browse & Download unlimited with MTN here You are not allowed to view links. Register or Login

Offline [Not Shown, Login to View]

  • Level 3 (Regular)
  • ***
  • Posts: 136
  • Age: 2013
  • Respect: +18
  • Gender: Male
  • Location: Ilorin
  • 1st Chamber
  • My Rank: 9
    • Online and offline business ideas and guide
Re: My site is not accessible:Parse error
« Reply #12 on: Sep 21, 2013 »
0
Wow, oga Tony you're wonderful. I am very grateful for this unusual assistance you gave to me despite your tight schedule.  This forum is the best i have ever seen. I'm very glad, infact, I don't know how to express my appreciation better, but i just pray God will bless and reward you. I have read and understood all the corrections you made and i will follow them to avoid this type of mistake in the future. Once again thank you.
You are not allowed to view links. Register or Login

Offline [Not Shown, Login to View]

  • Level 3 (Regular)
  • ***
  • Posts: 136
  • Age: 2013
  • Respect: +18
  • Gender: Male
  • Location: Ilorin
  • 1st Chamber
  • My Rank: 9
    • Online and offline business ideas and guide
Re: My site is not accessible:Parse error
« Reply #13 on: Sep 21, 2013 »
0
@yomiprof, thanks so much.
You are not allowed to view links. Register or Login

Offline [Not Shown, Login to View]

  • Forum Guide
  • Level 3 (Regular)
  • ******
  • Posts: 399
  • Respect: +42
  • Gender: Male
  • Location: Port Harcourt, Nigeria
  • You Won't Shrink if you can think.
  • My Rank: 61
    • http://hotbusinesslink.com
Re: My site is not accessible:Parse error
« Reply #14 on: Sep 21, 2013 »
0
@Ojekunle, congrat! your site is back.

Oga Tony you are too much.
You are not allowed to view links. Register or Login

Offline [Not Shown, Login to View]

  • Administrator
  • Level: Mentor
  • ******
  • Posts: 259816
  • Respect: +8013
  • Gender: Male
  • Location: Benin City
  • 18th Chamber
  • My Rank: 97
Re: My site is not accessible:Parse error
« Reply #15 on: Sep 21, 2013 »
0
Thanks guys. We thank God for everything o.
Leave it for God, don't worry yourself. Leave it for God, don't cry no more.

Offline [Not Shown, Login to View]

  • Level 3 (Regular)
  • ***
  • Posts: 136
  • Age: 2013
  • Respect: +18
  • Gender: Male
  • Location: Ilorin
  • 1st Chamber
  • My Rank: 9
    • Online and offline business ideas and guide
Re: My site is not accessible:Parse error
« Reply #16 on: Sep 22, 2013 »
0
You are not allowed to view links. Register or Login
@Ojekunle, congrat! your site is back.

Thanks friend
You are not allowed to view links. Register or Login

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
661 Views
Last post Dec 05, 2011
by [Not Shown, Login to View]
2 Replies
1020 Views
Last post Sep 19, 2012
by [Not Shown, Login to View]
5 Replies
1194 Views
Last post Nov 20, 2014
by [Not Shown, Login to View]
RSS error

Started by [Not Shown, Login to View] General Questions

10 Replies
1236 Views
Last post Aug 08, 2015
by [Not Shown, Login to View]
SSL and HTTP error

Started by [Not Shown, Login to View] General Questions

11 Replies
1307 Views
Last post Oct 04, 2015
by [Not Shown, Login to View]

TinyPortal © 2005-2011
SimplePortal 2.3.5 © 2008-2012, SimplePortal