Forums / Setting Up Categories, Products, Attributes / Error 404 - Adding New Product

Error 404 - Adding New Product

Locked

Started by virago on 1 Oct 2006, 12:34 PM · Views: 6,196

Results 1 to 20 of 32
This thread is locked. New replies are disabled.
1 Oct 2006, 12:34 PM
#1
virago avatar

virago

New Zenner

Join Date:
Aug 2006
Posts:
57
Plugin Contributions:
0

Error 404 - Adding New Product

I have received a "Page cannot be found" notice when adding a new product to a category. Could someone give me an idea of what to look for to troubleshoot?

Thanks,

1 Oct 2006, 1:00 PM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Error 404 - Adding New Product

virago:

I have received a "Page cannot be found" notice when adding a new product to a category. Could someone give me an idea of what to look for to troubleshoot?

Thanks,
Please do not duplicate post
http://www.zen-cart.com/forum/showthread.php?t=47737

Seems like not all files are copied properly
Can you cross check the files placed in the admin once again?
SAn

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

1 Oct 2006, 1:09 PM
#3
virago avatar

virago

New Zenner

Join Date:
Aug 2006
Posts:
57
Plugin Contributions:
0

Re: Error 404 - Adding New Product

Sorry about the Dup post, just wasn't sure which category to put this in. Will cross check all Admin files and let you know. Ty for the suggestions.

1 Oct 2006, 1:15 PM
#4
virago avatar

virago

New Zenner

Join Date:
Aug 2006
Posts:
57
Plugin Contributions:
0

Re: Error 404 - Adding New Product

It does seem that all the files there and from what I can tell, they all uploaded in their entirety compared to size on my HD vs. what's on the server.

If this helps, this is where the "New Category" button is taking me to...

http://www.mydomainname.com/admin/categories.php?product_type=1&cPath=66&action=new_product&x=39&y=6

Any other ideas?

Thanks for the help!

V

1 Oct 2006, 1:35 PM
#5
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Error 404 - Adding New Product

Well,
Do you have categories.php and product.ph in admin directory?

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

1 Oct 2006, 1:37 PM
#6
virago avatar

virago

New Zenner

Join Date:
Aug 2006
Posts:
57
Plugin Contributions:
0

Re: Error 404 - Adding New Product

Yes I have both of them there. Both with 644 CHMOD permissions. They are located in the admin root file.

Would you recommend renaming and uploading fresh files?

1 Oct 2006, 1:41 PM
#7
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Error 404 - Adding New Product

virago:

If this helps, this is where the "New Category" button is taking me to...

http://www.mydomainname.com/admin/categories.php?product_type=1&cPath=66&action=new_product&x=39&y=6

V

Well, do you mean that when yousay "New Category" you get an error too?
San

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

1 Oct 2006, 1:41 PM
#8
virago avatar

virago

New Zenner

Join Date:
Aug 2006
Posts:
57
Plugin Contributions:
0

Re: Error 404 - Adding New Product

Ok, sorry, jumped the gun and tried renaming and re-uploading those two files. Didn't seem to work in either case .

Any other suggestions would be appreciated. I am at a loss and not quite sure where to begin debugging since I am fairly new to this.

1 Oct 2006, 1:42 PM
#9
virago avatar

virago

New Zenner

Join Date:
Aug 2006
Posts:
57
Plugin Contributions:
0

Re: Error 404 - Adding New Product

superprg:

Well, do you mean that when yousay "New Category" you get an error too?
San

Sorry, no, I want to add products and I am getting the 404. (Up way too early and not enough java yet...)

My bad.

1 Oct 2006, 1:47 PM
#10
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Error 404 - Adding New Product

virago:

Sorry, no, I want to add products and I am getting the 404. (Up way too early and not enough java yet...)

My bad.
Which version of zen cart?
Because for me when I try to add products to category, I get a url like
http://localhost/zencart/admin/product.php?x=51&y=9&product_type=1&cPath=48_47&action=new_product
which calls product.php and not category.php(as the url you have mentioned)

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

