Forums / Upgrading to 1.5.x / Error trying to Log Into Admin: Call to undefined function

Error trying to Log Into Admin: Call to undefined function

Started by jaxbakers on 4 Jan 2012, 7:45 PM · Views: 2,671

Results 1 to 14 of 14
4 Jan 2012, 7:45 PM
#1
jaxbakers avatar

jaxbakers

New Zenner

Join Date:
Mar 2006
Location:
Jacksonville Fl
Posts:
73
Plugin Contributions:
0

Error trying to Log Into Admin: Call to undefined function

I used winmerge to maintain my text modifications to english.php, etc but had no modifications to function files.
Used zc-install to update my config files and database
After upgrade, I renamed the admin folder to sales_info and updated the config file
Site works fine but cannot log into admin
The Debug file shows: PHP Fatal error: Call to undefined function zen_validate_user_login() in /home1/xxx/xxx/xxx/sales_info/login.php on line 38
I've checked the entire download file and this function does not exist.

Help!

4 Jan 2012, 7:50 PM
#2
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Error trying to Log Into Admin: Call to undefined function

With a 1.5 install you shouldn't have to edit the configure.php files to change the name of the admin directory. At least that's the way it is with a new install, not sure with an upgrade. Perhaps when editing the file you inadvertently created a coding error.

The best way to learn is to try stuff. But, back it up first.

4 Jan 2012, 7:53 PM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Error trying to Log Into Admin: Call to undefined function

The function should be declared in your sales_info/includes/functions/admin_access.php file.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

4 Jan 2012, 7:59 PM
#4
jaxbakers avatar

jaxbakers

New Zenner

Join Date:
Mar 2006
Location:
Jacksonville Fl
Posts:
73
Plugin Contributions:
0

Re: Error trying to Log Into Admin: Call to undefined function

My bad, found that the admin_access file had not been uploaded.

5 Jan 2012, 1:45 AM
#5
synwave avatar

synwave

New Zenner

Join Date:
Jul 2010
Posts:
12
Plugin Contributions:
0

Re: Error trying to Log Into Admin: Call to undefined function

I'm having the exact same problem and the debug file is giving me a similar error:

PHP Fatal error: Call to undefined function zen_validate_user_login() in /home/digicig/public_html/zc_admin/login.php on line 38

I have an "admin_access.php" file in the zc_admin/includes/functions directory.

Am I missing something here?

TIA

5 Jan 2012, 2:01 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Error trying to Log Into Admin: Call to undefined function

Could you check that you have the file:
/yoursecretadmin/includes/auto_loaders/config.core.php

And open it up and search for:
admin_access.php

You should find it 3 times ...

NOTE: you will later want to change the name of your /admin directory as you told everyone your secret admin directory name ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

5 Jan 2012, 8:55 AM
#7
synwave avatar

synwave

New Zenner

Join Date:
Jul 2010
Posts:
12
Plugin Contributions:
0

Re: Error trying to Log Into Admin: Call to undefined function

Thanks Ajeh,

Yes, admin_access.php appears 3 times in /yoursecretadmin/includes/auto_loaders/config.core.php

5 Jan 2012, 9:31 AM
#8
drbyte avatar

drbyte

Sensei

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

Re: Error trying to Log Into Admin: Call to undefined function

Evidently you're missing files from your server.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Jan 2012, 3:30 PM
#9
synwave avatar

synwave

New Zenner

Join Date:
Jul 2010
Posts:
12
Plugin Contributions:
0

Re: Error trying to Log Into Admin: Call to undefined function

Thanks Dr,

I've re uploaded all the files again and still no joy :(

6 Jan 2012, 7:49 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: Error trying to Log Into Admin: Call to undefined function

What does the new error say?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Jan 2012, 8:45 PM
#11
synwave avatar

synwave

New Zenner

Join Date:
Jul 2010
Posts:
12
Plugin Contributions:
0

Re: Error trying to Log Into Admin: Call to undefined function

There is no error message. The animated progress image spins around then the login page just reloads.

However, If I purposely enter a wrong username or password it gives me an error message.

6 Jan 2012, 9:06 PM
#12
drbyte avatar

drbyte

Sensei

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

Re: Error trying to Log Into Admin: Call to undefined function

So, your symptoms are completely different from the original topic of this thread?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Jan 2012, 9:09 PM
#13
synwave avatar

synwave

New Zenner

Join Date:
Jul 2010
Posts:
12
Plugin Contributions:
0

Re: Error trying to Log Into Admin: Call to undefined function

No, my symptoms are the same:

Site works fine but cannot log into admin
The Debug file shows: PHP Fatal error: Call to undefined function zen_validate_user_login() in /home1/xxx/xxx/xxx/sales_info/login.php on line 38

6 Jan 2012, 9:31 PM
#14
drbyte avatar

drbyte

Sensei

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

Re: Error trying to Log Into Admin: Call to undefined function

Okay, then, as said previously, you're missing the file that contains that function, or you've got other files installed that are preventing that file from loading normally.
So, it comes down to:

  • you have a bad FTP program which can't properly upload files
  • you have changed core files, and broken normal operation
  • you have installed addons, or have leftover addon fragments, which are interfering with normal file loading activity

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.