1
tonymac
Wordpress module problem
  • 2005/8/7 2:53

  • tonymac

  • Just popping in

  • Posts: 5

  • Since: 2004/11/4


I am getting this error when I try to edit a post, or create a post through WordPress Module (on XOOPS 2.2 hotfixed).

Quote:
"You cannot update Database contents.(HTTP_REFERER is not valid site.)"


Searching all of the Wordpress files, I have narrowed this error down to the second part of the wp_refcheck function (below) in wordpress\wp-includes\functions.php. Unfortunately, I do not know what this function is doing, and why this is failing. Can any one give me a hint?


function wp_refcheck($offset ""$redirect true) {
    global 
$siteurl;
    
$ref = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : $_ENV['HTTP_REFERER'];
    if (
$ref == '') {
        if (
$redirect) {
            if (
defined('XOOPS_URL')) { //XOOPS Module mode
                
redirect_header($siteurl1"You cannot update Database contents.(Could not detect HTTP_REFERER)");
            } else {
                
header("Location: $siteurl");
            }
        }
        return 
false;
    }
    if (
strpos($ref$siteurl.$offset) !== ) {
        if (
$redirect) {
            if (
defined('XOOPS_URL')) { //XOOPS Module mode
                
redirect_header($siteurl1"You cannot update Database contents.(HTTP_REFERER is not valid site.)");
            } else {
                
header("Location: $siteurl");
            }
        }
        return 
false;
    }
    return 
true;
}

Login

Who's Online

151 user(s) are online (84 user(s) are browsing Support Forums)


Members: 0


Guests: 151


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits