Zen Cart Logo
Forums / Basic Configuration / Lost my Admin Panel

Lost my Admin Panel

Views: 3,608

Results 1 to 19 of 19
30 Dec 2013, 2:20 AM
#1
markgrigsby avatar

markgrigsby

New Zenner

Join Date:
Jun 2008
Posts:
35
Plugin Contributions:
0

Lost my Admin Panel

I was trying to install mods to activate PayPal Pro and evidently made some mistakes. I tried to restore everything using backup copies of files, but in the process have completely lost access to my admin panel. I get a blank screen when I type in the admin URL. I've read through everything I can find on the forums regarding losing the admin panel (including http://www.zen-cart.com/content.php?124), but nothing seems to help. Here is what my Debug file in the cache directory says:

[29-Dec-2013 19:05:10] PHP Warning: Invalid argument supplied for foreach() in /home1/databasename/public_html/includes/templates/template_default/templates/tpl_modules_products_quantity_discounts.php on line 93

When I look at the file /includes/templates/template_default/templates/tpl_modules_products_quantity_discounts.php, here's what I see:

92 <?php 93 foreach($quantityDiscounts as $key=>$quantityDiscount) { 94 ?>
95 <td align="center"><?php echo $quantityDiscount['show_qty'] . '<br />' . $currencies->display_price($quantityDiscount['discounted_price'], zen_get_tax_rate($products_tax_class_id)); ?></td>
96 <?php 97 $disc_cnt++; 98 if ($discount_col_cnt == $disc_cnt /*&& !($key == sizeof($quantityDiscount))*/) { 99 $disc_cnt = 0; 100 ?>
101 </tr><tr>
102 <?php
103 }
104 }

It is entirely possible that this was added by a coder we had many years ago, but this hasn't changed since we first implemented Zen Cart in 2009, so it has worked, but isn't now. The only thing I can imagine is that it has to do with the open brace "{" but I don't know why or what to do about it. I've included lines of code above that include the closing brace in line 104.

Anybody got any ideas?

Thanks in advance!

30 Dec 2013, 5:40 AM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Lost my Admin Panel

comparing your file to my stock code i see your line:
98 if ($discount_col_cnt == $disc_cnt /&& !($key == sizeof($quantityDiscount))/) {

and my line:
98 if ($discount_col_cnt == $disc_cnt && !($key == sizeof($quantityDiscount))) {

30 Dec 2013, 11:00 AM
#3
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,798
Plugin Contributions:
22

Re: Lost my Admin Panel

markgrigsby:

[29-Dec-2013 19:05:10] PHP Warning: Invalid argument supplied for foreach() in /home1/databasename/public_html/includes/templates/template_default/templates/tpl_modules_products_quantity_discounts.php on line 93

PHP Warnings don't cause blank screens, it would show "php fatal error" if that was causing your blank screen. I don't think this is causing your problems.

Are there any other error logs?

30 Dec 2013, 4:54 PM
#4
markgrigsby avatar

markgrigsby

New Zenner

Join Date:
Jun 2008
Posts:
35
Plugin Contributions:
0

Re: Lost my Admin Panel

The only other log I can find that might relate to the admin panel has a whole bunch of cfgkey statements with the last one being

{s:6:"cfgkey";s:32:"MODULE_PAYMENT_PAYFLOW_DEBUGGING";s:8:"cfgvalue";s:3:"Off";}}

One of the things we (me and PayPal technical rep) were doing just before we had this problem was implementing PayFlow Pro. It seems odd that the log file ends with the statement above. Maybe the problem is with PayFlow and I should back those modifications out to try to get the admin panel back.

What do you think?

30 Dec 2013, 8:20 PM
#5
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Lost my Admin Panel

markgrigsby:

The only other log I can find that might relate to the admin panel has a whole bunch of cfgkey statements with the last one being

{s:6:"cfgkey";s:32:"MODULE_PAYMENT_PAYFLOW_DEBUGGING";s:8:"cfgvalue";s:3:"Off";}}

One of the things we (me and PayPal technical rep) were doing just before we had this problem was implementing PayFlow Pro. It seems odd that the log file ends with the statement above. Maybe the problem is with PayFlow and I should back those modifications out to try to get the admin panel back.

What do you think?

You say error log "ends" with something, but the error is what is at the beginning not the end. Error occurs, is logged and then sometimes other things continue to process, albeit unsuccessfully or with warnings. As time moves on more information is added to the end of the log.

Also, would want to check your host's error logs in case something has been logged outside of ZC's control. Also, if you just implemented/activated some new file(s), those files may not have been "successfully" uploaded initially and only now that they are active in the flow they may be causing a problem.

31 Dec 2013, 3:56 AM
#6
markgrigsby avatar

markgrigsby

New Zenner

Join Date:
Jun 2008
Posts:
35
Plugin Contributions:
0

Re: Lost my Admin Panel

  1. I checked the error log from my hosting company and there are no entries for my IP address in that file.
  2. I checked the RAW Access Log file from my hosting company for my IP address and found the following related to my trying to log in to my admin panel:

my.ip.add.ress - - [30/Dec/2013:20:36:49 -0700] "GET /myadminpaneldirectory/login.php HTTP/1.1" 200 4330 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"

and then

my.ip.add.ress - - [30/Dec/2013:20:37:10 -0700] "-" 408 4084 "-" "-"

I'm not sure what either of these mean!

  1. The error log in my cache folder starts off with the following (this is line 1 in the file):

