A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Upgrade from 4.1.2 to 4.2
Jan 25, 2010
11:39 am
Member
Forum Posts: 20
Member Since:
Jan 24, 2010
Offline

[Mon Jan 25 09:28:01 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

[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

Jan 25, 2010
11:50 am

SP Master
Forum Posts: 22223
Member Since:
Nov 9, 2008
Offline

That 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:

if($key[0] && $key[1])

replace with this:

if((isset($key[0]) && !empty($key[0])) && (isset($key[1]) && !empty($key[1])))
Yellow Swordfish
Jan 25, 2010
11:55 am
Member
Forum Posts: 20
Member Since:
Jan 24, 2010
Offline

I just edit this file yesterday! You suggest me this modify

Jan 25, 2010
11:57 am

SP Master
Forum Posts: 22223
Member Since:
Nov 9, 2008
Offline

The error you reported in the server log suggests you made an error when editing the file.

Yellow Swordfish
Jan 25, 2010
12:10 pm
Member
Forum Posts: 20
Member Since:
Jan 24, 2010
Offline

Now appear this error

 

Upgrade Aborted
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]

INSERT
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

CryCryCry

Jan 25, 2010
2:15 pm

SP Master
Forum Posts: 22223
Member Since:
Nov 9, 2008
Offline

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:

if($errno == E_NOTICE) return;

so it reads:

function sf_install_error($errno, $errstr, $errfile, $errline)
{
    if($errno == E_NOTICE) return;

and please let me know the result. Thanks.

Yellow Swordfish
Jan 25, 2010
2:28 pm
Member
Forum Posts: 20
Member Since:
Jan 24, 2010
Offline

i edit the file. I try to upgrade SMF and compare this error! nooo

 

Upgrade Aborted
2798
 

WordPress database error:[Duplicate entry 'sfmemberopts' for key 1]

INSERT
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

CryCry

Jan 25, 2010
2:38 pm

SP Master
Forum Posts: 22223
Member Since:
Nov 9, 2008
Offline

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.

Yellow Swordfish
Jan 25, 2010
2:40 pm
Member
Forum Posts: 20
Member Since:
Jan 24, 2010
Offline

I dont understand…I backup the latest database before the upgrade?

Jan 25, 2010
2:53 pm

SP Master
Forum Posts: 22223
Member Since:
Nov 9, 2008
Offline

Try this:

That last code you changed. Change it again. From:

function sf_install_error($errno, $errstr, $errfile, $errline)

{

    if($errno == E_NOTICE) return;

to

function sf_install_error($errno, $errstr, $errfile, $errline)

{

    return;

That should igfnore the dup error. Well – at least it is worth a try.

 

 

Yellow Swordfish
Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online:
76 Guest(s)

Currently Browsing this Page:
2 Guest(s)

See All Online Activity

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

Moderators: Brandon C (162)

Administrators: Yellow Swordfish (22223), Mr Papa (23688)