Current User: Guest
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






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

Upgrading from 4.0.4 to 4.3.2 – Error Message

Resolved
UserPost

5:28 am
Jul 30, 2010


RickA

Member

posts 12

 
1

Post edited 5:51 am – Jul 30, 2010 by RickA
Post edited 6:01 am – Jul 30, 2010 by RickA


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.

5:54 am
Jul 30, 2010


Yellow Swordfish

Peterborough, England

SPF Master
SPF Master

posts 15137

 
2

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

6:06 am
Jul 30, 2010


RickA

Member

posts 12

 
3

Post edited 7:52 am – Jul 30, 2010 by RickA


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.

7:47 am
Jul 30, 2010


Yellow Swordfish

Peterborough, England

SPF Master
SPF Master

posts 15137

 
4

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

8:03 am
Jul 30, 2010


RickA

Member

posts 12

 
5

Post edited 9:12 am – Jul 30, 2010 by RickA


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?

11:48 am
Jul 30, 2010


Yellow Swordfish

Peterborough, England

SPF Master
SPF Master

posts 15137

 
6

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

2:55 am
Jul 31, 2010


RickA

Member

posts 12

 
7

Post edited 3:02 am – Jul 31, 2010 by RickA
Post edited 3:04 am – Jul 31, 2010 by RickA


It worked! Many thanks.

 

Final issue: How do I deal with this message?

 

 

 

Rick

5:19 am
Jul 31, 2010


Yellow Swordfish

Peterborough, England

SPF Master
SPF Master

posts 15137

 
8

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

4:35 am
Aug 1, 2010


RickA

Member

posts 12

 
9

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

5:45 am
Aug 1, 2010


Yellow Swordfish

Peterborough, England

SPF Master
SPF Master

posts 15137

 
10

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


Reply to Topic:
Upgrading from 4.0.4 to 4.3.2 – Error Message

Guest Name (Required):

Guest Email (Required):

NOTE: First Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
5 + 3
   


Resolved


About the Simple:Press Forum

Forum Timezone: America/Chicago

Most Users Ever Online: 118

Currently Online: Conrad_Farlow
55 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 3
Forums: 10
Topics: 6335
Posts: 45401

Membership:

There are 4374 Members
There have been 1720 Guests

There are 2 Admins
There are 2 Moderators

Top Posters:

jim – 415
ovizii – 232
Tal – 206
Isaak – 183
Barandum – 178
David Polensky – 173
neon – 154
peterhol – 145

Recent New Members: ivie97, yogita, Nickinchicago, otherwhirl, CWS, Xephan, asnevitt, innerrock, guilli, fbutera101

Administrators: Yellow Swordfish (15137 Posts), Mr Papa (14888 Posts)

Moderators: -Radio- (1251 Posts), Luffer (482 Posts)