Hi,
I imported some entries to EE from my current application.
Import is successful I can see and edit the entries via EE-CP. During this I wanted to control the data also with phpMyAdmin. After editing a default EE-entry I got the following errorlog entry (The same happens with the other new entries):
[Wed Feb 27 14:33:08 2008] [error] [client XYZ] ALERT -
configured request variable total name length limit exceeded - dropped
variable
'rows_to_delete[+`exp_weblog_data`.`entry_id`+=+1+AND+`exp_weblog_data`.`site_id`+=+1+AND+`exp_weblog_data`.`weblog_id`+=+1+AND+CONVERT(`exp_weblog_data`.`field_id_1`+USING+utf8)+=+''+AND+CONVERT(`exp_weblog_data`.`field_ft_1`+USING+utf8)+=+'xhtml'+AND+CONVERT(`exp_weblog_data`.`field_id_2`+USING+utf8)+=+'tThank+you+for+choosing+ExpressionEngine!+This+entry+contains+helpful+resources+to+help+you+<a+href="http://expressionengine.com/docs/overview/get_most.html">get+the+most+from+ExpressionEngine</a>+and+the+EllisLab+Community.+rnrnt[b]Technical+Support:[/b]rnrntAll+tech+support+is+handled+through+our+Community+forums.+Our+staff+and+the+community+respond+to+issues+in+a+timely+manner.+Please+review+the+<a+href="http://expressionengine.com/docs/overview/getting_help.html">Getting+Help</a>+section+of+the+User+Guide+before+posting+in+the+forums.rnrnt[b]Learning+resources:[/b]rnrnt<a+href="http://expressionengine.com/docs/overview/">Getting+Started+Guide</a>rnt<a+href="http://expressionengine.com/docs/quick_start/">Quick+Start+Tutorial</a>rnt<a+href="http://expressionengine.com/tutorials/">Video+Tutorials</a>rnrnt[b]Additional+Support+Resources:[/b]rnrnt<a+href="http://expressionengine.com/docs/">ExpressionEngine+User+Guide</a>rnt<a+href="http://expressionengine.com/knowledge_base/">Knowledge+Base</a>rnt<a+href="http://expressionengine.com/wiki/">ExpressionEngine+Wiki</a>rnrntIf+you+need+to+hire+a+web+developer+consider+our+<a+href="http://expressionengine.com/professionals/">Professionals+Network</a>.+You+can+also+place+an+ad+on+our+<a+href="http://ellislab.com/forums/viewforum/47/">Job+Board</a>+if+you+prefer+that+professionals+find+you.rnrntLove+ExpressionEngine?++Help+spread+the+word+and+make+some+spare+change+with+our+<a+href="http://expressionengine.com/affiliates/">Affiliates+program</a>.rnrntSee+you+on+the+boards,rnrnt[size=4]The+EllisLab+Team[/size]'+AND+CONVERT(`exp_weblog_data`.`field_ft_2`+USING+utf8)+=+'xhtml'+AND+CONVERT(`exp_weblog_data`.`field_id_3`+USING+utf8)+=+''+AND+CONVERT(`exp_weblog_data`.`field_ft_3`+USING+utf8)+=+'xhtml'+AND+`exp_weblog_data`.`field_id_4`+=+0+AND+CONVERT(`exp_weblog_data`.`field_ft_4`+USING+utf8)+=+'xhtml'+AND+`exp_weblog_data`.`field_id_5`+=+0+AND+CONVERT(`exp_weblog_data`.`field_ft_5`+USING+utf8)+=+'xhtml'+AND+`exp_weblog_data`.`field_id_6`+=+0+AND+CONVERT(`exp_weblog_data`.`field_ft_6`+USING+utf8)+=+'xhtml'+AND+`exp_weblog_data`.`field_id_7`+=+0+AND+CONVERT(`exp_weblog_data`.`field_ft_7`+USING+utf8)+=+'xhtml'+AND+`exp_weblog_data`.`field_id_8`+=+0+AND+CONVERT(`exp_weblog_data`.`field_ft_8`+USING+utf8)+=+'xhtml'+AND+CONVERT(`exp_weblog_data`.`field_id_9`+USING+utf8)+=+''+AND+CONVERT(`exp_weblog_data`.`field_ft_9`+USING+utf8)+=+'none'+AND+CONVERT(`exp_weblog_data`.`field_id_10`+USING+utf8)+=+''+AND+CONVERT(`exp_weblog_data`.`field_ft_10`+USING+utf8)+=+'none'+AND+CONVERT(`exp_weblog_data`.`field_id_11`+USING+utf8)+=+''+AND+CONVERT(`exp_weblog_data`.`field_ft_11`+USING+utf8)+=+'none'+AND+CONVERT(`exp_weblog_data`.`field_id_12`+USING+utf8)+=+''+AND+CONVERT(`exp_weblog_data`.`field_ft_12`+USING+utf8)+=+'none'+AND,
referer: ./sql.php?db=db1053328-nn&token=d1590f74c43fc575f39b0b565d63c90b&table=exp_weblog_data&goto=tbl_structure.phpAfter looking at what really happens, I saw that phpMyAdmin needs a primary key for a hidden field in the Edit page.
<input type="hidden" name="primary_key[]" value="..." />
The exp_weblog_data has no primary key but 3 indexes. As a result phpmyadmin writes all the fields of the entry in his hidden field and this seems to be a problem for the configuration: [...configured request variable total name length limit exceeded - dropped variable ...]
Can i change the entry_id field of the exp_weblog_data as Primary Key?
Is there any reason not to have a Primary Key for the table “exp_weblog_data”?
Thanks!