Strona 1 z 1

Błąd Data too long for column 'template_data' at row 1 [1406

: 26 lipca 2010, 15:27
autor: tonyviroos
Witam

Po zainstalowaniu moda do ograniczania dostępu do tematów, przy próbie odświeżenia szablonu wyskakuje mi komunikat
Data too long for column 'template_data' at row 1 [1406]

Kod: Zaznacz cały

Blad ogólny
SQL ERROR [ mysql4 ]

Data too long for column 'template_included' at row 1 [1406]

SQL

UPDATE phpbb_styles_template_data SET template_id = 5, template_filename = 'overall_footer.html', template_included = 'report_body.html:login_forum.html:chat_body.html:memberlist_email.html:mcp_approve.html:posting_body.html:dy.html:arcade_index_body.html:arcade_play_body.html:arcade_score_body.html:arcade_stats_body.html:arcade_reports_body.html:points_main.html:points_info.html:points_transfer_user.html:points_logs.html:points_lottery.html:points_bank.html:points_robbery.html:points_points_edit.html:points_transfer.html:points_bank_edit.html:challenge_body.html:challenge_stats.html:gallery_footer.html:', template_mtime = 1274714950, template_data = '<div style=\"text-align:center;\">\r\n<script type=\"text/javascript\"><!--\r\ngoogle_ad_client = \"pub-7504236764208945\";\r\n/* 728x90, utworzono 10-05-13 */\r\ngoogle_ad_slot = \"6567879620\";\r\ngoogle_ad_width = 728;\r\ngoogle_ad_height = 90;\r\n//-->\r\n</script>\r\n<script type=\"text/javascript\"\r\nsrc=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\r\n</script>\r\n</div>\r\n<!-- IF ADS_7 -->{ADS_7}<br /><br /><!-- ENDIF -->\r\n\r\n <!-- IF not S_IS_BOT -->{RUN_CRON_TASK}<!-- ENDIF -->\r\n</div>\r\n\r\n<!--\r\n We request you retain the full copyright notice below including the link to www.phpbb.com.\r\n This not only gives respect to the large amount of time given freely by the developers\r\n but also helps build interest, traffic and use of phpBB3. If you (honestly) cannot retain\r\n the full copyright we ask you at least leave in place the \"Powered by phpBB\" line, with\r\n \"phpBB\" linked to www.phpbb.com. If you refuse to include even this then support on our\r\n forums may be affected.\r\n\r\n The phpBB Group : 2006\r\n//-->\r\n\r\n<div id=\"wrapfooter\">\r\n\r\n\r\n\r\n\r\n\r\n <!-- IF U_ACP --><span class=\"gensmall\">[ <a href=\"{U_ACP}\">{L_ACP}</a> ]</span><br /><br /><!-- ENDIF -->\r\n <!-- IF TRANSLATION_INFO --><br />{TRANSLATION_INFO}<!-- ENDIF -->\r\n <!-- IF DEBUG_OUTPUT --><br /><bdo dir=\"ltr\">[ {DEBUG_OUTPUT} ]</bdo><!-- ENDIF -->\r\n</div>\r\n\r\n</div>\r\n\r\n</div>\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\r\n <tr style=\"background-image: url(\'{T_THEME_PATH}/images/fbg.gif\'); height: 25px; \">\r\n <td width=\"75%\" class=\"copyright\">Powered by <a href=\"http://www.phpbb.com/\">phpBB</a> &copy; 2000, 2002, 2005, 2007 phpBB Group</td>\r\n <td width=\"25%\" align=\"right\" class=\"copyright\">Style: <a href=\"http://www.belgelerim.org/\">Belgelerim</a>&nbsp;&nbsp;</td>\r\n </tr>\r\n</table>\r\n\r\n\r\n</td>\r\n </tr>\r\n</table>\r\n</center>\r\n<!-- IF ADS_8 --><br />{ADS_8}<!-- ENDIF -->\r\n</body>\r\n</html>' WHERE template_id = 5 AND template_filename = 'overall_footer.html'

BACKTRACE

FILE: includes/db/mysql.php
LINE: 174
CALL: dbal_mysql->sql_error()

FILE: includes/acp/acp_styles.php
LINE: 2591
CALL: dbal_mysql->sql_query()

FILE: includes/acp/acp_styles.php
LINE: 287
CALL: acp_styles->store_templates()

FILE: includes/functions_module.php
LINE: 507
CALL: acp_styles->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()
Wie ktoś może jak to naprawić ?

Re: Błąd Data too long for column 'template_data' at row 1 [

: 26 lipca 2010, 16:59
autor: zmora150
wykonałeś zapytanie sql ? Bo chyba w tym tkwi problem :P

Re: Błąd Data too long for column 'template_data' at row 1 [

: 26 lipca 2010, 22:53
autor: tonyviroos
Tak wykonałem zapytanie SQL.
Najpierw wyskakiwał komunikat że nie można otworzyć pliku colour_swatch.html a jak się z tym uporałem to wyskoczył komunikat jak w tytule

Re: Błąd Data too long for column 'template_data' at row 1 [

: 26 lipca 2010, 23:25
autor: zmora150
ustaw do folderu cache chmod 777

Re: Błąd Data too long for column 'template_data' at row 1 [

: 27 lipca 2010, 08:30
autor: jaroslw
Wygląda to na błąd tej modyfikacji, a związany jest on z długością przechowywanych danych.

Zobacz to: http://www.phpbb.com/community/viewtopi ... 5#p6758355

Re: Błąd Data too long for column 'template_data' at row 1 [

: 27 lipca 2010, 09:51
autor: tonyviroos
weeb pisze:Wygląda to na błąd tej modyfikacji, a związany jest on z długością przechowywanych danych.

Zobacz to: http://www.phpbb.com/community/viewtopi ... 5#p6758355
Już to sprawdzałem ale to nie to, wygląda na to że chyba trzeba będzie postawić forum na nowo i modyfikacje dodawać od nowa