Forums / Customization from the Admin / Admin page shows blank

Admin page shows blank

Views: 644

Results 1 to 3 of 3
8 Jan 2012, 1:50 PM
#1
asian avatar

asian

New Zenner

Join Date:
Sep 2010
Posts:
17
Plugin Contributions:
0

Admin page shows blank

Hello

We have removed some module and after that it shows blank admin screen ...i checked recent log file

it shows following code can some one help us to get rectify the same we tried reinstalling the zen cart before same issues happened but due to other modules and configuration we cannot reinstall the same its tedious process i can say so by looking in to error if some one can help that would be gr8

here is the error

[07-Jan-2012 03:48:30] PHP Fatal error: Cannot redeclare bmz_split_version_string() (previously declared in /home/vivasupp/public_html/renamedadmin/includes/functions/extra_functions/functions_bmz_update_old.php:13) in /home/vivasupp/public_html/renamedadmin/includes/functions/extra_functions/functions_bmz_update.php on line 36

8 Jan 2012, 2:26 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Admin page shows blank

That extra_functions folder loads ALL the files which end in .php
So, since you renamed a file and kept the .php extension on it, the system is loading the old one first, and then trying to load the new one, which duplicates the same stuff.

/home/vivasupp/public_html/renamedadmin/includes/functions/extra_functions/functions_bmz_update_old.php
/home/vivasupp/public_html/renamedadmin/includes/functions/extra_functions/functions_bmz_update.php

Rule of thumb: whenever you make a "backup" copy of a file by renaming it, DO NOT keep the ".php" extension. Instead, use .bak or .php1 or something else. Or delete the file altogether after copying the backup to your own PC for safekeeping.

.
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.

8 Jan 2012, 2:28 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: Admin page shows blank

Also, in the future, please DO NOT start new threads on the SAME topic in multiple places, such as this.
ie: http://www.zen-cart.com/forum/showthread.php?t=190751

It's akin to spamming the forum, and is frowned upon, and makes more work for volunteers who answer questions.

.
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.