sorry for my late reply. was busy so didn’t check for quite a while.
i was using version 2.6.2 then. now using 2.6.3 and the problem still exist
when i mentioned editing my path, i meant the path mentioned in your installation note: “Configure the Gallery2 URL
option to match your Gallery install. Do not include main.php
or the trailing slash.”
My gallery URL is https://www.dragonscouts.com/gallery
just so you know, the error occurs in the dashboard under Design > Widgets section (see screenshot: https://bayimg.com/malfhaabN )
I had thought the function “sanitize” belongs to Gallery instead of wordpress. I did a search for “function sanitize” in all my wordpress (exclude plugins) and gallery2 files and the result is as follows:
gallery2\install\InstallStep.class
function sanitize($string)
gallery2\modules\core\classes\GalleryUtilities.class
function sanitizeInputValues(&$value, $adaptForMagicQuotes=true)
gallery2\modules\search\classes\SearchUtilities.class
function sanitizeSearchCriteria($string)
gallery2\upgrade\UpgradeStep.class
function sanitize($string)
wordpress\wp-includes\bookmark.php
function sanitize_bookmark($bookmark, $context = 'display')
function sanitize_bookmark_field($field, $value, $bookmark_id, $context)
wordpress\wp-includes\category.php
function sanitize_category($category, $context = 'display')
function sanitize_category_field($field, $value, $cat_id, $context)
wordpress\wp-includes\comment.php
function sanitize_comment_cookies()
wordpress\wp-includes\formatting.php
function sanitize_file_name( $name ) { // Like sanitize_title, but with periods
function sanitize_user( $username, $strict = false ) {
function sanitize_title($title, $fallback_title = '') {
function sanitize_title_with_dashes($title) {
function sanitize_sql_orderby( $orderby ){
function sanitize_email($email) {
function sanitize_url( $url, $protocols = null ) {
function sanitize_option($option, $value) { // Remember to call stripslashes!
wordpress\wp-includes\post.php
function sanitize_post($post, $context = 'display') {
function sanitize_post_field($field, $value, $post_id, $context) {
wordpress\wp-includes\taxonomy.php
function sanitize_term($term, $taxonomy, $context = 'display') {
function sanitize_term_field($field, $value, $term_id, $taxonomy, $context) {
it seems that wordpress do not have the sanitize() function. gallery2 have but they are in “install\InstallStep.class” & “upgrade\UpgradeStep.class” files. I don’t think gallery2 use these 2 files except during installtion.
by the way, i have the following activated plugins (fyi, i have deactivated all plugins except this and still got the same error):
AdSense Manager
Akismet
All in One SEO Pack
AskApache Google 404
AskApache Password Protect
cforms
External Gallery2 Image Block Plugin
Google Analyticator
Google XML Sitemaps
Lightbox 2 Plugin
Post Tabs
Subscribe To Comments
Wordpress Automatic Upgrade
WP-EMail
WP-EMail Widget
WP-FLV
WP-PageNavi
WP-Print
WP Security Scan
Yet Another Related Posts Plugin