Forums / Setting Up Categories, Products, Attributes / Help!: Adding Categories and Products Yield Blanks

Help!: Adding Categories and Products Yield Blanks

Locked

Views: 2,929

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
19 May 2006, 5:53 PM
#1
troyji avatar

troyji

New Zenner

Join Date:
May 2006
Posts:
8
Plugin Contributions:
0

Help!: Adding Categories and Products Yield Blanks

I have installed zencart, and everything seems to be working fine accept the following. When I go to add a product, I enter all of the data and hit preview. The preview yields blanks for everything. $0.00, no image, etc. Also, when I add a category, it adds the category, but the name and description are blank, no matter what I enter for them. All that gets picked up is the sort number, and an id is properly assigned to it. The missing data is not being entered into the database either. Any suggestions?

zencart: v1.3.0.1
mysql: v4.1.1
php: v4.3.1

I have not altered any files accept the http(s)_server variables in the two primary configure.php files. I have tried from multiple browsers/browser versions/pcs.

20 May 2006, 9:24 PM
#2
troyji avatar

troyji

New Zenner

Join Date:
May 2006
Posts:
8
Plugin Contributions:
0

Re: Help!: Adding Categories and Products Yield Blanks

To make matters more interesting, I put the same code on a different server and it ran perfectly, so I know it is not the code. Any suggestions anyone?

21 May 2006, 7:32 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Help!: Adding Categories and Products Yield Blanks

I would think that you have answered your own question with:

I put the same code on a different server and it ran perfectly, so I know it is not the code
If it is not he actual code, it may be that during your upload some files were corrupted in some manner. Difficult to analyze as you seem not to be receiving any error MSG's.

You could attempt a re-install after first re-uploading the files.

Your server php & MySQL appear to be adequate

Zen-Venom Get Bitten

22 May 2006, 12:52 AM
#4
troyji avatar

troyji

New Zenner

Join Date:
May 2006
Posts:
8
Plugin Contributions:
0

Re: Help!: Adding Categories and Products Yield Blanks

I have installed it multiple times with the same results. And as I said, I put the same files on a different server and it ran fine.

22 May 2006, 12:56 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Help!: Adding Categories and Products Yield Blanks

Blank page or missing data?

You say $0.00 and broken image ...

Is the product description there?

What is the Product Type that you are using?

What is the URL text when you hit New Product? Example:

/product.php?x=62&y=14&product_type=1&cPath=65&action=new_product

What is the URL text when you hit Preview? Example:

product.php?cPath=65&product_type=1&action=new_product_preview

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

22 May 2006, 6:25 PM
#6
troyji avatar

troyji

New Zenner

Join Date:
May 2006
Posts:
8
Plugin Contributions:
0

Re: Help!: Adding Categories and Products Yield Blanks

The product type is general.

new product url:
/admin/product.php?product_type=1&cPath=1&action=new_product&
x=26&y=11&zenAdminID=***

site preview url:
admin/product.php?cPath=1&product_type=1&action=new_product_preview&
zenAdminID=***

Once on the site preview, the only information that is retained is te price. After inserint, the only thing not retained is the description and product name.

22 May 2006, 11:46 PM
#7
troyji avatar

troyji

New Zenner

Join Date:
May 2006
Posts:
8
Plugin Contributions:
0

Re: Help!: Adding Categories and Products Yield Blanks

I did an echo on the $_POST variable, and the data being typed into the field is not being posted.

I used:

foreach ($_POST as $k => $d) echo("<br>".$k." => ".$d."<br>");

I get the following:

categories_name =>
categories_description =>
img_dir =>
sort_order => aaa
x => 32
y => 10

Does this point to apache being the problem? any suggestions anyone?

23 May 2006, 3:35 AM
#8
troyji avatar

troyji

New Zenner

Join Date:
May 2006
Posts:
8
Plugin Contributions:
0

Re: Help!: Adding Categories and Products Yield Blanks

For anyone else who encounters this problem, I have found a workaround. You can change all of the form post methods to get methods. This requires that you also add hidden values for the admin id, action type, etc.

For everyone else, I would like to be able to get it working with post, as it makes no sense why it is not working. Any suggestions are appreciated.

23 May 2006, 3:51 AM
#9
drbyte avatar

drbyte

Sensei

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

Re: Help!: Adding Categories and Products Yield Blanks

troyji:

I have installed it multiple times with the same results. And as I said, I put the same files on a different server and it ran fine.

methinks your need is not to adjust the Zen Cart code, but rather to fix your server's configuration so that data is passed properly.

If "this" problem is happening, I shudder to think what "else" will also be wrong on your server. I WOULD NOT depend on that server to sell things online...

.
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 May 2006, 5:04 PM
#10
troyji avatar

troyji

New Zenner

Join Date:
May 2006
Posts:
8
Plugin Contributions:
0

Re: Help!: Adding Categories and Products Yield Blanks

In the end, it all had to do with the way I was accessing the server. As I would access the subdomain over the net, it would somehow loose some of the post data. When I used the server DNS as my DNS server, it all worked fine. Hopefully this will help if someone else encounters the same problem. I have seen others ask it, though it is rare. Thanks for the replies guys. Thats a wrap.

24 May 2006, 2:15 AM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Help!: Adding Categories and Products Yield Blanks

Thanks for the update ... always a help to know the final solution ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!