WordPress.org

Ready to get started?Download WordPress

Forums

DB Cache Reloaded Fix
Quick Fix PHP Warning: Parameter 1 to wpdb::escape_by_ref() expected to be a ref (2 posts)

  1. dima_1st
    Member
    Posted 1 year ago #

    db-module-wrapper.php
    
    	function __call( $name, $args ) {
            if (strcmp($name, "escape_by_ref") == 0) {
    
                if ((is_array($args)) && (count($args)==1)) {
                    return call_user_func_array( array( $this->dbcr_wpdb, $name ),  array(&$args[0]));
                }
    
                return call_user_func_array( array( $this->dbcr_wpdb, $name ), $args );
            }
    		return call_user_func_array( array( $this->dbcr_wpdb, $name ), $args );
    	}
    }

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your posted code may now have been permanently damaged/corrupted by the forum's parser.]

    http://wordpress.org/extend/plugins/db-cache-reloaded-fix/

  2. duomo
    Member
    Posted 1 year ago #

    Hi

    With this solution, there is a problem with the display of feed..

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.