Hallo, ich habe einige Artikel, die zwar in der Übersicht angeklickt werden können, jedoch nicht editiert werden können. Die Felder im Artikelstamm bleiben leer. Vermutlich fehlt bei diesen Artikeln wohl noch ein Eintrag in der Datenbank. Ich habe bereits alle Felder geprüft und konnte nichts falsches oder fehlendes finden! Gibt es einen Tipp, wie ich den Fehler finden kann? Danke!
Hi rantanplan, gibt Firebug hier irgendeine Fehlermeldung aus? Gruß Dennis
Hallo, Firephp gibt folgendes aus: xxx/backend/Article/loadStores?_dc=1392217294884&articleId=262&page=1&start=0&limit=25 Error Log (3) count code name message line file 1 2 E_WARNING file_get_contents(info.txt): failed to open stream: No such file or directory 139 /var/xxx/engine/Shopware/Plugins/Community/Backend/SwagAdditionalAttributes/Bootstrap.php 1 8 E_NOTICE Trying to get property of non-object 199 /var/xxx/engine/Shopware/Components/Plugin/Bootstrap.php 1 2048 E_STRICT Declaration of Shopware\Components\Model\ModelManager::create() should be compatible with that of Doctrine\ORM\EntityManager::create() 45 /var/xxx/engine/Shopware/Components/Model/ModelManager.php Die Console im Chrome gibt aus: TypeError: records is null var storeData = records[0]; Uncaught TypeError: Cannot read property ‘0’ of null /backend/Article/load/?f=m/Batch|m/PriceGroup|m/Attribute|m/PropertyGroup|m/PropertyOption|m/Proper…:7558 me.batchStore.load.callback /backend/Article/load/?f=m/Batch|m/PriceGroup|m/Attribute|m/PropertyGroup|m/PropertyOption|m/Proper…:7558 Ext.apply.callback ext-all.js?201310070959:21 Ext.define.onProxyLoad ext-all.js?201310070959:21 Ext.define.processResponse base?file=bootstrap&loggedIn=1392217694:217 (anonymous function) ext-all.js?201310070959:21 Ext.apply.callback ext-all.js?201310070959:21 Ext.define.onComplete ext-all.js?201310070959:21 Ext.define.onStateChange ext-all.js?201310070959:21 (anonymous function) Cannot read property ‘0’ of null var storeData = records[0]; me.subApplication.fireEvent(‘batchStoreLoaded’, storeData, operation, true); } }); } Beste Grüße!
Hallo, anbei noch der JSON Request. Ich finde den Fehler leider nicht ;( Die Varianten habe ich anbei weggelassen. { “success”:true, “data”:{ “shops”:[{ “id”:1, “mainId”:null, “name”:“Hauptshop Deutsch”, “title”:null, “position”:0, “host”:“xxx.de”, “basePath”:null, “baseUrl”:null, “hosts”:“xxx.de”, “secure”:false, “secureHost”:null, “secureBasePath”:null, “default”:true, “active”:true, “customerScope”:false }, { “id”:2, “mainId”:null, “name”:“At Testshop”, “title”:“At Testshop”, “position”:1, “host”:“at.xxx.de”, “basePath”:null, “baseUrl”:null, “hosts”:"", “secure”:false, “secureHost”:null, “secureBasePath”:null, “default”:false, “active”:false, “customerScope”:false }, { “id”:5, “mainId”:1, “name”:“englisch”, “title”:“englisch”, “position”:1, “host”:null, “basePath”:null, “baseUrl”:null, “hosts”:"", “secure”:false, “secureHost”:null, “secureBasePath”:null, “default”:false, “active”:false, “customerScope”:false }], “customerGroups”:[{ “id”:1, “key”:“EK”, “name”:“Shopkunden”, “tax”:true, “taxInput”:true, “mode”:false, “discount”:0, “minimumOrder”:10, “minimumOrderSurcharge”:5 }], “taxes”:[{ “id”:1, “tax”:“19.00”, “name”:“19%” }, { “id”:4, “tax”:“7.00”, “name”:“7 %” }], “suppliers”:[{ “id”:1, “name”:“xxx”, “image”:"", “link”:"", “description”:null }], “attributeFields”:[{ “id”:34, “name”:“attr2”, “type”:“text”, “default”:"", “store”:"", “label”:“Gesamth\u00f6he”, “required”:false, “help”:“Gesamth\u00f6he”, “translatable”:true, “variantable”:true, “position”:2 }, { “id”:22, “name”:“attr3”, “type”:“text”, “default”:"", “store”:"", “label”:“Gesamttiefe”, “required”:false, “help”:“Gesamttiefe”, “translatable”:true, “variantable”:false, “position”:3 }, { “id”:69, “name”:“attr16”, “type”:“text”, “default”:"", “store”:"", “label”:“Gesamtbreite”, “required”:false, “help”:“Gesamtbreite”, “translatable”:true, “variantable”:true, “position”:3 }, { “id”:33, “name”:“attr1”, “type”:“text”, “default”:"", “store”:"", “label”:“Gesamtl\u00e4nge”, “required”:false, “help”:“Gesamtl\u00e4nge”, “translatable”:true, “variantable”:true, “position”:4 }, { “id”:57, “name”:“attr4”, “type”:“text”, “default”:"", “store”:"", “label”:“Sitzbreite”, “required”:false, “help”:“Sitzbreite”, “translatable”:true, “variantable”:true, “position”:4 }, { “id”:58, “name”:“attr5”, “type”:“text”, “default”:"", “store”:"", “label”:“Sitzh\u00f6he”, “required”:false, “help”:“Sitzh\u00f6he”, “translatable”:true, “variantable”:true, “position”:4 }, { “id”:68, “name”:“attr15”, “type”:“text”, “default”:"", “store”:"", “label”:“Sitztiefe”, “required”:false, “help”:“Sitztiefe”, “translatable”:true, “variantable”:true, “position”:6 }, { “id”:71, “name”:“attr18”, “type”:“text”, “default”:"", “store”:"", “label”:“Stoffbedarf”, “required”:false, “help”:“Stoffbedarf”, “translatable”:true, “variantable”:true, “position”:8 }, { “id”:74, “name”:“attr23”, “type”:“text”, “default”:"", “store”:"", “label”:“Armlehnh\u00f6he”, “required”:false, “help”:“Armlehnh\u00f6he”, “translatable”:true, “variantable”:true, “position”:8 }, { “id”:75, “name”:“attr22”, “type”:“text”, “default”:"", “store”:"", “label”:“stapelbar”, “required”:false, “help”:“stapelbar”, “translatable”:true, “variantable”:true, “position”:8 }, { “id”:59, “name”:“attr6”, “type”:“text”, “default”:"", “store”:"", “label”:“Gewicht”, “required”:false, “help”:“Gewicht”, “translatable”:true, “variantable”:true, “position”:9 }, { “id”:60, “name”:“attr7”, “type”:“text”, “default”:"", “store”:"", “label”:“Basendurchmesser”, “required”:false, “help”:“Basendurchmesser”, “translatable”:true, “variantable”:true, “position”:9 }, { “id”:61, “name”:“attr8”, “type”:“text”, “default”:"", “store”:"", “label”:“max. Plattengr\u00f6\u00dfe”, “required”:false, “help”:“maximale Plattengr\u00f6\u00dfe”, “translatable”:true, “variantable”:true, “position”:9 }, { “id”:62, “name”:“attr9”, “type”:“text”, “default”:"", “store”:"", “label”:“fertig montiert”, “required”:false, “help”:“fertig montiert”, “translatable”:true, “variantable”:true, “position”:9 }, { “id”:66, “name”:“attr13”, “type”:“text”, “default”:"", “store”:"", “label”:“Plattenst\u00e4rke”, “required”:false, “help”:“Plattenst\u00e4rke”, “translatable”:true, “variantable”:true, “position”:9 }, { “id”:67, “name”:“attr14”, “type”:“text”, “default”:"", “store”:"", “label”:“Plattengr\u00f6\u00dfe”, “required”:false, “help”:“Plattengr\u00f6\u00dfe”, “translatable”:true, “variantable”:true, “position”:9 }, { “id”:64, “name”:“attr10”, “type”:“text”, “default”:"", “store”:"", “label”:“outdoor geeignet”, “required”:false, “help”:"", “translatable”:true, “variantable”:true, “position”:10 }, { “id”:65, “name”:“attr12”, “type”:“text”, “default”:"", “store”:"", “label”:“UV best\u00e4ndig”, “required”:false, “help”:“UV best\u00e4ndig”, “translatable”:true, “variantable”:true, “position”:10 }, { “id”:72, “name”:“attr20”, “type”:“text”, “default”:"", “store”:"", “label”:“Art der Federung”, “required”:false, “help”:“Art der Federung”, “translatable”:true, “variantable”:true, “position”:19 }, { “id”:73, “name”:“attr21”, “type”:“text”, “default”:"", “store”:"", “label”:“schwer entflammbar”, “required”:false, “help”:“schwer entflammbar”, “translatable”:true, “variantable”:true, “position”:19 }, { “id”:79, “name”:“attr24”, “type”:“text”, “default”:"", “store”:"", “label”:“klappbar”, “required”:false, “help”:“klappbar”, “translatable”:true, “variantable”:true, “position”:24 }, { “id”:80, “name”:“attr25”, “type”:“text”, “default”:"", “store”:"", “label”:“drehbar”, “required”:false, “help”:“drehbar”, “translatable”:true, “variantable”:true, “position”:25 }, { “id”:63, “name”:“attr11”, “type”:“text”, “default”:"", “store”:"", “label”:“Produktart”, “required”:false, “help”:"", “translatable”:true, “variantable”:true, “position”:30 }], “templates”:[{ “id”:"", “name”:“Standard” }], “units”:[{ “id”:2, “unit”:“g”, “name”:“Gramm” }, { “id”:6, “unit”:“kg”, “name”:“Kilogramm” }, { “id”:5, “unit”:“lfm”, “name”:“lfm” }, { “id”:1, “unit”:“l”, “name”:“Liter” }, { “id”:8, “unit”:“Paket(e)”, “name”:“Paket(e)” }, { “id”:9, “unit”:“Stck.”, “name”:“St\u00fcck” }], “properties”:[{ “id”:10, “name”:“Banksysteme”, “position”:0, “comparable”:true, “sortMode”:0 }, { “id”:8, “name”:“Barhocker”, “position”:0, “comparable”:true, “sortMode”:3 }, { “id”:11, “name”:“Couchsysteme”, “position”:0, “comparable”:true, “sortMode”:3 }, { “id”:12, “name”:“Holzst\u00fchle”, “position”:0, “comparable”:true, “sortMode”:3 }, { “id”:7, “name”:“Sessel”, “position”:0, “comparable”:true, “sortMode”:3 }, { “id”:6, “name”:“Sitzgruppen / Sets”, “position”:0, “comparable”:true, “sortMode”:3 }, { “id”:13, “name”:“Sitzw\u00fcrfel&Sitzb\u00e4nke”, “position”:0, “comparable”:true, “sortMode”:3 }, { “id”:5, “name”:“St\u00fchle”, “position”:0, “comparable”:true, “sortMode”:3 }, { “id”:4, “name”:“Tische”, “position”:0, “comparable”:true, “sortMode”:3 }, { “id”:2, “name”:“Tischgestelle”, “position”:0, “comparable”:true, “sortMode”:3 }, { “id”:3, “name”:“Tischplatten”, “position”:0, “comparable”:true, “sortMode”:3 }, { “id”:9, “name”:“Zubeh\u00f6r”, “position”:9, “comparable”:true, “sortMode”:3 }], “priceGroups”:[{ “id”:1, “name”:“Standard” }], “article”:[ { “id”:543, “mainDetailId”:555353, “supplierId”:1, “taxId”:1, “priceGroupId”:null, “filterGroupId”:5, “configuratorSetId”:623, “name”:“Holzstuhl OXFORD P”, “description”:“Der Holzstuhl OXFORD P ist ein besonders massiver Holzstuhl. Aus Buche gefertigt ist er in klassischen Holzfarben, verschiedenen Sonderfarben, mit und ohne Polster erh\u00e4ltlich.”, “descriptionLong”:"
**Gestell:\n
\n- Buche massiv, gebeizt/lackiert\n
- Rückenlehne aus Buche-Schichtholz\n
- Farbausführungen gemäß Farbauswahl “Holz”\n\n
Polsterung:
\n
\n - Sitz gepolstert, Bezug gemäß Farbauswahl “Bezug”\n\n
Weitere Information:
\n
\n - Dieser Artikel wird speziell nach Ihrer Farbauswahl gefertigt und montiert ohne Aufpreis geliefert!\n
- besonders massive Verarbeitung\n\n
Zubehör\n
\n - Hochwertige Bodengleiter-Komplettsätze zur Selbstmontage\n
- Sie können den Stuhl passend zur Bodenart mit Filz- oder Kunststoffgleitern ausstatten\n\n
“, “added”:“31.01.2013”, “active”:false, “pseudoSales”:0, “highlight”:false, “keywords”:“Holzstuhl, Polsterstuhl, Stuhl, St\u00fchle, Buche”, “changed”:new Date(1387528324000), “priceGroupActive”:false, “lastStock”:false, “crossBundleLook”:0, “notification”:false, “template”:”", “mode”:0, “availableFrom”:null, “availableTo”:null, “mainDetail”:{ “id”:555353, “articleId”:543, “unitId”:null, “number”:“1710.12”, “supplierNumber”:"", “kind”:1, “additionalText”:“beige - M-BE 5 / Nussbaum dunkel - B4”, “active”:0, “inStock”:0, “stockMin”:0, “weight”:“1.800”, “width”:“0.000”, “len”:“0.000”, “height”:“0.000”, “ean”:"", “position”:0, “minPurchase”:0, “purchaseSteps”:0, “maxPurchase”:0, “purchaseUnit”:“0.0000”, “referenceUnit”:“0.000”, “packUnit”:"", “shippingFree”:false, “releaseDate”:new Date(1359586800000), “shippingTime”:"", “attribute”:{ “id”:555351, “articleId”:543, “articleDetailId”:555353, “attr1”:"", “attr2”:“86 cm”, “attr3”:“51 cm”, “attr4”:“43 cm”, “attr5”:“46 cm”, “attr6”:“8,5 Kg”, “attr7”:"", “attr8”:"", “attr9”:“Ja”, “attr10”:“Nein”, “attr11”:“K”, “attr12”:"", “attr13”:"", “attr14”:"", “attr15”:“42 cm”, “attr16”:“43 cm”, “attr17”:null, “attr18”:“0,25 m”, “attr19”:"", “attr20”:"", “swagAttr21”:"", “swagAttr22”:"", “swagAttr23”:"", “swagAttr24”:"", “swagAttr25”:"", “swagAttr26”:"", “swagAttr27”:"", “swagAttr28”:"", “swagAttr29”:"", “swagAttr30”:"", “swagAttr31”:"", “swagAttr32”:"", “swagAttr33”:"", “swagAttr34”:"", “swagAttr35”:"", “swagAttr36”:"", “swagAttr37”:"", “swagAttr38”:"", “swagAttr39”:"", “swagAttr40”:"" } }, “tax”:{ “id”:1, “tax”:“19.00”, “name”:“19%” }, “attribute”:{ “id”:555351, “articleId”:543, “articleDetailId”:555353, “attr1”:"", “attr2”:“86 cm”, “attr3”:“51 cm”, “attr4”:“43 cm”, “attr5”:“46 cm”, “attr6”:“8,5 Kg”, “attr7”:"", “attr8”:"", “attr9”:“Ja”, “attr10”:“Nein”, “attr11”:“K”, “attr12”:"", “attr13”:"", “attr14”:"", “attr15”:“42 cm”, “attr16”:“43 cm”, “attr17”:null, “attr18”:“0,25 m”, “attr19”:"", “attr20”:"", “swagAttr21”:"", “swagAttr22”:"", “swagAttr23”:"", “swagAttr24”:"", “swagAttr25”:"", “swagAttr26”:"", “swagAttr27”:"", “swagAttr28”:"", “swagAttr29”:"", “swagAttr30”:"", “swagAttr31”:"", “swagAttr32”:"", “swagAttr33”:"", “swagAttr34”:"", “swagAttr35”:"", “swagAttr36”:"", “swagAttr37”:"", “swagAttr38”:"", “swagAttr39”:"", “swagAttr40”:"" }, “categories”:[{ “id”:12, “name”:“Deutsch>Sitzm\u00f6bel>St\u00fchle>Holzst\u00fchle” }], “similar”:[ { “id”:911, “mainDetailId”:749214, “supplierId”:1, “taxId”:1, “priceGroupId”:null, “filterGroupId”:8, “configuratorSetId”:880, “name”:“Stuhl OXFORD”, “description”:“Der Stuhl aus Buche massiv gebeizt und lackiert ist in verschiedenen Beizt\u00f6nen erh\u00e4ltlich!”, “descriptionLong”:"
Gestell:
\n
\n - Buche massiv gebeizt/lackiert, mit Holzsitz\n
- Farbausführungen gemäß Farbauswahl “Holz”\n
- Sitzfläche Buche Schichtholz, 10 mm stark\n\n
Weitere Informationen:
\n
\n - Dieser Artikel wird speziell nach Ihrer Farbauswahl gefertigt und montiert ohne Aufpreis geliefert!\n\n
Zubehör\n
\n - Hochwertige Bodengleiter-Komplettsätze zur Selbstmontage\n
- Sie können den Stuhl passend zur Bodenart mit Filz- oder Kunststoffgleitern ausstatten\n\n
\n
“, “added”:new Date(1359586800000), “active”:true, “pseudoSales”:0, “highlight”:false, “keywords”:“Stuhl, Holzstuhl, St\u00fchle, Holzst\u00fchl”, “changed”:new Date(1387528582000), “priceGroupActive”:false, “lastStock”:false, “crossBundleLook”:0, “notification”:false, “template”:”", “mode”:0, “availableFrom”:null, “availableTo”:null, “mainDetail”:null } ], “related”:[ { “id”:558, “mainDetailId”:558, “supplierId”:1, “taxId”:1, “priceGroupId”:null, “filterGroupId”:null, “configuratorSetId”:877, “name”:“Bodengleiter-Komplettsatz, Filz (4 St\u00fcck)”, “description”:“Filz-Bodengleiter f\u00fcr St\u00fchle”, “descriptionLong”:"
Filz-Bodengleiter (4 Stück) schwarz oder weiss", “added”:new Date(1359586800000), “active”:true, “pseudoSales”:0, “highlight”:false, “keywords”:“Bodengleiter, Filzbodengleiter”, “changed”:new Date(1386843441000), “priceGroupActive”:false, “lastStock”:false, “crossBundleLook”:0, “notification”:false, “template”:"", “mode”:0, “availableFrom”:null, “availableTo”:null, “mainDetail”:{ “id”:558, “articleId”:558, “unitId”:null, “number”:“1736”, “supplierNumber”:"", “kind”:1, “additionalText”:“wei\u00df - BG”, “active”:1, “inStock”:11870, “stockMin”:0, “weight”:“0.020”, “width”:“0.000”, “len”:“0.000”, “height”:“0.000”, “ean”:"", “position”:0, “minPurchase”:0, “purchaseSteps”:0, “maxPurchase”:0, “purchaseUnit”:“0.0000”, “referenceUnit”:“0.000”, “packUnit”:"", “shippingFree”:false, “releaseDate”:new Date(1359586800000), “shippingTime”:"" } }, { “id”:559, “mainDetailId”:559, “supplierId”:1, “taxId”:1, “priceGroupId”:null, “filterGroupId”:null, “configuratorSetId”:876, “name”:“Bodengleiter-Komplettsatz, Kunststoff (4 St\u00fcck)”, “description”:“Kunststoff-Bodengleiter f\u00fcr St\u00fchle”, “descriptionLong”:"
Kunststoff-Bodengleiter (4 Stück) schwarz oder weiss", “added”:new Date(1359586800000), “active”:true, “pseudoSales”:0, “highlight”:false, “keywords”:“Bodengleiter, Kunststoffbodengleiter”, “changed”:new Date(1386843268000), “priceGroupActive”:false, “lastStock”:false, “crossBundleLook”:0, “notification”:false, “template”:"", “mode”:0, “availableFrom”:null, “availableTo”:null, “mainDetail”:{ “id”:559, “articleId”:559, “unitId”:null, “number”:“1737”, “supplierNumber”:"", “kind”:1, “additionalText”:“wei\u00df - BG”, “active”:1, “inStock”:10579, “stockMin”:0, “weight”:“0.020”, “width”:“0.000”, “len”:“0.000”, “height”:“0.000”, “ean”:"", “position”:0, “minPurchase”:0, “purchaseSteps”:0, “maxPurchase”:0, “purchaseUnit”:“0.0000”, “referenceUnit”:“0.000”, “packUnit”:"", “shippingFree”:false, “releaseDate”:new Date(1359586800000), “shippingTime”:"" } } ], “images”:[{ “id”:70192, “articleId”:543, “articleDetailId”:null, “description”:"", “path”:“m24_oxford_p_01”, “main”:1, “position”:1, “width”:0, “height”:0, “relations”:"", “extension”:“jpg”, “parentId”:null, “mediaId”:4573, “attribute”:null, “mappings”: }, { “id”:70193, “articleId”:543, “articleDetailId”:null, “description”:"", “path”:“m24_oxford_2_polster2”, “main”:2, “position”:2, “width”:0, “height”:0, “relations”:"", “extension”:“jpg”, “parentId”:null, “mediaId”:4571, “attribute”:null, “mappings”: }, { “id”:70194, “articleId”:543, “articleDetailId”:null, “description”:"", “path”:“m24_oxford_2_polsterr”, “main”:2, “position”:3, “width”:0, “height”:0, “relations”:"", “extension”:“jpg”, “parentId”:null, “mediaId”:4572, “attribute”:null, “mappings”: }, { “id”:70195, “articleId”:543, “articleDetailId”:null, “description”:"", “path”:“m24_oxford_p_06”, “main”:2, “position”:4, “width”:0, “height”:0, “relations”:"", “extension”:“jpg”, “parentId”:null, “mediaId”:4569, “attribute”:null, “mappings”: }, {**
Hallo, für alle zur Information: ich musste die verlinkten Artikel in der s_articles_simliar löschen, dann funktionierte der Artikelstamm wieder. Hat lange gedauert bis ich das gefunden habe, da der Fehler leider nicht abgefangen wird…
Ich habe das gleiche Problem mit derselben Fehlermeldung in der Javascript-Konsole, das Leeren der Tabelle s_articles_similar hat jedoch nichts bewirkt. Gibt es noch einen anderen Lösungsansatz? Edit: Da dieser Thread als “gelöst” markiert ist, habe ich einen neuen für mein Problem geöffnet: http://forum.shopware.de/administration-f55/artikel-nicht-bearbeitbar-formularfelder-leer-t20438.html