Hi there, Micheal
I have read the forums and seem to do with the database. I haven't done the tuning yet, and it is only on my local machine with plenty of ram...etc.
The problem is after creating the 34 fileds (admin/content/node-type/uprofile/fields), 100s of the following warning appears on the screen and whenever i any other filed then it backs to normal...... , do u have any idea to fix this without tuning the db? or do u know what exactly cause that happen??
Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:12:\"user warning\";s:8:\"%message\";s:119:\"MySQL server has gone away\nquery: SELECT COUNT(sid) AS count FROM sessions WHERE timestamp >= 1258109315 AND uid = 0\";s:5:\"%file\";s:51:\"C:\\xampp\\htdocs\\qbs_v01r01_dev\\includes\\session.inc\";s:5:\"%line\";i:119;}', 3, '', 'http://localhost:8080/qbs_v01r01_dev/admin/content/node-type/uprofile/fi...', 'http://localhost:8080/qbs_v01r01_dev/admin/content/node-type/uprofile/fi...', '127.0.0.1', 1258110215) in C:\xampp\htdocs\qbs_v01r01_dev\includes\database.mysqli.inc on line 128
Warning: MySQL server has gone away query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:12:\"user warning\";s:8:\"%message\";s:122:\"MySQL server has gone away\nquery: SELECT COUNT(DISTINCT uid) FROM sessions WHERE uid > 0 AND timestamp >= 1258109315\";s:5:\"%file\";s:81:\"C:\\xampp\\htdocs\\qbs_v01r01_dev\\sites\\default\\modules\\admin_menu\\admin_menu.module\";s:5:\"%line\";i:473;}', 3, '', 'http://localhost:8080/qbs_v01r01_dev/admin/content/node-type/uprofile/fi...', 'http://localhost:8080/qbs_v01r01_dev/admin/content/node-type/uprofile/fi...', '127.0.0.1', 125811 in C:\xampp\htdocs\qbs_v01r01_dev\includes\database.mysqli.inc on line 128
Comments
Comment #1
foodbo commentedwhen i set the php.in 's mysqli.reconnect = on, now it gaves me "MySQL server has gone away", i can use most of page, except editing anything.
and then, when i change the mysql.ini then seems back to normal. "HELP"!, as it is just a local server and i can change anything i want but i won't be able to do anything when i upload to the share host..
from
to
Comment #2
michelleWho's Michael? :P
I really have no idea. You're getting errors after adding too many CCK fields to a node type, which is really nothing to do with APK. Moving this over to the CCK queue to see if they have any ideas.
Michelle
Comment #3
markus_petrux commentedTry to increase the value of wait_timeout or max_allowed_packet in your MySQL settings.
This is often an issue caused by lack of resources available to MySQL. Please, read:
http://drupal.org/node/364451
Comment #4
foodbo commentedthanks Michelle :-)
and Markus,
i have tried the mysql settings and seem fixed on my local server but i can't do much on the shared hosting server, so is there anything else i could do instead??