chrometweaks.org

How can I put my database file SQL to iPage.com?

Click Here To View All Answers...


Quick question... How can I put my database file SQL to iPage.com? Many thanks for any comment. Another question on my mind: I get this error when I click on a category that has only subcategories, but no items..

To see the error go to my site.

Http://www.plumber.ac.

And click on Faucets in the categories infobox. notice that the "for Builders" category and the "valves" categories work because they have products in them. the subcategories of faucets works because there are products there too, but instead of showing the subdategories when you click on faucets you see this error:.

1146 - Table '****_osc2.CATEGORIES' doesn't exist (i inserted the *).

Select distinct m.manufacturers_id, m.manufacturers_name from manufacturers m, products_to_categories p2c, products p, CATEGORIES c where c.parent_id = '21' and p2c.categories_id = c.categories_id and p2c.products_id = p.products_id and p.manufacturers_id = m.manufacturers_id order by m.manufacturers_name.

What's wierd is that if I change CATEGORIES (uppercase) to categories (lower case), the SQL statement goes through (running the sql on the database through phpmyadmin). can anyone tell me why the table name categories is CATEGORIES and where I can change it? I already checked database_tables.php and it's lowercase in there. thanks in advance..

I've installed the Dhtml-coolmenu contrib for the categories menu. thanks again for any advice...

Comments (58)

I'm stumped. I'm not so sure what is the right answer to your question. I'll do some Googling and get back to you if I find an decent answer. You should email the people at iPage as they probably could help you..

Comment #1

Thanks for the tip. i'll try it right now and let you know...

Comment #2

Fixed. thanks for the tip on windows grep. i'd tried with another program to find the text in the files..

It was in includes\boxes\manufacturers.php. changed CATEGORIES to TABLE_CATEGORIES and it's fixed. thanks..

Josh..

Comment #3

I tracked down which contribution had the bad SQL in it if anyone cares..

It was Categorical Manufacturers v1.1, there is an sql fix posted for that contribution but it still had the error..

The error was that in one of the sql statements CATEGORIES was used instead of TABLE_CATEGORIES. maybe that's the way it's supposed to be. i'm no expert, but when I changed that in my manufacturers.php file the problem went away...

Comment #4

I still had the same problem, but finally fixed it. I thought at first it was the problem with the categories.php file because i've changed that one with some oscommerce contribution. But the error was in the manufactures.php file...

Comment #5

I get this error when I click on a category that has only subcategories, but no items..

To see the error go to my site.

Http://www.plumber.ac.

And click on Faucets in the categories infobox. notice that the "for Builders" category and the "valves" categories work because they have products in them. the subcategories of faucets works because there are products there too, but instead of showing the subdategories when you click on faucets you see this error:.

1146 - Table '****_osc2.CATEGORIES' doesn't exist (i inserted the *).

Select distinct m.manufacturers_id, m.manufacturers_name from manufacturers m, products_to_categories p2c, products p, CATEGORIES c where c.parent_id = '21' and p2c.categories_id = c.categories_id and p2c.products_id = p.products_id and p.manufacturers_id = m.manufacturers_id order by m.manufacturers_name.

What's wierd is that if I change CATEGORIES (uppercase) to categories (lower case), the SQL statement goes through (running the sql on the database through phpmyadmin). can anyone tell me why the table name categories is CATEGORIES and where I can change it? I already checked database_tables.php and it's lowercase in there. thanks in advance..

I've installed the Dhtml-coolmenu contrib for the categories menu. thanks again for any advice...

Comment #6

You will need to scan your code for CATEGORIES so I suggest youi download your whole iPage site to your localsystem and then using windows grep or something like that, search for 'CATEGORIES' using the match cace function..

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.