• Resolved rpsellers

    (@rpsellers)


    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 to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    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 and install it on the plugins page -> Upload plugin in zip format, and activate.

    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

    Had the same problem and changed PHP to 7.2. Solved the problem

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    @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

    (@rpsellers)

    Upgrade PHP to 7.2 worked. Thanks

    Thank you for those details. Deep down I knew it couldn’t be that easy.

    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

    (@opajaap)

    .../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.