User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 423,486 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,764 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 319 | Replies: 6
Reply
Join Date: May 2008
Posts: 4
Reputation: portfood is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
portfood portfood is offline Offline
Newbie Poster

Parse Error-- help!!!!

  #1  
May 23rd, 2008
I am having trouble getting into my website on Wordpress. I get the following message and cannot sign-in.

Parse error: syntax error, unexpected T_STRING in
/home/portfood/public_html/portfood/wp-admin/admin.php on line 9

Here is the text that is on that page. Can someone help ?
<?php
define('WP_ADMIN', TRUE);

if ( defined('ABSPATH') )
require_once( ABSPATH . 'wp-config.php');
else
require_once('../wp-config.php');

if ( get option('db_version') != $wp_db_version ) {
wp_redirect(get_option('siteurl') . '/wp-admin/upgrade.php?_wp_http_referer='

. urlencode(stripslashes($_SERVER['REQUEST_URI'])));
exit;
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2005
Location: New York state
Posts: 464
Reputation: ShawnCplus will become famous soon enough ShawnCplus will become famous soon enough 
Rep Power: 5
Solved Threads: 72
Sponsor
ShawnCplus's Avatar
ShawnCplus ShawnCplus is offline Offline
Code Monkey

Re: Parse Error-- help!!!!

  #2  
May 23rd, 2008
You forgot the underscore between get_option on line 9, and please, please use code tags next time.
Last edited by ShawnCplus : May 23rd, 2008 at 5:45 pm.
GCS d- s+:+ a-->? C++(++++) UL+++ P+>+++ L+++ !E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r z+*
Reply With Quote  
Join Date: May 2008
Posts: 4
Reputation: portfood is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
portfood portfood is offline Offline
Newbie Poster

Re: Parse Error-- help!!!!

  #3  
May 23rd, 2008
Thanks so much for the advice but now I have a different message. I'm a newbie so please have patience.
Here is the new message after I made the change you told me.
Fatal error: Call to undefined function: get_option() in /home/portfood/public_html/portfood/wp-admin/admin.php on line 7
Reply With Quote  
Join Date: Apr 2005
Location: New York state
Posts: 464
Reputation: ShawnCplus will become famous soon enough ShawnCplus will become famous soon enough 
Rep Power: 5
Solved Threads: 72
Sponsor
ShawnCplus's Avatar
ShawnCplus ShawnCplus is offline Offline
Code Monkey

Re: Parse Error-- help!!!!

  #4  
May 23rd, 2008
You're trying to call a function that doesn't exist. Where is the definition for get_option
GCS d- s+:+ a-->? C++(++++) UL+++ P+>+++ L+++ !E--- W+++
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r z+*
Reply With Quote  
Join Date: May 2008
Posts: 4
Reputation: portfood is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
portfood portfood is offline Offline
Newbie Poster

Re: Parse Error-- help!!!!

  #5  
May 23rd, 2008
I don't have the answer to that. Really don't know what you mean by definition.Should I just delete that line ?
Reply With Quote  
Join Date: Dec 2007
Posts: 113
Reputation: mwasif is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 13
mwasif mwasif is offline Offline
Junior Poster

Re: Parse Error-- help!!!!

  #6  
May 25th, 2008
Reply With Quote  
Join Date: May 2008
Posts: 4
Reputation: portfood is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
portfood portfood is offline Offline
Newbie Poster

Re: Parse Error-- help!!!!

  #7  
May 25th, 2008
Thanks,

I did find out that I needed to get clean copies for a few files. I will be deleting those and upgrade my files again. Hopefully it works.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 3:52 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC