If this is your first visit, check our documentation. To post, register or login.
Forums / Upgrading Your Zen Cart / Upgrading from 1.3.x to 1.3.9 / upgraded to 1.3.9 admin is blank page and...

upgraded to 1.3.9 admin is blank page and...

Locked

Started by darkangel on 22 Apr 2010, 6:24 AM · Views: 3,789

Results 1 to 20 of 25
This thread is locked. New replies are disabled.
22 Apr 2010, 6:24 AM
#1
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Post #1 by darkangel

I did as instructed:

made duplicate store with files from live store
uploaded files from zip
ran zc_install

now the installer wanted to know if I wanted to change the db prefix...mine is already zen_ so i deleted that from the selection to leave as is and it claimed to go through but could not do one file (sorry I forgot to write down the file name)

the store part works to go see, have not gone further than first couple of pages because I wanted to check something in admin.

admin is a white blank page, ran error bug tool and this is what it says:

[22-Apr-2010 01:04:28] PHP Fatal error: Cannot redeclare zen_get_products_manufacturers_name() in /home/xxxxx/public_html/xxxx/admin/includes/functions/extra_functions/my_xtra_functions.php on line 7

there is no such file in there and have no idea what to do since it is not in the zip either

part 2 of question:

found in zip / images/3ds

what are these for since they are not in the 1.3.8 version there are a few other files that i found also but I might have missed reading about them in the docs too...sorry

can you please let me know what to do

22 Apr 2010, 6:29 AM
#2
drbyte avatar

drbyte

Sensei

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

Post #2 by drbyte

DarkAngel:

ran error bug tool(Note: it's already built-in to v1.3.9)

DarkAngel:

[22-Apr-2010 01:04:28] PHP Fatal error: Cannot redeclare zen_get_products_manufacturers_name() in /home/xxxxx/public_html/xxxx/admin/includes/functions/extra_functions/my_xtra_functions.php on line 7That's where your problem is.
DarkAngel:

there is no such file in thereWell ... you must.

DarkAngel:

since it is not in the zip eitherCorrect. That file is not part of Zen Cart. It's one of your addons or customizations.

DarkAngel:

found in zip / images/3ds

what are these for since they are not in the 1.3.8 version there are a few other files that i found also but I might have missed reading about them in the docs too...
Those are listed in the docs. You can view the docs in your /docs/ folder. Just point your browser to the /docs/ folder and you can read all the supplied documentation.

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

22 Apr 2010, 6:32 AM
#3
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Post #3 by darkangel

NOTE

there is that file in there. I created it here is the php it contains in order to show the vendors names in the product listing.

<?php // extra functions /* * Return a product's manufacturer's name, from ID * TABLES: products, manufacturers */ function zen_get_products_manufacturers_name($product_id) { global $db; $product_query = "select m.manufacturers_name from " . TABLE_PRODUCTS . " p, " . TABLE_MANUFACTURERS . " m where p.products_id = '" . (int)$product_id . "' and p.manufacturers_id = m.manufacturers_id"; $product =$db->Execute($product_query); return ($product->RecordCount() > 0) ? $product->fields['manufacturers_name'] : ""; } ?>

once i removed the file I could access admin.

could someone tell me what is the problem and how to fix it so I may once more see the manufacturers listed again in the category/product listing?

22 Apr 2010, 6:35 AM
#4
drbyte avatar

drbyte

Sensei

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

Post #4 by drbyte

The error message tells you not only the filename but also the problem: You're re-declaring a function that's already been declared. So ... you've got a function named zen_get_products_manufacturers_name() in that file that's already declared in another PHP file already loaded by the system.

So, either you've doubled up your own stuff or you're repeating stuff that's already in the original Zen Cart files.

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

22 Apr 2010, 9:18 PM
#5
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Post #5 by darkangel

DrByte:

The error message tells you not only the filename but also the problem: You're re-declaring a function that's already been declared. So ... you've got a function named zen_get_products_manufacturers_name() in that file that's already declared in another PHP file already loaded by the system.

So, either you've doubled up your own stuff or you're repeating stuff that's already in the original Zen Cart files.

Thanks DrB, I was given this formula by another mod here so that I could see in admin --- right under the product name who was the vendor. no other columns or things are affected. Since it does not want to behave with the formula I removed the file...was able to get into admin and just changed the way the model numbers read for each item by abbreviating the vendor name there...

So far am happy to say that the test run is doing fine and dandy...so will implement it into live store as soon as I get gutzy enough...lol:ohmy:

22 Apr 2010, 9:55 PM
#6
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Post #6 by darkangel

DrB:

I totally forgot to ask...that error bugging tool that got implemented is like the add-on we got before, right?

It (the addon) had said to remove it when done, is it alright now to leave it installed?

I also found out that along with creating my_functions.php file I had also had to do an edit to another file...that done it now shows the manufacturer under the products name again.

you all are terrific, thanks for a wonderful store software product and above all the excellent tech help here by both the people that made it and the volunteer members.

22 Apr 2010, 10:04 PM
#7
drbyte avatar

drbyte

Sensei

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

Post #7 by drbyte

DarkAngel:

I totally forgot to ask...that error bugging tool that got implemented is like the add-on we got before, right?

It (the addon) had said to remove it when done, is it alright now to leave it installed?Yes. If you're finding it's generating a lot of debug logs, then you need to:
a) fix the errors it's reporting
and
b) delete the debug log files it's generated

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

23 Apr 2010, 12:30 AM
#8
mzimmers avatar

mzimmers

Zen Follower

Join Date:
May 2008
Posts:
453
Plugin Contributions:
0

Post #8 by mzimmers

I'm having a similar problem: my shop is (mostly) up and working, but I get nothing -- literally, NOTHING -- when I try to navigate to the admin area.

I checked the cache for error files and found none other than some that pertained to the shop. What's next to check?

23 Apr 2010, 12:36 AM
#9
drbyte avatar

drbyte

Sensei

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

Post #9 by drbyte

mzimmers:

I'm having a similar problem: my shop is (mostly) up and working, but I get nothing -- literally, NOTHING -- when I try to navigate to the admin area.

I checked the cache for error files and found none other than some that pertained to the shop. What's next to check?
If I were in your shoes, the first thing I'd do would be to take a copy of all the files on the server (in your case under your admin folder), and do a quick fresh comparison against the original ZC files for the version you're using (in this case this discussion is about upgrading to 1.3.9, so that would be 1.3.9 files to use), and identify what's missing or different.
You're probably missing files from the 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.

23 Apr 2010, 1:12 AM
#10
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Post #10 by darkangel

Thanks DrB I will check but I think there are no more errors in cache folder. so will unactivate the file.

23 Apr 2010, 1:45 AM
#11
mzimmers avatar

mzimmers

Zen Follower

Join Date:
May 2008
Posts:
453
Plugin Contributions:
0

Post #11 by mzimmers

I compared my version of 1.3.9 against a stock version, and found that I'd missed a few things. I erased my server version and re-uploaded. I still get nothing.

Could this be related to the new .htaccess files? I ask because the one in the images/upload directory was preventing my pictures from loading.

23 Apr 2010, 2:03 AM
#12
drbyte avatar

drbyte

Sensei

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

Post #12 by drbyte

mzimmers:

Could this be related to the new .htaccess files? I ask because the one in the images/upload directory was preventing my pictures from loading.
NO! That's not a "magic pill". If your admin was just one whole great big image file, then it might be something to consider.

If in doubt, rename your /admin/.htaccess and check whether the page suddenly loads. I can almost certainly guarantee it won't make a difference ... unless you've got the .htaccess files mixed up and you're blocking .php scripts from running.

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

23 Apr 2010, 2:07 AM
#13
drbyte avatar

drbyte

Sensei

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

Post #13 by drbyte

mzimmers:

my shop is (mostly) up and working, but I get nothing -- literally, NOTHING -- when I try to navigate to the admin area.

I checked the cache for error files and found none other than some that pertained to the shop. What's next to check?

If it's not generating myDebug-adm-xxxxxxx.log files in your /cache/ folder, then you'll need to use step 2(b) in this FAQ: https://www.zen-cart.com/tutorials/index.php?article=82
(and, since you're trying to troubleshoot your /admin/ area, you need to use your /admin/includes/ when it's talking about /includes/ )

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

23 Apr 2010, 2:18 AM
#14
mzimmers avatar

mzimmers

Zen Follower

Join Date:
May 2008
Posts:
453
Plugin Contributions:
0

Post #14 by mzimmers

OK, I created that file...still nothing shows on the screen.

I'm beginning to wonder if Filezilla is screwing up, though I did look through the server directories and didn't find anything missing.

Any other suggestions?

23 Apr 2010, 2:39 AM
#15
mzimmers avatar

mzimmers

Zen Follower

Join Date:
May 2008
Posts:
453
Plugin Contributions:
0

Post #15 by mzimmers

Bingo! While that local/configure.php file didn't produce any on-screen error messages, it did generate some files in cache. I was able to trace it to some missing add-on (Image Handler) files. Admin is now loading.

Thanks for the help.

23 Apr 2010, 2:52 AM
#16
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Post #16 by darkangel

i do not have any of the new .htaccess files....could it be becasue I just uploaded the files to the pre-existing folder thus overwriting what was on the server?

23 Apr 2010, 3:07 AM
#17
drbyte avatar

drbyte

Sensei

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

Post #17 by drbyte

Filenames starting with a "." are considered "hidden" files by many systems, including your FTP program.
You may have to set your FTP program to specifically show hidden files.

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

23 Apr 2010, 3:08 AM
#18
mzimmers avatar

mzimmers

Zen Follower

Join Date:
May 2008
Posts:
453
Plugin Contributions:
0

Post #18 by mzimmers

That's probably it, DarkAngel. There are at least a couple of new .htaccess files. They're quite elaborate, almost surely better than what was there before. And the Doc was right: they were NOT the source of my problems (except for the one in images/uploads).

23 Apr 2010, 3:24 AM
#19
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Post #19 by darkangel

I know and that is why I said that...I have wsftp pro for the pc and transmit for the mac and set them both to see invisibles yet the htaccess files are not showing...just the main one is root folder that holda all the vendor ftp folder and the store folder.

in the live store the .htaccess file in admin is showing but not in the new test one as well as there are none in the test stores image folder either.

I just figure it was due to how i upgraded by overwriting the files with the new ones. Weird is my servers middle name ya know...lol

23 Apr 2010, 3:29 AM
#20
mzimmers avatar

mzimmers

Zen Follower

Join Date:
May 2008
Posts:
453
Plugin Contributions:
0

Post #20 by mzimmers

You may have to set Transmit to include invisible files; I know you have to in Filezilla.

And, you might grab a copy of TinkerTool. It's a really easy way to toggle the displaying of invisible files on your Mac (as well as a lot of other stuff).