Page 1 of 1

[SOLVED] FEU 1.24.1 User Import function broken?

Posted: Sat Nov 15, 2014 6:36 pm
by quethiock
Hi

Been banging my head against a brick wall, trying to import some users into FEU, thinking I weas getting the format of the contents of the CSV file wrong when I checked my cPanel Error log:
[Sat Nov 15 17:16:26 2014] [error] [client 80.2.60.215] PHP Fatal error: Call to undefined function is_emal() in modules/FrontEndUsers/action.admin_doimport.php on line 258, referer: /admin/moduleinterface.php
and loads more identical errors like it!

This was a fresh install only a few days ago, :

CMS Version 1.11.11
FrontEndUsers 1.24.1

I had to use FEU 1.24.1 becasue the latest version (FEU 1.24.2) requires PHP5.4.3+ and my ISP is still at PHP 5.3.29 :(

Anyway, I looked at the code in modules/FrontEndUsers/action.admin_doimport.php and in particular line 258
257 case $this::FIELDTYPE_EMAIL:
258 if( !is_emal($val) ) {
259 throw new Exception($this->Lang('error_importfieldvalue',$reln['name']));
260 }
261 break;
My question is should that call currently to is_emal($val) be a typo for is_email($val) ?

I tried editing action.admin_doimport.php to manually amend is_emal to is_email to see if that was the problem but it looks like my ISP has the permissions pretty tightly tied up as I can't save that file after editing (I had to use their automated installer to install CMSMS, couldn't install it myself directly).

Can anybody confirm if they have had problems importing FEU users or that the module call to is_emal($val) is a typo?

Many thanks

Mike Lyne
UK

Re: FEU 1.24.1 User Import function broken?

Posted: Sat Nov 15, 2014 8:07 pm
by calguy1000
My question is should that call currently to is_emal($val) be a typo for is_email($val) ?
Yeah it's a simple typo. I will fix it in the next version.

Re:[SOLVED] FEU 1.24.1 User Import function broken?

Posted: Sat Nov 15, 2014 8:58 pm
by quethiock
Many thanks calguy1000 ;D - I am delighted that you have confirmed that I had spotted a typo as the wall I was banging my head against was starting to crumble and my in depth knowledge of PHP/Smarty etc is limited.

Regards and thanks again.

Mike Lyne
UK