1 Oct 2006, 1:52 PM
#11
virago avatar

virago

New Zenner

Join Date:
Aug 2006
Posts:
57
Plugin Contributions:
0

Re: Error 404 - Adding New Product

superprg:

Which version of zen cart?
Because for me when I try to add products to category, I get a url like
http://localhost/zencart/admin/product.php?x=51&y=9&product_type=1&cPath=48_47&action=new_product
which calls product.php and not category.php(as the url you have mentioned)

Zen Cart 1.3.5
Database Patch Level: 1.3.5

It seems to me that there is definately a problem with some code, and possibly a corrupted uploaded one. Might you agree? Would I be safe to re-upload those admin files and try it, even though I have tried it with the two (categories and products.php) and it didn't work?

V...

1 Oct 2006, 1:57 PM
#12
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Error 404 - Adding New Product

virago:

Zen Cart 1.3.5
Database Patch Level: 1.3.5

It seems to me that there is definately a problem with some code, and possibly a corrupted uploaded one. Might you agree? Would I be safe to re-upload those admin files and try it, even though I have tried it with the two (categories and products.php) and it didn't work?

V...
Please do and let us know the outcome
PS: How did you perform the upgrade?

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

1 Oct 2006, 2:10 PM
#13
virago avatar

virago

New Zenner

Join Date:
Aug 2006
Posts:
57
Plugin Contributions:
0

Re: Error 404 - Adding New Product

superprg:

Please do and let us know the outcome
PS: How did you perform the upgrade?

I reuploaded the entire Admin directory EXCEPT the HT access file and still no solution.

I downloaded and manually installed the entire thing since I didn't want it in a subdirectory by installing via fantastico.

Desperately seeking substanance....

V

1 Oct 2006, 2:15 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: Error 404 - Adding New Product

Can you rename your /admin directory to /admin_old

Make a new directory /admin and reload all of the files ...

Then copy your /admin_old/includes/configure.php to the new /admin/includes/configure.php

It sounds like a permissions error somewhere ... or a corrupt file ... and you may be having trouble uploading if the file(s) is corrupt with wrong permissions etc.

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!

1 Oct 2006, 6:55 PM
#15
virago avatar

virago

New Zenner

Join Date:
Aug 2006
Posts:
57
Plugin Contributions:
0

Re: Error 404 - Adding New Product

Ajeh:

Can you rename your /admin directory to /admin_old

Make a new directory /admin and reload all of the files ...

Then copy your /admin_old/includes/configure.php to the new /admin/includes/configure.php

It sounds like a permissions error somewhere ... or a corrupt file ... and you may be having trouble uploading if the file(s) is corrupt with wrong permissions etc.

Still no success. the frustration grows

Any other suggestions????HELP :no:

1 Oct 2006, 7:05 PM
#16
ajeh avatar

ajeh

Oba-san

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

Re: Error 404 - Adding New Product

What product types are listed in the product_types table of your database?

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!

2 Oct 2006, 8:00 AM
#17
virago avatar

virago

New Zenner

Join Date:
Aug 2006
Posts:
57
Plugin Contributions:
0

Re: Error 404 - Adding New Product

Ajeh:

What product types are listed in the product_types table of your database?

E-Books
Paperback Books
Hardbound Books
CD's
Video - VHS

That is it. And since I am not using the "shopping cart" portion of this, I have that turned to N on all accounts.

12 hours later and I still haven't figured out the problem. Anyone else want to tackle it?

~V

2 Oct 2006, 4:27 PM
#18
virago avatar

virago

New Zenner

Join Date:
Aug 2006
Posts:
57
Plugin Contributions:
0

Re: Error 404 - Adding New Product

virago:

E-Books
Paperback Books
Hardbound Books
CD's
Video - VHS

That is it. And since I am not using the "shopping cart" portion of this, I have that turned to N on all accounts.

12 hours later and I still haven't figured out the problem. Anyone else want to tackle it?

~V

ALSO...
I am still working on some other issues, but I am wondering if my problem in "Products" view has anything to do with this?

