vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v2.0 Support > Troubleshooting & Problems

Reply
 
Thread Tools Display Modes
  #1  
Old 10-20-2006, 12:49 PM
nastea nastea is offline
Junior Member
 
Join Date: Nov 2004
Posts: 20
Default unserialize() expects parameter 1 to be string

PHP 5.2
vB 3.6.1
vBa 2.2

Warning: unserialize() expects parameter 1 to be string, array given in /includes/vba_cmps_include_bottom.php on line 163

Warning: unserialize() expects parameter 1 to be string, array given in /includes/vba_cmps_include_bottom.php on line 266

Warning: unserialize() expects parameter 1 to be string, array given in /includes/vba_cmps_include_bottom.php on line 267

Warning: unserialize() expects parameter 1 to be string, array given in /modules/stats.php on line 27

Everything seems to look ok (except column alignment) but those errors are getting thrown. Any help i'm trying to migrate everything over to a php5 server so doing some testing before hand to make sure it works right.

I have installed a fresh copy of vba.

Last edited by nastea; 10-20-2006 at 12:53 PM.
Reply With Quote
  #2  
Old 10-20-2006, 12:52 PM
nastea nastea is offline
Junior Member
 
Join Date: Nov 2004
Posts: 20
Default Re: unserialize() expects parameter 1 to be string

Line 163:
Code:
$pagecache = unserialize($vbulletin->adv_portal_page);
Line 266 and 267:
Code:
$iconcache = unserialize($vbulletin->iconcache);
$attachmentcache = unserialize($vbulletin->attachmentcache);
Line 27 of stats.php:
Code:
$topposter = unserialize($vbulletin->adv_portal_tpst);
Reply With Quote
  #3  
Old 10-20-2006, 04:20 PM
nastea nastea is offline
Junior Member
 
Join Date: Nov 2004
Posts: 20
Default Re: unserialize() expects parameter 1 to be string

wow no suggestions?
Reply With Quote
  #4  
Old 10-20-2006, 05:00 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 32,140
Default Re: unserialize() expects parameter 1 to be string

Quote:
Originally Posted by The forum rules
Please wait at least 24 hours before bumping a thread.
Though we do try to check the forums as often as possible, we are not on the site 24/7. Once a staff member sees your post it will be answered. We are human though and every once in a while a post may be missed, so if you have not received an answer within 24 hours please bump your thread then
Were you running v2.2.0 (or any previous versions) of the CMPS before hand? It looks like you were and upgraded to 2.2.1, but didn't overwrite all of the files when you upgraded.
Reply With Quote
  #5  
Old 10-21-2006, 01:28 AM
nastea nastea is offline
Junior Member
 
Join Date: Nov 2004
Posts: 20
Default Re: unserialize() expects parameter 1 to be string

yeah i was and i did an overwrite. it was doing it on 2.2.0 so i figured i'd try new version. unzipped, overwrote and then instead of 1 error on 2.2.0 i got those four errors on 2.2.1
Reply With Quote
  #6  
Old 10-21-2006, 03:25 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 32,140
Default Re: unserialize() expects parameter 1 to be string

Check your includes/vba_cmps_include_top.php and includes/vba_cmps_include_bottom.php files on your server and make sure they're showing v2.2.1 in the top of the files. If that's not it, please submit a support ticket via the Members' Area here.
Reply With Quote
  #7  
Old 10-22-2006, 04:16 PM
nastea nastea is offline
Junior Member
 
Join Date: Nov 2004
Posts: 20
Default Re: unserialize() expects parameter 1 to be string

Code:
// ++=========================================================================++
// || vBadvanced CMPS v2.2.1 (vB 3.6) - 6796
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 11:05, Fri Oct 20th 2006
// ||
// ++ ========================================================================++
Reply With Quote
  #8  
Old 10-22-2006, 04:18 PM
nastea nastea is offline
Junior Member
 
Join Date: Nov 2004
Posts: 20
Default Re: unserialize() expects parameter 1 to be string

Oh and i've had a "support ticket" open since oct 20th. which is still in "open" status.
Reply With Quote
  #9  
Old 10-23-2006, 12:32 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 32,140
Default Re: unserialize() expects parameter 1 to be string

Yes, but I was waiting until you answered the questions I asked here until I looked at it, considering that you submitted it before anyone asked you to. I will be moving onto support tickets shortly though.
Reply With Quote
  #10  
Old 11-06-2006, 05:28 AM
Braddock Braddock is offline
Junior Member
 
Join Date: Sep 2006
Posts: 4
Default Re: unserialize() expects parameter 1 to be string

Hello,

i got the same Problem too.
No changes were made in the forum or the vbadvaced.
Now i got the same Problems.

Warnung: unserialize() expects parameter 1 to be string, array given in /includes/vba_cmps_include_bottom.php (Zeile 240)

Warnung: unserialize() expects parameter 1 to be string, array given in /includes/vba_cmps_include_bottom.php (Zeile 241)


