Jump to content

Can't see the Security Code, need help~~


Guest jun266

Recommended Posts

Guest jun266

my server GD information:

GD Support enabled

GD Version bundled (2.0.34 compatible)

FreeType Support enabled

FreeType Linkage with freetype

FreeType Version 2.1.9

T1Lib Support enabled

GIF Read Support enabled

GIF Create Support enabled

JPG Support enabled

PNG Support enabled

WBMP Support enabled

XBM Support enabled

why I can't see the Security Code at registration, tell a friend and checkout page??

I try everything I can do, but still not working. Please help~~~

Thank you....

Link to comment
Share on other sites

Guest Brivtech

In your admin general settings, look for this under Styles & Misc.:

Enable Script/Bot Flood Control?

Forces users to enter a code on registration, tell a friend etc to prevent bot's from spamming the store.

... and set it to yes, then click Update Settings. Should work now.

Link to comment
Share on other sites

  • 2 weeks later...
Guest Tom Sas

Hi!

I have exactly the same problem. Did anyone fix it ?

[i am running CC 4.2.2 on Windows server, IIS7, Mysql, GD enabled, of course]

Thanks

Link to comment
Share on other sites

Guest hennaboy

Empty your store cache

Delete cookies and internet browser cache on your pc

Then have another look.

It is working.... i had the same problem when i upgraded to 4.2.2 windows 2003, IIS 6

thought it was broken but I deleted everything and reloaded and the security image was there.

Link to comment
Share on other sites

Guest jun266

Empty your store cache

Delete cookies and internet browser cache on your pc

Then have another look.

It is working.... i had the same problem when i upgraded to 4.2.2 windows 2003, IIS 6

thought it was broken but I deleted everything and reloaded and the security image was there.

I try clean everything and reloaded but not working.

https://www.get168.com/index.php?_g=co&...hp%3F_a%3Dlogin

this is my registration page, can you see the security image?

Thank you

Link to comment
Share on other sites

Guest Brivtech

He did, it was in the post above that.

Good news: There's an issue with the path...

I had a look at the source code, and I found something wrong with the URL that's being generated...

It's generating $amp;'s when it shouldn't:

It's showing:

...?_g=cs&...

instead of:

...?_g=cs&...

When I edit this out it works (within the security parameters of the system).

So, the next step now is to find out why the URLs are being generated like this, and how to fix it.

Why is this good news when it's not working? Because knowing what the problem is makes it far easier to fix!!!! Looking into it right now. Will report back shortly with further information good or bad.

EDIT:

Okay, the URL is generated in includes/functions.inc.php, in this block of code (Line 715 on CC 4.2.2):

## Get spambot image

function imgSpambot($encodedSpamCode,$path = '') {	

	global $config;

	

	if ($config['gdversion']>0) {

		$imgSpambot = "<img src=\"index.php?_g=cs&amp;_p=".urlencode("images".CC_DS."random".CC_DS."verifyGD.inc.php")."&amp;esc=".$encodedSpamCode."\" alt=\"\" title=\"\" />";

	} else {

		$imgSpambot = "";

		for ($i=1;$i<=5;$i++) {

			$imgSpambot .= "<img src=\"index.php?_g=cs&amp;_p=".urlencode("images".CC_DS."random".CC_DS."verifySTD.inc.php")."&amp;esc=".$encodedSpamCode."&amp;n=".$i."\" alt=\"\" title=\"\" />\r\n";

		}

	}

	return $imgSpambot;

}




Perhaps this has something to do with your server configuration, with the way it's not converting the &amp;'s into & - Quick fix... In the above code, replace



&amp;



with



&



So, the final code wil read:




## Get spambot image

function imgSpambot($encodedSpamCode,$path = '') {	

	global $config;

	

	if ($config['gdversion']>0) {

		$imgSpambot = "<img src=\"index.php?_g=cs&_p=".urlencode("images".CC_DS."random".CC_DS."verifyGD.inc.php")."&esc=".$encodedSpamCode."\" alt=\"\" title=\"\" />";

	} else {

		$imgSpambot = "";

		for ($i=1;$i<=5;$i++) {

			$imgSpambot .= "<img src=\"index.php?_g=cs&_p=".urlencode("images".CC_DS."random".CC_DS."verifySTD.inc.php")."&esc=".$encodedSpamCode."&n=".$i."\" alt=\"\" title=\"\" />\r\n";

		}

	}

	return $imgSpambot;

}

... and see if that fixes it.

I think this is (once again) a windows server issue. I've posting this as a bug report so it can be addressed in the next release - Failing that, there is at least a solution for any one else experiencing such a problem. I don't know enough about Windows servers to know why this is a problem in some instances and not in others - I keep clear of Windows servers and prefer mostly-trouble-free webserver-ing with Linux.

Link to comment
Share on other sites

  • 1 month later...
Guest dtmswebmaster

I am having the same problems as described above. I have deleted my cookies, temp internet files, and double checked my /includes/functions.inc.php file. I still can not seem to get the Security Image to display.

I'm currently running CC 4.2.2 on an Apache Server with a Windows XP O/S.

My GD2 Properties:

GD Support enabled

GD Version bundled (2.0.34 compatible)

FreeType Support enabled

FreeType Linkage with freetype

FreeType Version 2.1.9

T1Lib Support enabled

GIF Read Support enabled

GIF Create Support enabled

JPG Support enabled

PNG Support enabled

WBMP Support enabled

XBM Support enabled

You can test this at https://www.dtmsunlimited.com/store/index.p...amp;productId=2

One thing I did notice... this is what it has for the image link: https://www.dtmsunlimited.com/store/index.p...m0ojctdae5b1pa3

In the /functions.inc.php file... CC.DS is the one (I believe anyway) is what is generating the %5C in the URL. I'm not sure how to fix that though.

Any additional help would be greatly appreciated.

Link to comment
Share on other sites

Guest dtmswebmaster

I have noted this in the bug tracker system, just awaiting a response.

Update: I've also tried it with SSL turn on and off, neither are showing the security code image.

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...