Zen Cart Logo
Forums / Upgrading to 1.5.x / Class 'zcPassword' not found in admin/includes/functions/admin_access.php on line 339

Class 'zcPassword' not found in admin/includes/functions/admin_access.php on line 339

Views: 1,404

Results 1 to 8 of 8
6 Jul 2015, 11:08 AM
#1
karinvd avatar

karinvd

New Zenner

Join Date:
Nov 2012
Location:
Utrecht, Nederland
Posts:
43
Plugin Contributions:
0

Class 'zcPassword' not found in admin/includes/functions/admin_access.php on line 339

I'm upgrading from 153 to 154 a store with many plugins. Ik get this error in my logs and after filling my pasword a get a blank page.

[06-Jul-2015 12:29:43 Europe/Amsterdam] PHP Fatal error: Class 'zcPassword' not found in /admin/includes/functions/admin_access.php on line 339.
When i upload the admin_access.php from v153 it is working fine.

line 339 starts with:

   $token = zcPassword::getInstance(PHP_VERSION)->updateNotLoggedInAdminPassword($admin_pass, $admin_name);

    }

    // BEGIN 2-factor authentication

    if ($error == FALSE && defined('ZC_ADMIN_TWO_FACTOR_AUTHENTICATION_SERVICE') && ZC_ADMIN_TWO_FACTOR_AUTHENTICATION_SERVICE != '')

    {

      if (function_exists(ZC_ADMIN_TWO_FACTOR_AUTHENTICATION_SERVICE))

      {

        $response = zen_call_function(ZC_ADMIN_TWO_FACTOR_AUTHENTICATION_SERVICE, array($result['admin_id'], $result['admin_email'], $result['admin_name']));

        if ($response !== TRUE)

        {

          $error = TRUE;

          $message = ERROR_WRONG_LOGIN;

          zen_record_admin_activity('TFA Failure - Two-factor authentication failed', 'warning');

        } elseif($response === TRUE) {

          zen_record_admin_activity('TFA Passed - Two-factor authentication passed', 'warning');

        }

      }

    }

  }

In which files do i have to look for the mistake? I probably made a mistake merging files, but not shore which one. I did not make any changes to the core admins_acces.php file.

MySQL 5.6.25 and PHP versie: 5.5.25 (Zend versie: 2.5.0)

6 Jul 2015, 12:05 PM
#2
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Class 'zcPassword' not found in admin/includes/functions/admin_access.php on line 339

You are probably missing this file in the front end "includes/classes/class.zcPassword.php".

6 Jul 2015, 12:59 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Class 'zcPassword' not found in admin/includes/functions/admin_access.php on line 339

Or you haven't updated the /admin/includes/auto_loaders/ files properly.

7 Jul 2015, 6:29 AM
#4
karinvd avatar

karinvd

New Zenner

Join Date:
Nov 2012
Location:
Utrecht, Nederland
Posts:
43
Plugin Contributions:
0

Re: Class 'zcPassword' not found in admin/includes/functions/admin_access.php on line 339

Design75:

You are probably missing this file in the front end "includes/classes/class.zcPassword.php".

thank you for you're answer @Design75. I checked but i do have includes/includes/classes. thats not it

7 Jul 2015, 6:33 AM
#5
lruskauff avatar

lruskauff

Totally Zenned

Join Date:
Sep 2008
Location:
WA
Posts:
559
Plugin Contributions:
0

Re: Class 'zcPassword' not found in admin/includes/functions/admin_access.php on line 339

Try reloading the files Dr.Byte suggested,

Li

7 Jul 2015, 6:34 AM
#6
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Class 'zcPassword' not found in admin/includes/functions/admin_access.php on line 339

You definitely missed something :smile:. I sugest you check your 1.5.4 file-set again against your shop files. The easiest way to do that is to use tools like Beyond Compare or WinMerge.

7 Jul 2015, 6:36 AM
#7
karinvd avatar

karinvd

New Zenner

Join Date:
Nov 2012
Location:
Utrecht, Nederland
Posts:
43
Plugin Contributions:
0

Re: Class 'zcPassword' not found in admin/includes/functions/admin_access.php on line 339

DrByte:

Or you haven't updated the /admin/includes/auto_loaders/ files properly.

Thats it!! Thank you! @DrByte

7 Jul 2015, 4:54 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Class 'zcPassword' not found in admin/includes/functions/admin_access.php on line 339

Glad that solved it.

Now, go back and make sure ALL your files have been updated. If you missed that one, what's to say you didn't miss others too?