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.
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?
Re: Help!: Adding Categories and Products Yield Blanks
I would think that you have answered your own question with:
Quote:
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
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.
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:
Quote:
/product.php?x=62&y=14&product_type=1&cPath=65&action=new_product
What is the URL text when you hit Preview? Example:
Quote:
product.php?cPath=65&product_type=1&action=new_product_preview
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.
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?
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.
Re: Help!: Adding Categories and Products Yield Blanks
Quote:
Originally Posted by 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...
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.