When I click on the Categories to look at products, I see this at the top as well as an extensive drop down form that has the alphabet in it. I am not sure where this is coming from,

TEXT_PRODUCTS_LISTING_ALPHA_SORTER

This does look like a programming issue but would like some more advice...

~V

2 Oct 2006, 6:22 PM
#19
ajeh avatar

ajeh

Oba-san

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

Re: Error 404 - Adding New Product

Could you copy all the settings in the product_types table?

Sounds like you have changed things that should not be changed and that stops everything from running ...

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!

2 Oct 2006, 6:58 PM
#20
virago avatar

virago

New Zenner

Join Date:
Aug 2006
Posts:
57
Plugin Contributions:
0

Re: Error 404 - Adding New Product

Just a note: I haven't touched anything on any of the tables, so not sure how this would have happened...although curious to know if this might not be something that might have been corrupted during some down time and moving...

This is what you were asking for right?

-- phpMyAdmin SQL Dump
-- version 2.8.0.2
-- http://www.phpmyadmin.net

-- Host: localhost
-- Generation Time: Oct 02, 2006 at 12:14 PM
-- Server version: 4.1.21
-- PHP Version: 4.4.2

-- Database: success_zencart


--
-- Table structure for table success_products

CREATE TABLE success_products (
products_id int(11) NOT NULL auto_increment,
products_type int(11) NOT NULL default '1',
products_quantity float NOT NULL default '0',
products_model varchar(32) default NULL,
products_image varchar(64) default NULL,
products_price decimal(15,4) NOT NULL default '0.0000',
products_virtual tinyint(1) NOT NULL default '0',
products_date_added datetime NOT NULL default '0001-01-01 00:00:00',
products_last_modified datetime default NULL,
products_date_available datetime default NULL,
products_weight float NOT NULL default '0',
products_status tinyint(1) NOT NULL default '0',
products_tax_class_id int(11) NOT NULL default '0',
manufacturers_id int(11) default NULL,
products_ordered float NOT NULL default '0',
products_quantity_order_min float NOT NULL default '1',
products_quantity_order_units float NOT NULL default '1',
products_priced_by_attribute tinyint(1) NOT NULL default '0',
product_is_free tinyint(1) NOT NULL default '0',
product_is_call tinyint(1) NOT NULL default '0',
products_quantity_mixed tinyint(1) NOT NULL default '0',
product_is_always_free_shipping tinyint(1) NOT NULL default '0',
products_qty_box_status tinyint(1) NOT NULL default '1',
products_quantity_order_max float NOT NULL default '0',
products_sort_order int(11) NOT NULL default '0',
products_discount_type tinyint(1) NOT NULL default '0',
products_discount_type_from tinyint(1) NOT NULL default '0',
products_price_sorter decimal(15,4) NOT NULL default '0.0000',
master_categories_id int(11) NOT NULL default '0',
products_mixed_discount_quantity tinyint(1) NOT NULL default '1',
metatags_title_status tinyint(1) NOT NULL default '0',
metatags_products_name_status tinyint(1) NOT NULL default '0',
metatags_model_status tinyint(1) NOT NULL default '0',
metatags_price_status tinyint(1) NOT NULL default '0',
metatags_title_tagline_status tinyint(1) NOT NULL default '0',
PRIMARY KEY (products_id),
KEY idx_products_date_added_zen (products_date_added),
KEY idx_products_status_zen (products_status),
KEY idx_products_date_available_zen (products_date_available),
KEY idx_products_ordered_zen (products_ordered),
KEY idx_products_model_zen (products_model),
KEY idx_products_price_sorter_zen (products_price_sorter),
KEY idx_master_categories_id_zen (master_categories_id),
KEY idx_products_sort_order_zen (products_sort_order),
KEY idx_manufacturers_id_zen (manufacturers_id)
) ENGINE=MyISAM AUTO_INCREMENT=180 DEFAULT CHARSET=latin1 AUTO_INCREMENT=180 ;

--
-- Dumping data for table success_products