Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I troubleshoot the MySQL Database?


Tim Romero

Recommended Posts

Posted

I think my database might be messed up, and I would like to fix it. Im not too sure how to navigate around in phpmyadmin, or which setting to change that might need to be changed. Is there an easy way to locate problems within the database? Maybe a way to compare settings against a fresh installed osc database? Any suggestions would be really helpful. THanks!!

Posted

I think my database might be messed up, and I would like to fix it. Im not too sure how to navigate around in phpmyadmin, or which setting to change that might need to be changed. Is there an easy way to locate problems within the database? Maybe a way to compare settings against a fresh installed osc database? Any suggestions would be really helpful. THanks!!

 

No we would need examples of WHY you believe the database has an issue before we could comment.

Posted

No we would need examples of WHY you believe the database has an issue before we could comment.

 

oh ok. When I get an order, I get email confirmation of it. The order ID is always "0". In Admin, the index page says I have orders, but when i click "pending", no orders are listed. Members can not log in and see order history either. That is my problem.

Posted

oh ok. When I get an order, I get email confirmation of it. The order ID is always "0". In Admin, the index page says I have orders, but when i click "pending", no orders are listed. Members can not log in and see order history either. That is my problem.

 

Well the orders_id field in the orders table is auto incremented which makes it sound like trashed PHP code to me at first glance.

Posted

Well the orders_id field in the orders table is auto incremented which makes it sound like trashed PHP code to me at first glance.

 

Im not getting any PHP errors in my log. What page do you think I should look at to address this problem?

Posted

The data base wouldn't mess up of its own accord - what makes you think it is the database?

 

If someone has been playing in your database it might be an idea just to check that orders_id in the orders table is set for auto_increment

My store is currently running Phoenix 1.0.3.0

I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 )

I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary

Posted

oh ok. When I get an order, I get email confirmation of it. The order ID is always "0". In Admin, the index page says I have orders, but when i click "pending", no orders are listed. Members can not log in and see order history either. That is my problem.

Go into phpmyadmin and select your database. Then search for "MODULE_ORDER_TOTAL_INSTALLED." There should be one result. Click on that and look at the configuration value. It should be

ot_subtotal.php;ot_tax.php;ot_shipping.php;ot_total.php

Also make the USE_PCONNECT and STORE_SESSIONS settings in your includes/configure.php file are set to use the database.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Go into phpmyadmin and select your database. Then search for "MODULE_ORDER_TOTAL_INSTALLED." There should be one result. Click on that and look at the configuration value. It should be

ot_subtotal.php;ot_tax.php;ot_shipping.php;ot_total.php

Also make the USE_PCONNECT and STORE_SESSIONS settings in your includes/configure.php file are set to use the database.

 

Here is my configure info:

// define our database connection
 define('DB_SERVER', 'CORRECTSERVER'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'CORRECTUSERNAME');
 define('DB_SERVER_PASSWORD', 'CORRECTPASSWORD');
 define('DB_DATABASE', 'CORRECTDATABASE');
 define('USE_PCONNECT', 'true'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

I checked the MODULE_ORDER_TOTAL_INSTALLED. Mine is missing the ot_tax.php, Can this be my error? I dont calculate tax in my store for orders though.

Posted

Go into phpmyadmin and select your database. Then search for "MODULE_ORDER_TOTAL_INSTALLED." There should be one result. Click on that and look at the configuration value. It should be

ot_subtotal.php;ot_tax.php;ot_shipping.php;ot_total.php

Also make the USE_PCONNECT and STORE_SESSIONS settings in your includes/configure.php file are set to use the database.

 

Here is my configure info:

// define our database connection
 define('DB_SERVER', 'CORRECTSERVER'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'CORRECTUSERNAME');
 define('DB_SERVER_PASSWORD', 'CORRECTPASSWORD');
 define('DB_DATABASE', 'CORRECTDATABASE');
 define('USE_PCONNECT', 'true'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

I checked the MODULE_ORDER_TOTAL_INSTALLED. Mine is missing the ot_tax.php, Can this be my error? I dont calculate tax in my store for orders though.

Posted

I checked the MODULE_ORDER_TOTAL_INSTALLED. Mine is missing the ot_tax.php, Can this be my error? I dont calculate tax in my store for orders though.

Save the current entry, make the change and try and order. If it works, problem solved. If not, switch the entry back.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

Save the current entry, make the change and try and order. If it works, problem solved. If not, switch the entry back.

 

Do i just type in ";ot_tax.php" into the "configuration value" field? if not, how do i make the change?

Posted

When you do the search for that item and it returns the one row, there will be an edit button in the display. Click on that, edit that box and save.

ok. i did that. nothing changed, so i switched it back

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...