Topic RSS
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or
'$' in
/var/www/vhosts/provatoo.net/httpdocs/wp-content/plugins/simple-forum/install/sf-upgrade-support.php
on line 1424, referer:
http://provatoo.net/wp-admin/a…..nstall.php
[Mon Jan 25 09:28:02 2010] [error] [client 93.148.232.126] PHP
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or
'$' in
/var/www/vhosts/provatoo.net/httpdocs/wp-content/plugins/simple-forum/install/sf-upgrade-support.php
on line 1424, referer:
http://provatoo.net/wp-admin/a…..nstall.php
11:50 am
SP Master
Nov 9, 2008
OfflineThat is the line of code we asked you to change earlier in the thread.
It looks like you did not enter it correctly. You need to try to make that change again. You can select the code below and paste it in:
File: simle-forum/install/sf-upgradesupport.php
Function: sf_upgrade_bloglinks_table()
Line Number: 1424
Currently reads:
replace with this:
11:57 am
SP Master
Nov 9, 2008
OfflineThe error you reported in the server log suggests you made an error when editing the file.
Now appear this error
2798
Install Error: (NOTICE)[8] Undefined index: class
on line 1111 in file /var/www/vhosts/provatoo.net/httpdocs/wp-includes/wp-db.php
WordPress database error: [Duplicate entry 'sfmemberopts' for key 1]
INTO `wp_sfoptions` (`option_name`,`option_value`) VALUES
('sfmemberopts','a:5:{s:16:"sfcheckformember";s:0:"";s:16:"sfshowmemberlist"; b:0;s:17:"sflimitmemberlist";b:0;s:18:"sfsinglemembership";s:0:"";s:12:"sfhidestatus";b:1;}')
Please report these details to the Simple:Press Support Forum



You really have had a tough time with this. Sorry about that but you appear to have all the problems!
One more small code edit and this should then work OK…
Find the file:
simple-forum/install/sf-error-control.php
immediately after the opening brace of the function insert this line of code:
so it reads:
{
if($errno == E_NOTICE) return;
and please let me know the result. Thanks.
i edit the file. I try to upgrade SMF and compare this error! nooo
2798
WordPress database error:[Duplicate entry 'sfmemberopts' for key 1]
INTO `wp_sfoptions` (`option_name`,`option_value`) VALUES
('sfmemberopts','a:5:{s:16:"sfcheckformember";s:0:"";s:16:"sfshowmemberlist"; b:0;s:17:"sflimitmemberlist";b:0;s:18:"sfsinglemembership"; s:0:"";s:12:"sfhidestatus";b:1;}')
2903


Oh apologies – I missed that it was THIS issue.
Don't know what to say really. The error speaks for itself. It has already created that record on a previous try and can't do it again.
if this is an upgrade then I would recommend going back to the previous database. We will have a fix in place for the 'duplicate' key probem in the next beta update.
Try this:
That last code you changed. Change it again. From:
{
if($errno == E_NOTICE) return;
to
{
return;
That should igfnore the dup error. Well – at least it is worth a try.
Most Users Ever Online: 444
Currently Online:
76 Guest(s)
Currently Browsing this Page:
2 Guest(s)
Top Posters:
-Radio-: 1251
Lee H: 606
Luffer: 535
Conrad_Farlow: 502
jim: 478
neon: 263
ovizii: 240
Tal: 240
Member Stats:
Guest Posters: 2625
Members: 7361
Moderators: 1
Admins: 2
Forum Stats:
Groups: 5
Forums: 16
Topics: 10890
Posts: 79543
Newest Members: ndc, MacBravO, irlandes1, triphop, betokan, Jonathan Yovani Muñoz, somosguatemala, ahcreate, eatonrabbit, prasanna
Moderators: Brandon C (162)
Administrators: Yellow Swordfish (22223), Mr Papa (23688)
Log In
Register
Home
Add Reply
Add Topic
Quote


Privacy Policy



