die2raeder Posted June 23, 2010 Report Share Posted June 23, 2010 Hallo, nachdem wir in der INDEX über das Content Management System einen Codeschnipsel für einen versteckten Counter eingefügt haben, funktioniert das komplette CMS nicht mehr. Klickt man bei der "Index" auf "bearbeiten" erscheint folgende Fehlermeldung: \n',xtype: 'htmleditor'},{name: 'content_body_short_de',fieldLabel: 'Kurztext',xtype: 'htmleditor'},{name: 'url_text_de',value: 'de/Index',xtype: 'hidden'},{name: 'meta_title_de',fieldLabel: 'Meta Titel',width: 400,xtype: 'textfield'},{name: 'meta_description_de',fieldLabel: 'Meta Beschreibung',height: 60,width: 400,xtype: 'textarea'},{name: 'meta_keywords_de',fieldLabel: 'Meta Schlüsselwörter',width: 400,xtype: 'textfield'}],title: 'Deutsch',iconCls: 'de_icon',collapseFirst: true,bodyStyle: 'padding: 5px;',xtype: 'panel',layout: 'form'},activeTab: 0,deferredRender: false,enableTabScroll: true,defaults: {autoHeight: true,bodyStyle: 'margin:20px 10px',hideMode: 'offsets'},xtype: 'tabpanel'},{buttonAlign: 'center',xtype: 'panel'}],buttons: [{text: 'Speichern',handler: function(){ Ext.getCmp("contentselectedItem_1277292170-grideditform").getForm().submit({ url: 'adminHandler.php?load_section=content&pg=overview&parentNode=_pnl1277292169152_2256&edit_id=5&gridHandle=contentgridForm&edit_id='+selectedItem_1277292170+'&save=true', success: function(){contentTabs.remove(contentTabs.getActiveTab()); Ext.getCmp('contentgridForm').getStore().reload(); }, failure: function(){Ext.Msg.alert('HINWEIS','KEIN ERFOLG')}, waitMsg: 'Laden' });},icon: 'images/icons/disk_multiple.png',iconCls: 'x-btn-text',xtype: 'button'},{text: 'Übernehmen',handler: function(){ Ext.getCmp("contentselectedItem_1277292170-grideditform").getForm().submit({ url: 'adminHandler.php?load_section=content&pg=overview&parentNode=_pnl1277292169152_2256&edit_id=5&gridHandle=contentgridForm&edit_id='+selectedItem_1277292170+'&save=true', success: '', failure: function(){Ext.Msg.alert('HINWEIS','KEIN ERFOLG')}, waitMsg: 'Laden' });},icon: 'images/icons/disk.png',iconCls: 'x-btn-text',xtype: 'button'},{text: 'Abbrechen',handler: function(){ contentTabs.remove(contentTabs.getActiveTab()); ;},icon: 'images/icons/cancel.png',iconCls: 'x-btn-text',xtype: 'button'},{text: 'Neu Laden',handler: function(){ contentgridEditForm.getForm().load({url:'adminHandler.php?load_section=content&pg=overview&parentNode=_pnl1277292169152_2256&edit_id=5&gridHandle=contentgridForm&get_singledata=5', waitMsg:'Loading',method: 'GET'});},icon: 'images/icons/done.gif',iconCls: 'x-btn-text',xtype: 'button'}],id: 'contentselectedItem_1277292170-grideditform',labelAlign: 'left',labelWidth: 200,reader: new Ext.data.JsonReader({root: 'data',totalProperty: 'totalCount',id: 'content_id'}, [{name: 'content_id'},{name: 'content_parent'},{name: 'content_status'},{name: 'content_hook'},{name: 'content_form'},{name: 'content_image'},{name: 'link_ssl'},{name: 'content_sort'},{name: 'shop_1'},{name: 'group_permission_1'},{name: 'group_permission_2'},{name: 'group_permission_3'},{name: 'content_title_de',sortType: 'de'},{name: 'content_heading_de',sortType: 'de'},{name: 'content_body_de',sortType: 'de'},{name: 'content_body_short_de',sortType: 'de'},{name: 'content_file_de',sortType: 'exclude'},{name: 'url_text_de',sortType: 'de'},{name: 'meta_title_de',sortType: 'de'},{name: 'meta_description_de',sortType: 'de'},{name: 'meta_keywords_de',sortType: 'de'},{name: 'block_6'},{name: 'block_7'},{name: 'block_9'},{name: 'group_permission_info'},{name: 'shop_permission_info'}]),bodyStyle: 'background-color:#efefef; color:#000; padding: 5px;',renderTo: Ext.get('contentselectedItem_1277292170-grideditform')}); function doContentSeo(btn) { if(btn == 'yes') { var new_data = new Array(); var edit_data = new Array(); var records = new Array(); records = contentds.getModifiedRecords(); var record_ids = ''; for (var i = 0; i < records.length; i++) { if (records.get('selectedItem')) record_ids += records.get('content_id') + ','; } contentds.modified = []; if (record_ids == '') { record_ids = selectedItem_1277292170; } var conn = new Ext.data.Connection(); conn.request({ url: 'adminHandler.php?load_section=content&pg=overview&parentNode=_pnl1277292169152_2256&edit_id=5&gridHandle=contentgridForm&', method:'GET', params: {'m_ids': record_ids, multiFlag_rebuildSeo:'true' }, success: function(responseObject) { /* alert(Ext.encode(responseObject.responseText)); */ contentds.reload(); }, waitMsg: 'Laden', failure: function(){Ext.Msg.alert('HINWEIS','KEIN ERFOLG')} });} } }); Bei allen anderen Seiten lädt gar nichts. Die Seite bleibt weiß. Das kuriose: Der eingefügte Codeschnipsel funktioniert wunderbar. Im Shop selber läuft auch alles tadellos. Wie bekommen wir das CMS wieder zum laufen? Bitte um Hilfe! EDIT Problem hat sich erstmal erledigt. Hab die Stelle in der SQL Datenbank gefunden (content_elements). Hm, wo kann man den Code denn sonst einfügen? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.