Post by jty » Sat Nov 01, 2008 10:19 pm

I'm getting the following error when trying to create a new account as a new user
using the account_create from the SVN version of 0.7.9.current

Parse error: syntax error, unexpected ',' in ........ catalog\controller\account_create.php on line 164

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by JNeuhoff » Sun Nov 02, 2008 5:13 am

There is indeed a syntax error.

Try this for line 164:

Code: Select all

    	if ((!$validate->strlen($request->get('email', 'post'), 1, 32) || (!$validate->email($request->get('email', 'post')))) {

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by Qphoria » Sun Nov 02, 2008 5:51 am

JNeuhoff wrote: There is indeed a syntax error.

Try this for line 164:

Code: Select all

if ((!$validate->strlen($request->get('email', 'post'), 1, 32) || (!$validate->email($request->get('email', 'post')))) {
That doesn't appear to be correct either, you are still missing a parenthesis after 32 to close the strlen call
Try this:

Code: Select all

if ((!$validate->strlen($request->get('email', 'post'), 1, 32)) || (!$validate->email($request->get('email', 'post')))) {

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by jty » Sun Nov 02, 2008 6:13 am

OK. Done. Thanks
We'll leave this here for hm2k to fix in the google "current" place

jty
Active Member

Posts

Joined
Sat Aug 30, 2008 8:19 am

Post by hm2k » Tue Nov 04, 2008 10:11 pm


UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK
Who is online

Users browsing this forum: No registered users and 1 guest