WordPress.org

Plugin Reviews

Sermon Browser

Upload sermons to your website, where they can be searched, listened to, and downloaded. Easy to use with comprehensive help and tutorials.

1 review
Average Rating
3 out of 5 stars
You are currently viewing the reviews that provided a rating of 3 stars. Click here to see all reviews.
Great - here's the update for PHP 5.5+
By , for WP 4.2.2

With PHP 5.5+ you can't upload any files properly, or do various other things. It's because a function used by the script produces an error...

Here's how to update it - and I'm sorry that this is a direct hack of files.
There are (at least) two files to change, both in this directory:
wp-content/plugins/sermon-browser/sb-includes

The files are: admin.php and ajax.php

You have to replace every occurence of mysql_real_escape_string with esc_sql

So, for example, line 437:
$name = mysql_real_escape_string($_POST['name']);
becomes:
$name = esc_sql($_POST['name']);

Why?
Because the mysql_... function is deprecated and produces an error, stopping the script from working. WordPress provides the esc_sql function, and it is up to date.

Really there should be a whole re-write of the scripts to use $wpdb->prepare, but that's another story.

You must log in to submit a review. You can also log in or register using the form near the top of this page.