By searchig for the failure, i mentioned that i cant upload any avatars or attachments in the Forum. By ftp it is possible.
This failure ist only shown in the vbadvaced, in the forumsview there you can see no errors.

Is there a solution?

Sry for bad englisch!

Mario
Reply With Quote
  #11  
Old 11-06-2006, 02:50 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 32,140
Default Re: unserialize() expects parameter 1 to be string

Mario,
Have you tried downloading the package from the Members' Area here again and replacing your current files with the ones there to make sure you're running the most recent ones?
Reply With Quote
  #12  
Old 11-06-2006, 06:11 PM
usedname usedname is offline
Junior Member
 
Join Date: Sep 2006
Posts: 4
Default Re: unserialize() expects parameter 1 to be string

This started happening on a site that I know of after an upgrade from PHP4 to PHP5. Maybe it's related to PHP5?
Reply With Quote
  #13  
Old 11-07-2006, 02:47 AM
Chaos84 Chaos84 is offline
Junior Member
 
Join Date: Sep 2006
Posts: 1
Default Re: unserialize() expects parameter 1 to be string

Yes, the php was updated on the Server. What we have to do now?
Reply With Quote
  #14  
Old 11-07-2006, 08:10 AM
Braddock Braddock is offline
Junior Member
 
Join Date: Sep 2006
Posts: 4
Default Re: unserialize() expects parameter 1 to be string

Chaos and me made the forum together. Chaos is now trying to update the portal.
We will post what happens!

Mario


Edit: Updating the portal was the solution.
The whole thing was the update of PHP, like usedname said. But i didnt noticed the update because the server isnt mine. So if you update PHP be sure to update vbadvanced.

Thx

Mario

Last edited by Braddock; 11-07-2006 at 08:41 AM.
Reply With Quote
  #15  
Old 11-08-2006, 04:29 AM
yannisc yannisc is offline
Junior Member
 
Join Date: Feb 2005
Posts: 7
Default Re: unserialize() expects parameter 1 to be string

I had the same problem when upgraded to PHP5.2 (from PHP5.1.6)

After I upgraded to vba2.2.1 it solved.

But what happens if someone run vba.2.1 (with vb <3.6)? (I have such a site)
Reply With Quote
  #16  
Old 11-10-2006, 05:19 PM
CheeseFrog CheeseFrog is offline
Junior Member
 
Join Date: May 2005
Posts: 4
Default Re: unserialize() expects parameter 1 to be string

Same problem here. Upgraded from PHP 4.4.4 to PHP 5.2.0. Everything seems to work fine but I get these errors at the top of of my site:


Warning: unserialize() expects parameter 1 to be string, array given in /includes/vba_cmps_include_bottom.php on line 240

Warning: unserialize() expects parameter 1 to be string, array given in /includes/vba_cmps_include_bottom.php on line 241

I'm running VBA 2.2.0 but based on the suggestions here, I'm going to try upgrading to 2.2.1. I'll let you guys know how it goes in a few minutes.
Reply With Quote
  #17  
Old 11-10-2006, 05:58 PM
CheeseFrog CheeseFrog is offline
Junior Member
 
Join Date: May 2005
Posts: 4
Default Re: unserialize() expects parameter 1 to be string

Verified. Upgrading to VBA 2.2.1 fixes the problem
Reply With Quote
  #18  
Old 11-19-2006, 11:28 PM
HellRazor HellRazor is offline
Member
 
Join Date: Apr 2004
Posts: 31
Default Re: unserialize() expects parameter 1 to be string

*EDIT * Never mind, mistake must have been on my end.

Last edited by HellRazor; 11-19-2006 at 11:33 PM.
Reply With Quote
  #19  
Old 01-25-2007, 10:10 AM
speedoleague speedoleague is offline
Junior Member
 
Join Date: Feb 2005
Location: UK
Posts: 6
Default Re: unserialize() expects parameter 1 to be string

I have this problem, I can hide it by setting display_errors = Off in php.ini

It's my own server running PHP 5.2 and CMPS v2.2.1 (vB 3.6)

i've deleted the affected lines and it seems to be fine

Last edited by speedoleague; 01-25-2007 at 10:24 AM.
Reply With Quote
  #20  
Old 02-12-2007, 01:03 AM
fatal1980 fatal1980 is offline
Junior Member
 
Join Date: Apr 2006
Posts: 5
Default Re: unserialize() expects parameter 1 to be string

I upgraded from php4.4.4 to PHP 5.2.1-0

I also upgrade from mysql4 to 5.0.32 and am getting this exact error.
I am running vb3.6.4 with vba 2.2.1

Any ideas?

thanks!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning: Wrong parameter count Doug Nelson Bugs From 1.0.1 2 10-02-2006 06:22 PM
page identification without query string RSimpson "How Do I..." Questions 1 06-29-2005 05:55 PM


All times are GMT -4. The time now is 03:04 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.