Forums / General Questions / Admin Not WOrking ???

Admin Not WOrking ???

Started by konzo on 4 Nov 2013, 2:52 AM · Views: 2,908

Results 21 to 31 of 31
3 Dec 2013, 1:33 PM
#21
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Admin Not WOrking ???

lat9:

The function zen_validate_password exists (as a common store-front/admin file) in /includes/functions/password_funcs.php. That file, in the Zen Cart v1.5.1 admin, is loaded by /admin/init_includes/init_errors.php, which is loaded by the admin auto_loader config.core.php at checkpoint 140.

I would check that the following files exist and are unmodified from the v1.5.1 distribution

  1. /includes/functions/password_funcs.php
  1. /admin/auto_loaders/config.core.php
  1. /admin/init_includes/init_errors.php

Those two directories don't exist :
/admin/auto_loaders/config.core.php
/admin/init_includes/init_errors.php
The first one is already there !

3 Dec 2013, 1:46 PM
#22
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,134
Plugin Contributions:
56

Re: Admin Not WOrking ???

Oops! Should have been /admin/includes/auto_loaders/config.core.php and /admin/includes/init_includes/init_errors.php!

3 Dec 2013, 1:58 PM
#23
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Admin Not WOrking ???

lat9:

Oops! Should have been /admin/includes/auto_loaders/config.core.php and /admin/includes/init_includes/init_errors.php!

Yah, They are all in, So I think that was not the issue !

3 Dec 2013, 7:13 PM
#24
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Admin Not WOrking ???

Attachment 13451
Is that normal ?

3 Dec 2013, 7:15 PM
#25
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Admin Not WOrking ???

konzo:

You were on the money there. Fixed :-)
How did you fix it ? please post it here!

5 Dec 2013, 6:34 PM
#26
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Admin Not WOrking ???

Guys, Is there any solution to fix the layout of the admin's homepage layout ?

5 Dec 2013, 7:43 PM
#27
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Admin Not WOrking ???

alhakeem2001:

Guys, Is there any solution to fix the layout of the admin's homepage layout ?

My thought is that the css file on the admin side is not loading properly (not present, corrupt, misnamed, prevented by htaccess for the admin directory, etc...)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

8 Dec 2013, 2:47 PM
#28
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Admin Not WOrking ???

OK, I tried to fix the problem with the admin layout but it ends that have to re-install my zencart once again and now I'm having the same paroblem again with the blank page after login with the temporary password ! and this is the error's log that I get :
PHP Fatal error: Call to undefined function zen_validate_password() in /home1/arabbro1/public_html/newadmin/includes/functions/admin_access.php on line 297 **
and thats a copy of the code from the admin_access.php from 297-300 lines :
**
290 // reset the reset_token field to blank, since token has expired
291 $sql = "update " . TABLE_ADMIN . " set reset_token = '' where admin_name = :adminname: ";
292 $sql = $db->bindVars($sql, ':adminname:', $admin_name, 'string');
293 $db->Execute($sql);
294 $expired = false;
295 } else
296 {
297 if (! zen_validate_password($admin_pass, $token))
298 {
299 $error = true;
300 $message = ERROR_WRONG_LOGIN;

8 Dec 2013, 11:41 PM
#29
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Re: Admin Not WOrking ???

Are you installing using zc_install or a script from a hosting provider? If you are downloading from here and using zc_install... What tool are you using to upload the files? Was this an upgrade?

From what you are describing not all files may be properly uploaded (or mixed versions present)... Another possibility is old config files (not a clean install)... Just a couple things you may want to check...

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

9 Dec 2013, 9:51 AM
#30
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Admin Not WOrking ???

lhungil:

Are you installing using zc_install or a script from a hosting provider? No, I downloaded the whole script from zencart.com .. If you are downloading from here and using zc_install... What tool are you using to upload the files?** FileZilla** .. Was this an upgrade? NO
From what you are describing not all files may be properly uploaded (or mixed versions present)... Another possibility is old config files (not a clean install) It's true, every time I get a blank page I start a new install over the old files ( not a fresh install ) ... Just a couple things you may want to check... So what do you suggest now ?

9 Dec 2013, 4:06 PM
#31
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,816
Plugin Contributions:
4

Re: Admin Not WOrking ???

alhakeem2001:

So what do you suggest now?
Try a clean installation in a new folder and new database. This will ensure no conflicts or incorrect settings from previous installations are present. One can always move Zen Cart to a new folder in the future (following the instructions to change the folder where Zen Cart is installed) if needed.

When running "zc_install", if existing "configure.php" files are present the installer attempts to use the values from them (and does not regenerate new settings). So when re-installing if anything is not correct in either "configure.php" file, they will not be "fixed" automatically. I'd guess the assumption is those files will be present only when doing an upgrade AND all the settings in the file will be correct (as the upgrade / re-install will be of an existing and working store).

The screen shots you have posted are typical if a path is not configured correctly in one of those files (or some files did not upload correctly). One route would be to talk to your hosting provider about what the correct paths are... And fix them in the file... Or one could try just removing those two files and re-running zc_install... But probably safer and faster to just do a clean upload and install (with a clean database) and let the installer re-detect the paths.

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker