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!