Title: Unserialize warning
Last modified: October 6, 2018

---

# Unserialize warning

 *  Resolved [rpsellers](https://wordpress.org/support/users/rpsellers/)
 * (@rpsellers)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/unserialize-warning/)
 * After the latest update, I’m getting the following error message on all pages.
   Is there a fix for this?
 * Warning: unserialize() expects exactly 1 parameter, 2 given in /home/handyr5/
   public_html/rodgersellers.com/RPS/wp-content/plugins/wp-photo-album-plus/wppa-
   wrappers.php on line 140
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/handyr5/public_html/rodgersellers.com/RPS/wp-content/plugins/wp-photo-
   album-plus/wppa-wrappers.php:140) in /home/handyr5/public_html/rodgersellers.
   com/RPS/wp-admin/includes/misc.php on line 1126
 * Thanks.
 * R. Sellers
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Funserialize-warning%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/unserialize-warning/#post-10756995)
 * At this moment the fix is: update php to 7.0 or later.
 * To go back to the previous version (6.9.15):
 * De-activate and delete the plugin. You will loose no data.
    Download [the previous version](https://downloads.wordpress.org/plugin/wp-photo-album-plus.6.9.15.zip)
   and install it on the plugins page -> Upload plugin in zip format, and activate.
 *  [ascensionadmin](https://wordpress.org/support/users/ascensionadmin/)
 * (@ascensionadmin)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/unserialize-warning/#post-10757282)
 * I commented out the if-else statement on lines 136 – 141 so that the wppa_unserializewppa_unserialize
   function in wppa-wrappers.php can still be called (obviously does nothing) without
   faulting. I know this avoids the intended fix to PHP unserialize, but I expect
   that vulnerability still exists in v6.9.15, which is why these wrappers were 
   written in v6.9.16.009. This way you get benefit of the other improvements of
   v6.9.16.009 and avoid the unserialize issue until a more robust improvement can
   be made. What am I missing?
 * Thanks; Ron
 *  [pfm](https://wordpress.org/support/users/pfm/)
 * (@pfm)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/unserialize-warning/#post-10757507)
 * Had the same problem and changed PHP to 7.2. Solved the problem
 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/unserialize-warning/#post-10758677)
 * [@ascensionadmin](https://wordpress.org/support/users/ascensionadmin/)
    Disabling
   wppa_unserialize() is not a good idea, because:
 * – Custom data in albums and photos will no longer be displayed
    – The ‘rootsearch’
   and ‘subsearch’ options in searching will not work – The viewcounters will be
   incremented at every view instead of only one in an hour for the same visitor.–
   Maybe more abnormal behaviour…
 *  Thread Starter [rpsellers](https://wordpress.org/support/users/rpsellers/)
 * (@rpsellers)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/unserialize-warning/#post-10760208)
 * Upgrade PHP to 7.2 worked. Thanks
 *  [ascensionadmin](https://wordpress.org/support/users/ascensionadmin/)
 * (@ascensionadmin)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/unserialize-warning/#post-10778170)
 * Thank you for those details. Deep down I knew it couldn’t be that easy.
 *  [support67](https://wordpress.org/support/users/support67/)
 * (@support67)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/unserialize-warning/#post-11353920)
 * Hi,
 * Can you pls tell me how to remove this and the other warnings on the pages of
   my website? Thank you.
 * Warning: unserialize() expects parameter 1 to be string, array given in /homepages/
   21/d738722850/htdocs/wp-content/themes/Magazine/gavern/filters.php on line 151
   
   class=” page-fullwidth post-3886 page type-page status-publish has-post-thumbnail
   hentry no-sidebar”>
 *  Plugin Author [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * (@opajaap)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/unserialize-warning/#post-11356459)
 * `.../wp-content/themes/Magazine/gavern/filters.php on line 151` tells you that
   the error occurs in a theme file. Report this to the builder of theme Magazine.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Unserialize warning’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-photo-album-plus.svg)
 * [WP Photo Album Plus](https://wordpress.org/plugins/wp-photo-album-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-photo-album-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-photo-album-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-photo-album-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-photo-album-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-photo-album-plus/reviews/)

 * 8 replies
 * 5 participants
 * Last reply from: [Jacob N. Breetvelt](https://wordpress.org/support/users/opajaap/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/unserialize-warning/#post-11356459)
 * Status: resolved