a:732:{i:0;a:2:{s:6:"cfgkey";s:10:"STORE_NAME";s:8:"cfgvalue";s:26:"Discount Embroidery Supply";}i:1;a:2:{s:6:"cfgkey";s:11:"STORE_OWNER";s:8:"cfgvalue";s:22:"Mark and Susan Grigsby";}i:2;a:2:{s:6:"cfgkey";s:13:"STORE_COUNTRY";s:8:"cfgvalue";s:3:"223";}i:3;a:2:{s:6:"cfgkey";s:10:"STORE_ZONE";s:8:"cfgvalue";s:2:"13";}i:4;a:2:{s:6:"cfgkey";s:22:"EXPECTED_PRODUCTS_SORT";s:8:"cfgvalue";s:4:"desc";}i:5;a:2:{s:6:"cfgkey";s:23:"EXPECTED_PRODUCTS_FIELD";s:8:"cfgvalue";s:13:"date_expected";}i:6;a:2:{s:6:"cfgkey";s:29:"USE_DEFAULT_LANGUAGE_CURRENCY";s:8:"cfgvalue";s:5:"false";}i:7;a:2:{s:6:"cfgkey";s:25:"LANGUAGE_DEFAULT_SELECTOR";s:8:"cfgvalue";s:7:"Default";}i:8;a:2:{s:6:"cfgkey";s:27:"SEARCH_ENGINE_FRIENDLY_URLS";s:8:"cfgvalue";s:5:"false";}i:9;a:2:{s:6:"cfgkey";s:12:"DISPLAY_CART";s:8:"cfgvalue";s:5:"false";}i:10;a:2:{s:6:"cfgkey";s:32:"ADVANCED_SEARCH_DEFAULT_OPERATOR";s:8:"cfgvalue";s:3:"and";}i:11;a:2:{s:6:"cfgkey";s:18:"STORE_NAME_ADDRESS";s:8:"cfgvalue";s:173:"Discount Embroidery Supply

The cfgkey statement I posted earlier is on line 15, but line 15 is very, very long. Interestingly enough, there are a bunch of unnumbered blank lines after the statement I posted earlier, but these lines are not numbered. Then line 16 to line 114 are all blank, but the lines are numbered by the code editor.

I'm going to try to backout the PayPal PayFlow code, but I sure don't want to mess up my customers being able to checkout on my website.

Please let me know if you have other ideas!

Thanks!

31 Dec 2013, 7:40 AM
#7
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Lost my Admin Panel

markgrigsby:

  1. I checked the error log from my hosting company and there are no entries for my IP address in that file.
  2. I checked the RAW Access Log file from my hosting company for my IP address and found the following related to my trying to log in to my admin panel:

my.ip.add.ress - - [30/Dec/2013:20:36:49 -0700] "GET /myadminpaneldirectory/login.php HTTP/1.1" 200 4330 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36"

and then

my.ip.add.ress - - [30/Dec/2013:20:37:10 -0700] "-" 408 4084 "-" "-"

I'm not sure what either of these mean!

  1. The error log in my cache folder starts off with the following (this is line 1 in the file):

a:732:{i:0;a:2:{s:6:"cfgkey";s:10:"STORE_NAME";s:8:"cfgvalue";s:26:"Discount Embroidery Supply";}i:1;a:2:{s:6:"cfgkey";s:11:"STORE_OWNER";s:8:"cfgvalue";s:22:"Mark and Susan Grigsby";}i:2;a:2:{s:6:"cfgkey";s:13:"STORE_COUNTRY";s:8:"cfgvalue";s:3:"223";}i:3;a:2:{s:6:"cfgkey";s:10:"STORE_ZONE";s:8:"cfgvalue";s:2:"13";}i:4;a:2:{s:6:"cfgkey";s:22:"EXPECTED_PRODUCTS_SORT";s:8:"cfgvalue";s:4:"desc";}i:5;a:2:{s:6:"cfgkey";s:23:"EXPECTED_PRODUCTS_FIELD";s:8:"cfgvalue";s:13:"date_expected";}i:6;a:2:{s:6:"cfgkey";s:29:"USE_DEFAULT_LANGUAGE_CURRENCY";s:8:"cfgvalue";s:5:"false";}i:7;a:2:{s:6:"cfgkey";s:25:"LANGUAGE_DEFAULT_SELECTOR";s:8:"cfgvalue";s:7:"Default";}i:8;a:2:{s:6:"cfgkey";s:27:"SEARCH_ENGINE_FRIENDLY_URLS";s:8:"cfgvalue";s:5:"false";}i:9;a:2:{s:6:"cfgkey";s:12:"DISPLAY_CART";s:8:"cfgvalue";s:5:"false";}i:10;a:2:{s:6:"cfgkey";s:32:"ADVANCED_SEARCH_DEFAULT_OPERATOR";s:8:"cfgvalue";s:3:"and";}i:11;a:2:{s:6:"cfgkey";s:18:"STORE_NAME_ADDRESS";s:8:"cfgvalue";s:173:"Discount Embroidery Supply

The cfgkey statement I posted earlier is on line 15, but line 15 is very, very long. Interestingly enough, there are a bunch of unnumbered blank lines after the statement I posted earlier, but these lines are not numbered. Then line 16 to line 114 are all blank, but the lines are numbered by the code editor.

I'm going to try to backout the PayPal PayFlow code, but I sure don't want to mess up my customers being able to checkout on my website.

Please let me know if you have other ideas!

Thanks!

The above list of information does not appear to be an "error" log, at least not one made by ZenCart... The first my.ip.address entry indicates with the 200 that that particular load was successful. The 408 error implies that the system timed out... How much data do you have in your cache directory? Mostly wondering how many files? I have seen once before where I had too many files in my cache directory and couldn't complete the login process, and would actually get a timeout warning.

As far as paypal processing, the typically accepted methods of payment accepted through ZenCart are PayPal express and PayPal Standard/IPN (depending on how it is listed/identified). Pick a time when there are few to no clients on the site to do thiis work, otherwise copy things to a local computer/test site to see if/how the problem could be resolved.

BTW, upon looking at the above a little more, the records may be from ZenCart; however, they sure seem ambiguous...

31 Dec 2013, 4:57 PM
#8
markgrigsby avatar

markgrigsby

New Zenner

Join Date:
Jun 2008
Posts:
35
Plugin Contributions:
0

Re: Lost my Admin Panel

My cache directory is purged every night - I have a cron job that deletes everything in the cache directory every day. So, that's not the problem.

For PayPal processing, they actually have a product called PayFlow which replaces Authorize.net, PayPal Express, PayPal Standard/IPN and PayPal Payments Pro. I think Payments Pro requires Express, but right now I'm not sure about anything. I can tell you that we are saving lots by switching from a wholesale processor in combination with Authorize.net to everything being done by PayPal.

Hopefully, things settle down a little and we can do some work over New Years.

If you think of anything else, I'm wide open to suggestions!

31 Dec 2013, 5:07 PM
#9
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Lost my Admin Panel

markgrigsby:

My cache directory is purged every night - I have a cron job that deletes everything in the cache directory every day. So, that's not the problem.

For PayPal processing, they actually have a product called PayFlow which replaces Authorize.net, PayPal Express, PayPal Standard/IPN and PayPal Payments Pro. I think Payments Pro requires Express, but right now I'm not sure about anything. I can tell you that we are saving lots by switching from a wholesale processor in combination with Authorize.net to everything being done by PayPal.

Hopefully, things settle down a little and we can do some work over New Years.

If you think of anything else, I'm wide open to suggestions!

So, without removing anything from the server, I might try to create another admin directory (different named folder and not admin) and put together at least the new/temp admin directory that way. Once created and functional (albeit needing a changed admin/includes/configure.php file) I would then download both directories for comparison and troubleshooting.

6 Jan 2014, 1:29 PM
#10
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Lost my Admin Panel

markgrigsby:

  1. The error log in my cache folder starts off with the following (this is line 1 in the file):

a:732:{i:0;a:2:{s:6:"cfgkey";s:10:"STORE_NAME";s:8:"cfgvalue";s:26:"Discount Embroidery Supply";}i:1;a:2:{s:6:"cfgkey";s:11:"STORE_OWNER";s:8:"cfgvalue";s:22:"Mark and Susan Grigsby";}i:2;a:2:{s:6:"cfgkey";s:13:"STORE_COUNTRY";s:8:"cfgvalue";s:3:"223";}i:3;a:2:{s:6:"cfgkey";s:10:"STORE_ZONE";s:8:"cfgvalue";s:2:"13";}i:4;a:2:

This is NOT an error log file. It is a SESSION DATA file and can/should be ignored.

markgrigsby:

My cache directory is purged every night - I have a cron job that deletes everything in the cache directory every day. So, that's not the problem.

You may not think so, but tell that to the customer that has a cart full of products that suddenly disappear because you've purged the session data while its still in use.
There really should be no need to purge these files, either manually of via a cron job. The PHP processor should automatically purge them after a predetermined amount of time.

markgrigsby:

[29-Dec-2013 19:05:10] PHP Warning: Invalid argument supplied for foreach() in /home1/databasename/public_html/includes/templates/template_default/templates/tpl_modules_products_quantity_discounts.php on line 93

This won't cause an admin blank page problem.

markgrigsby:

One of the things we (me and PayPal technical rep) were doing just before we had this problem was implementing PayFlow Pro. It seems odd that the log file ends with the statement above. Maybe the problem is with PayFlow and I should back those modifications out to try to get the admin panel back.

What do you think?

I think this is on the right track. My suggestion would be to delete the PayFlow php files (from the admin section) and see if the problem goes away.
Also, DO NOT keep a backup of files in any of the folders (or if you do, ensure that you rename them so they don't end with ".php"). Zencart will automatically load all files with the .php extension from some folders, and this will cause problems, including the 'blank screen'.

Cheers
RodG

6 Jan 2014, 5:34 PM
#11
markgrigsby avatar

markgrigsby

New Zenner

Join Date:
Jun 2008
Posts:
35
Plugin Contributions:
0

Re: Lost my Admin Panel

RodG -

Thanks for the input. I have a couple of questions. First, are all of the files associated with the admin panel in the admin directory? If not, what other files are touched by the admin panel?

Next, if I stop PayFlow Pro, won't it stop accepting customer orders causing more confusion for customers?

Then, I do have backup admin panel files in another directory under the catalog. I can move these outside the catalog directory, but want to make sure that doing so will not cause the "Zencart will automatically load all files with the .php extension from some folders, and this will cause problems, including the 'blank screen'." you mentioned. I have had these backup admin files under the catalog directory for years without any problems, so I really don't think this is the issue, but I'm willing to try anything at this point. My admin panel is highly customized by a coder who is no longer available to me. I don't know all of what he's done.

Finally, on purging the cache directory every night - I wrote this cron job to do this because the cache directory kept getting massive - nothing was deleting anything in this directory. I can certainly change the cron job to delete files older than a couple of days, but I've never had a customer complain about losing the contents of their cart overnight.

Thanks again for your help!
Mark

7 Jan 2014, 3:05 AM
#12
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Lost my Admin Panel

markgrigsby:

RodG -

Thanks for the input. I have a couple of questions. First, are all of the files associated with the admin panel in the admin directory? If not, what other files are touched by the admin panel?

Next, if I stop PayFlow Pro, won't it stop accepting customer orders causing more confusion for customers?

Then, I do have backup admin panel files in another directory under the catalog. I can move these outside the catalog directory, but want to make sure that doing so will not cause the "Zencart will automatically load all files with the .php extension from some folders, and this will cause problems, including the 'blank screen'." you mentioned. I have had these backup admin files under the catalog directory for years without any problems, so I really don't think this is the issue, but I'm willing to try anything at this point. My admin panel is highly customized by a coder who is no longer available to me. I don't know all of what he's done.

Finally, on purging the cache directory every night - I wrote this cron job to do this because the cache directory kept getting massive - nothing was deleting anything in this directory. I can certainly change the cron job to delete files older than a couple of days, but I've never had a customer complain about losing the contents of their cart overnight.

Thanks again for your help!
Mark

Hope you don't mind a response from someone other than RodG. At least about some of what you were discussing.

Your admin panel. I'm not sure I can frame the discussion to directly answer the subtle questions you asked, but here's a basic overview of the associated files:

Your admin files live in a location, this location has a connection to the main site through the configure.php file location in ADMIN/includes. You can have many admin directories, each with their own files. When accessing that admin directory, the associated database (which typically will be the same for both admin and store because I can't think of a situation where they would not be) is used to control whatever settings are applicable to that database, but what is seen on screne is a result of the code in that admin area.

There are some files (depending on the setup) that are used in both the admin and storeside, so the question of all files residing only in the admin panel is not necessarily true, but that/those files are accessible because of information in the admin panel side.

So if you are having difficulty with your existing admin panel, you can go about things a few different ways. Obviously if the problem is preventing something related to a sale, then need to get functional quickly. If it's just an annoyance, then suggestion is to fix it as able. In regards to what you have stated (highly suctomized admin panel) well, you need to get back to basic functionality at least, and this should not be something prevented by using a default admin panel. After getting it to work and getting things to keep moving, then can compare the two. Depending on level of understanding of php and ZC code, the problem should present itself in review.

7 Jan 2014, 8:02 AM
#13
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Lost my Admin Panel

markgrigsby:

RodG -

Thanks for the input. I have a couple of questions. First, are all of the files associated with the admin panel in the admin directory?

Most, but not all.

markgrigsby:

If not, what other files are touched by the admin panel?

The admin configure.php file is the best guide to let you know which folders (and therefore files) are not located in the /admin/ folder.

markgrigsby:

Next, if I stop PayFlow Pro, won't it stop accepting customer orders causing more confusion for customers?

Possibly, but the idea is to identify/confirm the source of the error. The suggestion isn't meant to be a cure.

markgrigsby:

Then, I do have backup admin panel files in another directory under the catalog.

Although it isn't something I'd personally recommend, as long as this isn't one of ZenCarts own folders/directories this won't be the cause of your problem(s).

markgrigsby:

I can move these outside the catalog directory,

For security purposes backup files are best stored outside of the /www/, /public_html/ or /htdocs/ folders.

markgrigsby:

but want to make sure that doing so will not cause the "Zencart will automatically load all files with the .php extension from some folders,

The "some folders" I was referring to are the Zencart folders (those defined in the configuration files). These are the ones you should avoid keeping backup files in.

markgrigsby:

and this will cause problems, including the 'blank screen'." you mentioned.

The backup files can only cause a problem if they are are store in certain folders used by ZenCart itself (and only if they have the .php extension).

markgrigsby:

I have had these backup admin files under the catalog directory for years without any problems, so I really don't think this is the issue,

But you haven't been trying to install the payflow mod for years and I have no way of knowing when doing this you found a existing payflow mod in one of the folders, and simply renamed it like "payflow_backup.php" so that you could install a later/newer payflow.php file. I mentioned it because this is quite a common scenario. If it doesn't apply to you then you don't need to worry about about it.
(Note 'payflow.php' is merely an example. The same applies with any .php file)

markgrigsby:

but I'm willing to try anything at this point. My admin panel is highly customized by a coder who is no longer available to me. I don't know all of what he's done.

You don't need to know. All you need to know is that it was working OK until you tried to install this mod, so the 1st thing to do is uninstall it to get the admin side of things working again.

Once you've got it working again THEN you can consider re-installing and trying to identify exactly what is causing the error. I've already given one possibility (a backup file stored in the same folder that you are trying to install the new/updated mod). The problem could also be caused by an incomplete upload of one or more of the files, and even the file being uploaded into the wrong directories. This is why you need to backout of the module installation so that you can start afresh, and hopefully not make the same mistakes (assuming you did make a mistake).

markgrigsby:

Finally, on purging the cache directory every night - I wrote this cron job to do this because the cache directory kept getting massive - nothing was deleting anything in this directory.

All you've really done here is hide the symptoms of a problem. It is far better to fix the problem itself (you may even need to contact/work with your host to take care of this).

markgrigsby:

I can certainly change the cron job to delete files older than a couple of days,

That's still not really fixing the problem.

markgrigsby:

but I've never had a customer complain about losing the contents of their cart overnight.

That doesn't mean it doesn't happen. It just means that they've gone to another store to purchase the items. It isn't your customers responsibility to report problems they find with your site. Only a very small minority of customers will do this.

Cheers
RodG

10 Jan 2014, 6:26 PM
#14
markgrigsby avatar

markgrigsby

New Zenner

Join Date:
Jun 2008
Posts:
35
Plugin Contributions:
0

Re: Lost my Admin Panel

I have copied the Zen Cart installation files to my computer and extracted them. I then ftp'd the files to a new directory on my server and modified the admin/includes/configure.php file so that it points to the right file locations and database, etc. So, this would be a clean installation of my admin panel. When I try to run it, I get the same blank screen I've gotten all along!

Any ideas?

10 Jan 2014, 7:05 PM
#15
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Lost my Admin Panel

markgrigsby:

I have copied the Zen Cart installation files to my computer and extracted them. I then ftp'd the files to a new directory on my server and modified the admin/includes/configure.php file so that it points to the right file locations and database, etc. So, this would be a clean installation of my admin panel. When I try to run it, I get the same blank screen I've gotten all along!

Any ideas?

Well, things that come to mind are either still an issue with the admin's configure file (though there is no indication that it was modified when the troubles began), a problem with some file(s) in your base store, or the far less expected, something wrong in the database. I would quickly rule out a database issue, by uploading the default store to a different location on the server, but have both associated configure.php files point to your existing database and to the two new folder locations. Then see if the new admin panel works. If so, then compare differences of the new folder with your existing one to find what files and lines of code exist and verify that they should be there.

Mind you that would all be done because so far there is no indication of error files/logs found I in your cache directory that are/were created around the time of you trying to access the admin panel.

10 Jan 2014, 7:11 PM
#16
lhungil avatar

lhungil

Totally Zenned

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

Re: Lost my Admin Panel

markgrigsby:

I have copied the Zen Cart installation files to my computer and extracted them. I then ftp'd the files to a new directory on my server and modified the admin/includes/configure.php file so that it points to the right file locations and database, etc. So, this would be a clean installation of my admin panel. When I try to run it, I get the same blank screen I've gotten all along!

Any ideas?
Were the admin files extracted from 1.3.9h (the same version of Zen Cart as loaded on the website)?

Have you disabled the "cron job" you configured to delete files from the "cache" folder?

If you are getting a blank page and no "debug" log was generated, most likely the error is occurring before the Zen Cart logging code can be loaded. Edit your php.ini to log all errors / warnings to a file and make sure display_error is enabled (this will catch errors occurring before Zen Cart's error logging starts). Can you also add the following line to your admin configure.php file:

define('STRICT_ERROR_REPORTING', true);

Afterwards check for new debug logs, check the server error logs, check for any logs created by PHP (before Zen Cart's logging started), and note any warnings / errors reported in your browser. At least one of these should provide further information to help narrow down the cause of your admin generating a "blank" page.

11 Jan 2014, 4:13 AM
#17
markgrigsby avatar

markgrigsby

New Zenner

Join Date:
Jun 2008
Posts:
35
Plugin Contributions:
0

Re: Lost my Admin Panel

I can't thank you guys enough for your help!

I've made sure that I disabled the Cron Job. Incidently, it only deleted DEBUG files every night - nothing else - but I have disabled it for now.

I modified the php.ini file to include the following:

display_errors = On
expose_php = On

display_startup_errors = off
display_errors = off
html_errors = off
log_errors = on
docref_root = 0
docref_ext = 0
error_log = /log/php_error.log

Then, I created a file - public_html/log/php_error.log and made sure it was writable

Finally, in my admin/includes/configure.php file, I added at the end:

define('STRICT_ERROR_REPORTING', true);

I then ran my admin panel and got nothing new - nothing in the error log for my hosted server, nothing in the public_html/log/php_error.log file, nothing new in the cache directory.

I'm going to work on a totally new installation this weekend, but if anyone has ideas in the meantime, please let me know.

Thanks!

11 Jan 2014, 5:07 AM
#18
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Lost my Admin Panel

markgrigsby:

I can't thank you guys enough for your help!

I've made sure that I disabled the Cron Job. Incidently, it only deleted DEBUG files every night - nothing else - but I have disabled it for now.

I modified the php.ini file to include the following:

display_errors = On
expose_php = On

display_startup_errors = off
display_errors = off
html_errors = off
log_errors = on
docref_root = 0
docref_ext = 0
error_log = /log/php_error.log

Then, I created a file - public_html/log/php_error.log and made sure it was writable

Finally, in my admin/includes/configure.php file, I added at the end:

define('STRICT_ERROR_REPORTING', true);

I then ran my admin panel and got nothing new - nothing in the error log for my hosted server, nothing in the public_html/log/php_error.log file, nothing new in the cache directory.

I'm going to work on a totally new installation this weekend, but if anyone has ideas in the meantime, please let me know.

Thanks!

So, looking at the list of switches set, did you intend for the errors to be displayed or not? (The last setting for display_errors is False which makes me think that ultimately would not be shown if there was one.)

Otherwise, hope that the changes made so far in testing have been resolved/returned to default.

If you're going to rebuild are you planning to also upgrade?

13 Jan 2014, 3:45 PM
#19
markgrigsby avatar

markgrigsby

New Zenner

Join Date:
Jun 2008
Posts:
35
Plugin Contributions:
0

Re: Lost my Admin Panel

Quick update - I got a version of my admin panel to work by doing a clean install on another hosted account and ftping the admin directory to my production account. I changed the admin/includes/configure.php file and everything works ok with that plain version. I now have to go through and find out which files in my customized admin panel are different from files in the plain version and update the plain version. I will also look at upgrading, but one problem at a time!

Thanks for your help!
Mark Grigsby