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
Upgrading from 4.0.4 to 4.3.2 - Error Message
Jul 30, 2010
5:28 am
Member
Forum Posts: 16
Member Since:
Jan 10, 2009
Offline

WordPress 3.0 – I backed up the database, deactivated all plugins and switched to the default theme.

 

 

wp-content/plugins – Using cPanel File Manager, I compressed a copy of the old simple-forum folder as a backup, deleted the old folder and unzipped SP-432-RELEASE.zip.

 

 

WordPress Admin-Plugins – With all other plugins deactivated, I activated Simple:Press Forum 4.3.2 and got the following error message:

 

Warning: array_intersect_key()[function.array-intersect-key]: Argument #1 is not an array in /home/inbndmkt/public_html/ttz1.com/wp-content/plugins/simple-forum/library/sf-public.php on line 153

Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/inbndmkt/public_html/ttz1.com/wp-content/plugins/simple-forum/library/sf-public.php on line 154

 

What do I need to do to fix this so I don't get the error message and complete the upgrade?

 

Thanks in advance,

 

Rick

 

PS: I restored everything to its original state and the website is back to the way it was before the upgrade attempt.

Jul 30, 2010
5:54 am

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

This is quite an upset really as well as a bit of a puzzle. An upset because I have rarely seen anyone report such a perfect path to an upgrade which then failed and a puzzle because I know others have upgraded from 4.0.4 and – in fact – versions 2.x and 3 – without hitting this error message.

I am looking into it but one question… despite the error message – was the upgrade link still available or did it then actually fail to activate? I am thinking that it probably DID activate otherwise the error message is usually a 'fatal error' reported by WP.

Yellow Swordfish
Jul 30, 2010
6:06 am
Member
Forum Posts: 16
Member Since:
Jan 10, 2009
Offline

Perhaps the error messages, distracted me. If it activated, I didn't notice it. Unfortunately, I can't take the site down again until 4AM (UTC-5) Saturday morning in Texas so as not to disrupt usage of the site.

Jul 30, 2010
7:47 am

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

Understood. My feeling is that it would have gone on to upgrade.
But – if you prefer – I can advise a simple code edit that would inhibit the error message but this would be to code within the 4.3.2 'new' files. Your call.

Yellow Swordfish
Jul 30, 2010
8:03 am
Member
Forum Posts: 16
Member Since:
Jan 10, 2009
Offline

I have no problem making changes (copy, paste, delete) to any of the 4.3.2 files.

 

Would it make any sense to do some intermediate upgrades using selected versions between 4.0.4 and 4.3.2?

Jul 30, 2010
11:48 am

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

Problems upgrading (although not ths one) only usually come about because of a problem with other javascript loaded on the system. We see no end of people having probems because their theme loads up an old copy of jQuery for example – or loads it from Google. They don't use the WP API and everything else just gets whacked and trampled on. The other main problem are plugins that load their stuff on every page inlcuding admin panels when it is not used. We have had so many problems with things like gallery scripts being loaded in the admin panels! makes you want to weep!

So we canlt guarantee no problems because it depends so much on what you have or have not got loaded b ut hey – you took extra precautions so hopefully you should be OK. We have also had the opposite of course – people upgradng from version 2.0 with no problem.

Anyway the code edit is to the file sf-hooks.php…

Quite near the top you will find this code:

if($SFSTATUS != 'Install' && sf_get_option('sfblockadmin')) {
        add_action('init', 'sf_block_admin');
}

That first line needs to change to:

if($SFSTATUS == 'ok' && sf_get_option('sfblockadmin')) {
        add_action('init', 'sf_block_admin');
}

That should inhibit that error message.

Yellow Swordfish
Jul 31, 2010
2:55 am
Member
Forum Posts: 16
Member Since:
Jan 10, 2009
Offline

It worked! Many thanks.

 

Final issue: How do I deal with this message?

 

 

 

Rick

Jul 31, 2010
5:19 am

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

Wow… you need to read this short wiki article and then deal with the list – the article tells you how. A list that big will be slowing down your forum display….

Good news on the upgrade though. That change is now in the core code although I will never quite understand why you and nobody else… but I have come to expect that with WP sites Smile

Yellow Swordfish
Aug 1, 2010
4:35 am
Member
Forum Posts: 16
Member Since:
Jan 10, 2009
Offline

How do I determine the skin that I was using before the upgrade? I don't have an image of it and I didn't know that I would lose the connection to it during the upgrade. None of the current skins seem to resemble my recollection of the old skin. 

 

I assume that the information on which skin is contained in _sfsettings but it is all numbers and I don't know how to interpret them.

 

Of course, I have the database and files from before the upgrade so I can search the database for the old skin selection and I have the skin styling folders to extract the styling information.

 

Thanks again for all your help.

 

Rick

Aug 1, 2010
5:45 am

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

use the 'About Simple:Press' option on the forum admin (above the forms) – or the information icon on the front end. It will tell you which skin and icon set it is trying to use.

Yellow Swordfish
Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: chucktho, SPQC
52 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

Top Posters:

-Radio-: 1251

Lee H: 606

Luffer: 535

Conrad_Farlow: 485

jim: 478

neon: 263

ovizii: 240

Tal: 240

Member Stats:

Guest Posters: 2616

Members: 7328

Moderators: 1

Admins: 2

Forum Stats:

Groups: 5

Forums: 16

Topics: 10839

Posts: 79118

Moderators: Brandon C (158)

Administrators: Yellow Swordfish (22131), Mr Papa (23580)