•
•
•
•
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
![]() |
•
•
Join Date: May 2008
Posts: 4
Reputation:
Rep Power: 0
Solved Threads: 0
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;
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;
•
•
Join Date: Apr 2005
Location: New York state
Posts: 464
Reputation:
Rep Power: 5
Solved Threads: 72
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+*
N+ o K w++(---) O? !M- V PS+>++ PE+ Y+ PGP !t- 5? X- R tv+
b+>++ DI+ D G++>+++ e+ h+>++ r z+*
•
•
Join Date: Apr 2005
Location: New York state
Posts: 464
Reputation:
Rep Power: 5
Solved Threads: 72
•
•
Join Date: Dec 2007
Posts: 113
Reputation:
Rep Power: 1
Solved Threads: 13
Read this post http://wordpress.org/support/topic/153814
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Help. Parse error in PHP code (PHP)
- PHP Parse error: parse error, unexpected T_STRING (PHP)
- Parse error: parse error, unexpected T_STRING in /home/thei2k9/public_html/includes/f (PHP)
- Need Help With Parse Error... (PHP)
- Parse Error message when testing page on browser - HELP!! (PHP)
- Parse error: (PHP)
- I need help with a parse error! (PHP)
- Parse error, syntax error, Forbids declaration (C++)
Other Threads in the PHP Forum
- Previous Thread: Installing PHP on Win XP Pro
- Next Thread: problem with language


Linear Mode