Jump to content

users cant login or order


Guest kilobit

Recommended Posts

Guest kilobit

Hello, i upgraded 3.0.0 through 3.0.3 and no problems, except for this one. When you goto your cart to checkout you must login or register, well after filling out the info i get this error

Fatal error: Call to undefined function: treatget() in /home/kilobit/public_html/headheadshop/includes/content/reg.inc.php on line 123

on that line it says:

$redir = base64_decode(treatGet($_GET['redir']));

Any help would be appreciated

Link to comment
Share on other sites

Guest estelle

That treatGet() function was only added in 3.0.4, so it looks like you have an incomplete upgrade to 3.0.4.

Perhaps you should check through the 3.0.3 to 3.0.4 upgrade notes (link) and make sure you haven't missed anything.

Link to comment
Share on other sites

Guest estelle

That is correct. There is no SQL upgrade script for 3.0.4.

Please check if your includes/functions.inc.php contains the following code:

//////////////////////////////////

// treat GET vars stop XSS

////////

function treatGet($text){

	

	$text = preg_replace("/(\<script)(.*?)(script>)/si", "", "$text");

	$text = strip_tags($text);

	$text = str_replace(array("'","\"",">","<","\\"), "", $text);

	return $text;

	

}

If it doesn't, you will need to update your includes/functions.inc.php to the latest version.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...