Jump to content

report 500 error,`session_id` is not allowed as a key in 'CubeCart_sessions' table!


yangxuan

Recommended Posts

[20-Feb-2019 01:03:49 UTC] PHP Notice:  `session_id` is not allowed as a key in 'CubeCart_sessions' table! in /home/pcsensor/public_html/classes/db/database.class.php on line 914
[20-Feb-2019 01:04:22 UTC] PHP Notice:  `session_id` is not allowed as a key in 'CubeCart_sessions' table! in /home/pcsensor/public_html/classes/db/database.class.php on line 914
[20-Feb-2019 01:04:55 UTC] PHP Notice:  `session_id` is not allowed as a key in 'CubeCart_sessions' table! in /home/pcsensor/public_html/classes/db/database.class.php on line 914

Link to comment
Share on other sites

If your database server is overloaded, it may "disappear". If the database server disappears, this is CubeCart's response: tell PHP to log an error.

This error describes CubeCart's wanting to get a list of all the columns of a table from the database server. If the subject column(s) is not in the list, or no list is returned, CubeCart will not allow a query to use that column name and has PHP log a notice. Unfortunately, to CubeCart, a database server that has gone away is the same as no list having been returned.

 

Link to comment
Share on other sites

Thanks for the response.how can i fix this problem,

1 hour ago, bsmither said:

If your database server is overloaded, it may "disappear". If the database server disappears, this is CubeCart's response: tell PHP to log an error.

This error describes CubeCart's wanting to get a list of all the columns of a table from the database server. If the subject column(s) is not in the list, or no list is returned, CubeCart will not allow a query to use that column name and has PHP log a notice. Unfortunately, to CubeCart, a database server that has gone away is the same as no list having been returned.

 

 

Link to comment
Share on other sites

Your hosting provider can help.

If this is a local development environment, and you have absolute control of everything, then there are a couple of settings for the databse server you should look at.

An internet search for MySQL server has gone away will discuss those settings.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...