• djberrysc

    (@djberrysc)


    We upgraded our website to a new theme and version of WordPress, we’re now running 4.2.2.

    The webpage listing the sermons works fine and you can play a sermon from that page. But if you click a link to a sermon you get a new page with this error;

    Parse error: syntax error, unexpected $end in /homepages/13/d106281348/htdocs/smithton/wp-content/plugins/sermon-browser/sermon.php(510) : eval()’d code on line 10

    Looking at Sermon.php, lines 509-510 are;

    if ($sermon)
       eval('?>'.sb_get_option('single_output'));

    The function sb_get_option() has this at line 10;

    $sermonbrowser_options = unserialize(base64_decode($options));

    which I assume is what is failing.
    Any thoughts?

    You can take a look at;
    http://www.smithtonchurch.com/resources/sermons/audio/

    Thanks,

    Doug

    https://ww.wp.xz.cn/plugins/sermon-browser/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Extrafino

    (@extrafino)

    I don’t know if this will fix it, but you could try

    $options = str_replace(' ','+',$options);
    $sermonbrowser_options = unserialize(base64_decode($options));

    I do not have this problem, so I can’t test it myself

    Thread Starter djberrysc

    (@djberrysc)

    Problem fixed.
    It was a missing forward slash in the [files_loop] closing tag in the sermons -> template – sermons page markup. Here is how it was:

    Before:
    <div class="files">[files_loop][file_with_download][files_loop]</div>

    After:
    <div class="files">[files_loop][file_with_download][/files_loop]</div>

    The closing [files_loop] was not closing the statement because it was missing its / (forward slash).

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

The topic ‘Sermon browser not working’ is closed to new replies.