Topic: WP-SimpleViewer Gallery Id cannot be found

With the WP-simpleViewer plugin (version 2.3.2) I tried to create a Gallery with pictures from Flickr.

After clicking the 'Add SimpleViewer Gallery' button, filling the requested fields and clicking 'Add Gallery' button this results in the next text in the message box:

[

simpleviewer gallery_id="9"
Deprecated: Function split() is deprecated in /home/moamul1x/public_html/wp-content/plugins/wp-simpleviewer/wp-simpleviewer.php on line 450

Deprecated: Function split() is deprecated in /home/moamul1x/public_html/wp-content/plugins/wp-simpleviewer/wp-simpleviewer.php on line 452
]

Viewing the result at the site shows the next message:

WP-SimpleViewer Gallery Id cannot be found.

What am I doing wrong.

Re: WP-SimpleViewer Gallery Id cannot be found

Thank you for reporting.
WP-SimpleViewer uses a PHP method (split) which was deprecated in PHP v5.3.0.
This can be fixed by opening the 'wp-simpleviewer/wp-simpleviewer.php' file in a plain text editor and changing lines 450-452 from:

        $pro_options = split("\n", $custom_values['proOptions']);
        foreach ($pro_options as $pro_option) {
            $attrs = split('=', trim($pro_option));

... to:

        $pro_options = explode("\n", $custom_values['proOptions']);
        foreach ($pro_options as $pro_option) {
            $attrs = explode('=', trim($pro_option));

Then re-upload the file to its original location, overwriting the existing file.
This will be fixed in the next version of WP-SimpleViewer.

Steven Speirs
SimpleViewer Support Team.

Re: WP-SimpleViewer Gallery Id cannot be found

Hello Steven,

It's working. Thanks for your time.

Re: WP-SimpleViewer Gallery Id cannot be found

It seems that the same problem occurs on the juicebox WP-plugin.

Luckily, the same solution also works ;-)

Re: WP-SimpleViewer Gallery Id cannot be found

Yes. WP-Juicebox uses the same code so both the problem and solution will be the same.
This issue will also be fixed in the next version of WP-Juicebox.

Steven Speirs
SimpleViewer Support Team.