Jump to content

eliminazione prodotti non riuscita


francesco1247

Recommended Posts

Buongiorno alla comunity, da mesi sul mio sito www.chisko.it riscontro un problema dal backoffice che non sono riuscito a risolvere in alcun modo. In pratica quando vado ad eliminare un prodotto singolarmente mi compare il "500 Internal Server Error", se invece vado ad eliminare un gruppo di 2 o più prodotti, mi segnala "eliminazione prodotti non riuscita", ma mi cancella solo il primo prodotto della lista , senza però darmi nessun "500 Internal Server Error". Ho altri due siti sincronizzati a livello di database con questo, con moduli praticamente identici e non riscontro nessun problema. Utilizzo su tutti e 3 prestashop 1.7.

A qualcuno è mai capitata una cosa del genere?

Grazie

Link to comment
Share on other sites


Ciao ziobudda, ho provato come mi hai detto ed ora in modalità debug appena provo ad entrare nel catalogo prodotti mi riporta questo errore.

ContextErrorException in Product.php line 121: Notice: Undefined index: attr_wholesale_price
 

 in Product.php line 121
    at ErrorHandler->handleError('8', 'Undefined index: attr_wholesale_price', '/home/zchiskon/public_html/override/classes/Product.php', '121', array('id_shop' => '1', 'id_product' => '1', 'id_product_attribute' => '0', 'id_country' => '10', 'id_state' => '152', 'zipcode' => '22060', 'id_currency' => '1', 'id_group' => '1', 'quantity' => '1', 'use_tax' => true, 'decimals' => '2', 'only_reduc' => false, 'use_reduc' => true, 'with_ecotax' => true, 'specific_price' => array(), 'use_group_reduction' => true, 'id_customer' => null, 'use_customer_price' => true, 'id_cart' => null, 'real_quantity' => '0', 'id_customization' => null, 'address' => object(Address), 'context' => object(Context), 'cache_id' => '1-1-1-10-152-22060-1-1-0-0-1-0-1-0-0-0-1-1-2', 'cart' => object(Cart), 'groupinc' => object(GroupincConfiguration), 'configs' => array(array('id_groupinc_configuration' => '2', 'name' => '50 PER CENTO', 'type' => '1', 'mode' => '0', 'price_calculation' => '3', 'price_application' => '3', 'fix' => '0.000', 'percentage' => '50.000', 'min_result_price' => '0.000', 'max_result_price' => '0.000', 'threshold_min_price' => '0.001', 'threshold_max_price' => '10.000', 'threshold_price' => '3', 'skip_discounts' => '0', 'override_discounts' => '0', 'groups' => '', 'customers' => '', 'products' => '', 'countries' => '', 'zones' => '', 'categories' => 'a:525:{i:0;s:2:"13";i:1;s:3:"367";i:2;s:3:"368";i:3;s:3:"369";i:4;s:3:"370";i:5;s:3:"371";i:6;s:3:"372";i:7;s:3:"373";i:8;s:3:"374";i:9;s:3:"375";i:10;s:3:"376";i:11;s:3:"377";i:12;s:3:"378";i:13;s:3:"379";i:14;s:3:"380";i:15;s:3:"381";i:16;s:3:"382";i:17;s:3:"462";i:18;s:3:"463";i:19;s:3:"464";i:20;s:3:"465";i:21;s:3:"466";i:22;s:3:"467";i:23;s:3:"468";i:24;s:3:"469";i:25;s:3:"470";i:26;s:3:"471";i:27;s:3:"472";i:28;s:3:"473";i:29;s:3:"474";i:30;s:3:"475";i:31;s:3:"476";i:32;s:3:"477";i:33;s:3:"478";i:34;s:3:"479";i:35;s:3:"481";i:36;s:3:"480";i:37;s:3:"482";i:38;s:3:"483";i:39;s:3:"484";i:40;s:3:"485";i:41;s:3:"486";i:42;s:3:"487";i:43;s:3:"488";i:44;s:3:"489";i:45;s:3:"490";i:46;s:3:"491";i:47;s:3:"492";i:48;s:3:"493";i:49;s:3:"494";i:50;s:3:"495";i:51;s:3:"496";i:52;s:3:"497";i:53;s:3:"498";i:54;s:3:"499";i:55;s:3:"500";i:56;s:3:"501";i:57;s:3:"502";i:58;s:3:"503";i:59;s:3:"504";i:60;s:3:"505";i:61;s:3:"506";i:62;s:3:"507";i:63;s:3:"508";i:64;s:3:"509";i:65;s:3:"510";i:66;s:3:"511";i:67;s:3:"512";i:68;s:3:"513";i:69;s:3:"514";i:70;s:3:"515";i:71;s:2:"35";i:72;s:2:"36";i:73;s:2:"37";i:74;s:2:"38";i:75;s:2:"39";i:76;s:2:"40";i:77;s:2:"41";i:78;s:2:"42";i:79;s:2:"43";i:80;s:2:"44";i:81;s:2:"45";i:82;s:2:"46";i:83;s:2:"47";i:84;s:2:"48";i:85;s:2:"49";i:86;s:2:"50";i:87;s:2:"51";i:88;s:2:"53";i:89;s:2:"52";i:90;s:2:"59";i:91;s:2:"54";i:92;s:2:"55";i:93;s:2:"56";i:94;s:2:"57";i:95;s:2:"58";i:96;s:2:"60";i:97;s:2:"61";i:98;s:2:"62";i:99;s:2:"63";i:100;s:2:"64";i:101;s:2:"65";i:102;s:2:"66";i:103;s:2:"67";i:104;s:3:"991";i:105;s:2:"71";i:106;s:2:"70";i:107;s:2:"72";i:108;s:2:"73";i:109;s:2:"74";i:110;s:2:"75";i:111;s:2:"76";i:112;s:2:"77";i:113;s:2:"78";i:114;s:2:"79";i:115;s:2:"80";i:116;s:2:"81";i:117;s:2:"82";i:118;s:2:"83";i:119;s:2:"84";i:120;s:2:"85";i:121;s:2:"86";i:122;s:2:"87";i:123;s:2:"88";i:124;s:2:"89";i:125;s:2:"90";i:126;s:2:"91";i:127;s:2:"92";i:128;s:2:"93";i:129;s:2:"94";i:130;s:2:"95";i:131;s:2:"96";i:132;s:2:"97";i:133;s:2:"98";i:134;s:2:"99";i:135;s:3:"100";i:136;s:3:"101";i:137;s:3:"102";i:138;s:3:"103";i:139;s:3:"104";i:140;s:3:"105";i:141;s:3:"106";i:142;s:3:"107";i:143;s:3:"108";i:144;s:3:"109";i:145;s:3:"110";i:146;s:3:"111";i:147;s:3:"112";i:148;s:3:"113";i:149;s:3:"930";i:150;s:3:"931";i:151;s:3:"932";i:152;s:3:"933";i:153;s:3:"934";i:154;s:3:"935";i:155;s:3:"936";i:156;s:3:"937";i:157;s:3:"938";i:158;s:3:"939";i:159;s:3:"940";i:160;s:3:"949";i:161;s:3:"950";i:162;s:3:"951";i:163;s:3:"952";i:164;s:3:"953";i:165;s:3:"955";i:166;s:3:"956";i:167;s:3:"957";i:168;s:3:"958";i:169;s:3:"960";i:170;s:3:"968";i:171;s:3:"969";i:172;s:3:"970";i:173;s:3:"971";i:174;s:3:"972";i:175;s:3:"973";i:176;s:3:"974";i:177;s:3:"975";i:178;s:3:"976";i:179;s:3:"977";i:180;s:3:"978";i:181;s:4:"1003";i:182;s:4:"1004";i:183;s:4:"1005";i:184;s:4:"1006";i:185;s:4:"3138";i:186;s:4:"3139";i:187;s:4:"3140";i:188;s:4:"3141";i:189;s:4:"3142";i:190;s:4:"3143";i:191;s:4:"3144";i:192;s:4:"3145";i:193;s:4:"3146";i:194;s:4:"3147";i:195;s:4:"3148";i:196;s:4:"3150";i:197;s:4:"3151";i:198;s:4:"3152";i:199;s:4:"3153";i:200;s:4:"3154";i:201;s:4:"3155";i:202;s:4:"3156";i:203;s:4:"3157";i:204;s:4:"3158";i:205;s:4:"3159";i:206;s:4:"3160";i:207;s:4:"3161";i:208;s:4:"3162";i:209;s:4:"3163";i:210;s:4:"3164";i:211;s:4:"3167";i:212;s:4:"3168";i:213;s:4:"3169";i:214;s:4:"3170";i:215;s:4:"3171";i:216;s:4:"3172";i:217;s:4:"3173";i:218;s:4:"3174";i:219;s:4:"3175";i:220;s:4:"3176";i:221;s:4:"3177";i:222;s:4:"3178";i:223;s:4:"3179";i:224;s:4:"3180";i:225;s:4:"3181";i:226;s:4:"3182";i:227;s:4:"3183";i:228;s:4:"3184";i:229;s:4:"3185";i:230;s:4:"3186";i:231;s:4:"3187";i:232;s:4:"3188";i:233;s:4:"3189";i:234;s:4:"3190";i:235;s:4:"3191";i:236;s:4:"3192";i:237;s:4:"3193";i:238;s:4:"3194";i:239;s:4:"3195";i:240;s:4:"3196";i:241;s:4:"3197";i:242;s:4:"3198";i:243;s:4:"3199";i:244;s:4:"3200";i:245;s:4:"3201";i:246;s:4:"1007";i:247;s:4:"2426";i:248;s:4:"2452";i:249;s:4:"2477";i:250;s:4:"2501";i:251;s:4:"2534";i:252;s:4:"2571";i:253;s:4:"2604";i:254;s:4:"2642";i:255;s:4:"2680";i:256;s:4:"2711";i:257;s:4:"2752";i:258;s:4:"1008";i:259;s:4:"1009";i:260;s:4:"1010";i:261;s:4:"1012";i:262;s:4:"1013";i:263;s:4:"1014";i:264;s:4:"1015";i:265;s:4:"1016";i:266;s:4:"1021";i:267;s:4:"1022";i:268;s:4:"1023";i:269;s:4:"1024";i:270;s:4:"1025";i:271;s:4:"1026";i:272;s:4:"1027";i:273;s:4:"1028";i:274;s:4:"1029";i:275;s:4:"1031";i:276;s:4:"1030";i:277;s:4:"1032";i:278;s:4:"1033";i:279;s:4:"1034";i:280;s:4:"1035";i:281;s:4:"1036";i:282;s:4:"1037";i:283;s:4:"1038";i:284;s:4:"1039";i:285;s:4:"1051";i:286;s:4:"1762";i:287;s:4:"2035";i:288;s:4:"2036";i:289;s:4:"2037";i:290;s:4:"2038";i:291;s:4:"2039";i:292;s:4:"2040";i:293;s:4:"2041";i:294;s:4:"2042";i:295;s:4:"2043";i:296;s:4:"2044";i:297;s:4:"2045";i:298;s:4:"2046";i:299;s:4:"2047";i:300;s:4:"2048";i:301;s:4:"2049";i:302;s:4:"2050";i:303;s:4:"2051";i:304;s:4:"2052";i:305;s:4:"3285";i:306;s:4:"3558";i:307;s:4:"3559";i:308;s:4:"3560";i:309;s:4:"3561";i:310;s:4:"3562";i:311;s:4:"3563";i:312;s:4:"3564";i:313;s:4:"3565";i:314;s:4:"3566";i:315;s:4:"3674";i:316;s:3:"114";i:317;s:3:"115";i:318;s:3:"116";i:319;s:3:"117";i:320;s:3:"118";i:321;s:3:"119";i:322;s:3:"120";i:323;s:3:"121";i:324;s:3:"122";i:325;s:3:"123";i:326;s:3:"124";i:327;s:3:"125";i:328;s:3:"128";i:329;s:3:"129";i:330;s:3:"130";i:331;s:3:"131";i:332;s:3:"132";i:333;s:3:"133";i:334;s:3:"134";i:335;s:3:"135";i:336;s:3:"136";i:337;s:3:"137";i:338;s:3:"138";i:339;s:3:"139";i:340;s:3:"140";i:341;s:3:"141";i:342;s:3:"142";i:343;s:3:"143";i:344;s:3:"144";i:345;s:3:"145";i:346;s:3:"146";i:347;s:3:"147";i:348;s:3:"148";i:349;s:3:"149";i:350;s:3:"150";i:351;s:3:"151";i:352;s:3:"152";i:353;s:3:"153";i:354;s:3:"154";i:355;s:3:"155";i:356;s:3:"156";i:357;s:3:"157";i:358;s:3:"158";i:359;s:3:"159";i:360;s:3:"160";i:361;s:3:"178";i:362;s:3:"179";i:363;s:3:"180";i:364;s:3:"181";i:365;s:3:"182";i:366;s:3:"183";i:367;s:3:"184";i:368;s:3:"185";i:369;s:3:"186";i:370;s:3:"187";i:371;s:3:"188";i:372;s:3:"189";i:373;s:3:"190";i:374;s:3:"191";i:375;s:3:"192";i:376;s:3:"193";i:377;s:3:"194";i:378;s:3:"195";i:379;s:3:"196";i:380;s:3:"197";i:381;s:3:"198";i:382;s:3:"199";i:383;s:3:"200";i:384;s:3:"201";i:385;s:3:"202";i:386;s:3:"203";i:387;s:3:"204";i:388;s:3:"205";i:389;s:3:"206";i:390;s:3:"207";i:391;s:3:"208";i:392;s:3:"209";i:393;s:3:"210";i:394;s:4:"3149";i:395;s:3:"211";i:396;s:3:"212";i:397;s:3:"213";i:398;s:3:"214";i:399;s:3:"215";i:400;s:3:"216";i:401;s:3:"217";i:402;s:3:"218";i:403;s:3:"219";i:404;s:3:"220";i:405;s:3:"221";i:406;s:3:"222";i:407;s:3:"223";i:408;s:3:"224";i:409;s:3:"225";i:410;s:3:"226";i:411;s:3:"227";i:412;s:3:"228";i:413;s:3:"347";i:414;s:3:"348";i:415;s:3:"349";i:416;s:3:"350";i:417;s:3:"352";i:418;s:3:"353";i:419;s:3:"354";i:420;s:3:"355";i:421;s:3:"356";i:422;s:3:"357";i:423;s:3:"358";i:424;s:3:"360";i:425;s:3:"383";i:426;s:3:"384";i:427;s:4:"1763";i:428;s:4:"1918";i:429;s:4:"3570";i:430;s:4:"3676";i:431;s:3:"364";i:432;s:3:"405";i:433;s:3:"406";i:434;s:3:"407";i:435;s:3:"408";i:436;s:3:"409";i:437;s:3:"410";i:438;s:3:"411";i:439;s:3:"412";i:440;s:3:"413";i:441;s:3:"414";i:442;s:3:"415";i:443;s:3:"416";i:444;s:3:"417";i:445;s:3:"418";i:446;s:3:"419";i:447;s:3:"420";i:448;s:3:"421";i:449;s:3:"422";i:450;s:3:"423";i:451;s:3:"424";i:452;s:3:"425";i:453;s:3:"426";i:454;s:3:"428";i:455;s:3:"429";i:456;s:3:"430";i:457;s:3:"431";i:458;s:3:"432";i:459;s:3:"433";i:460;s:3:"434";i:461;s:3:"435";i:462;s:3:"436";i:463;s:3:"437";i:464;s:3:"438";i:465;s:3:"439";i:466;s:3:"440";i:467;s:3:"441";i:468;s:3:"442";i:469;s:3:"443";i:470;s:3:"444";i:471;s:3:"445";i:472;s:3:"446";i:473;s:3:"447";i:474;s:3:"448";i:475;s:3:"449";i:476;s:4:"2053";i:477;s:4:"2962";i:478;s:4:"3293";i:479;s:4:"3294";i:480;s:4:"3360";i:481;s:4:"3361";i:482;s:4:"3386";i:483;s:4:"3403";i:484;s:4:"3419";i:485;s:4:"3444";i:486;s:4:"3445";i:487;s:4:"3452";i:488;s:4:"3460";i:489;s:4:"3461";i:490;s:4:"3472";i:491;s:4:"3473";i:492;s:4:"3474";i:493;s:4:"3481";i:494;s:4:"3482";i:495;s:4:"3483";i:496;s:4:"3485";i:497;s:4:"3486";i:498;s:4:"3487";i:499;s:4:"3488";i:500;s:4:"3489";i:501;s:4:"3490";i:502;s:4:"3491";i:503;s:4:"3492";i:504;s:4:"3493";i:505;s:4:"3494";i:506;s:4:"3495";i:507;s:4:"3496";i:508;s:4:"3497";i:509;s:4:"3498";i:510;s:4:"3499";i:511;s:4:"3510";i:512;s:4:"3511";i:513;s:4:"3512";i:514;s:4:"3513";i:515;s:4:"3500";i:516;s:4:"3501";i:517;s:4:"3502";i:518;s:4:"3503";i:519;s:4:"3504";i:520;s:4:"3505";i:521;s:4:"3506";i:522;s:4:"3507";i:523;s:4:"3508";i:524;s:4:"3509";}', 'manufacturers' => '', 'suppliers' => '', 'languages' => '', 'currencies' => '', 'features' => '', 'attributes' => '', 'product_qty' => '1', 'show_as_discount' => '0', 'active' => '1', 'show_on_sale' => '0', 'show_prices_drop' => '0', 'show_decimals' => '0', 'filter_prices' => '1', 'filter_store' => '1', 'filter_stock' => '0', 'min_stock' => '0', 'max_stock' => '0', 'backoffice' => '1', 'priority' => '0', 'first_condition' => '0', 'id_shop' => '1', 'schedule' => '[{"isActive":true,"timeFrom":"00:00","timeTill":"23:59"},{"isActive":true,"timeFrom":"00:00","timeTill":"23:59"},{"isActive":true,"timeFrom":"00:00","timeTill":"23:59"},{"isActive":true,"timeFrom":"00:00","timeTill":"23:59"},{"isActive":true,"timeFrom":"00:00","timeTill":"23:59"},{"isActive":true,"timeFrom":"00:00","timeTill":"23:59"},{"isActive":true,"timeFrom":"00:00","timeTill":"23:59"}]', 'filter_weight' => '0', 'min_weight' => '0.000', 'max_weight' => '0.000', 'date_from' => '0000-00-00 00:00:00', 'date_to' => '0000-00-00 00:00:00', 'date_add' => '2020-08-31 17:06:53', 'date_upd' => '2020-09-01 09:39:12')), 'cache_id_2' => '1-1', 'sql' => object(DbQuery), 'res' => array(array('price' => '219.065574', 'wholesale_price' => '0.000000', 'ecotax' => '0.000000', 'id_product_attribute' => '0')), 'row' => array('price' => '219.065574', 'wholesale_price' => '0.000000', 'ecotax' => '0.000000', 'id_product_attribute' => '0'))) in Product.php line 121
    at Product::priceCalculation('1', '1', '0', '10', '152', '22060', '1', '1', '1', true, '2', false, true, true, array(), true, null, true, null, '0', null) in Product.php line 2944
    at ProductCore::getPriceStatic('1', true, null, '2', null, false, true, '1', true, null, null, null, array(), true, true) in AdminProductDataProvider.php line 340
    at AdminProductDataProvider->getCatalogProductList('0', '300', 'active', 'desc', array()) in ProductController.php line 165
    at ProductController->catalogAction(object(Request), '300', '0', 'active', 'desc')
    at call_user_func_array(array(object(ProductController), 'catalogAction'), array(object(Request), 'last', '0', 'last', 'desc')) in bootstrap.php.cache line 3253
    at HttpKernel->handleRaw(object(Request), '1') in bootstrap.php.cache line 3212
    at HttpKernel->handle(object(Request), '1', false) in bootstrap.php.cache line 3366
    at ContainerAwareHttpKernel->handle(object(Request), '1', false) in bootstrap.php.cache line 2566
    at Kernel->handle(object(Request), '1', false) in index.php line 86

 

Link to comment
Share on other sites

Ti dà quell'errore? Allora edita il file /home/zchiskon/public_html/override/classes/Product.php e alla riga 121 trovi il riferimento alla variabile che manca. 

 

Metti 0 oppure null e riprova tipo 

public $attr_wholesale_price = 0; 

Non è che hai cancellato un modulo prima che tutto crollasse ? 

Uno che inizia con WT

M.

Link to comment
Share on other sites

Ciao ziubudda intanto ti ringrazio per le dritte, ho fatto quello che mi hai detto e ora in modalità debug non mi da più errore quando clicco sul catalogo, ma solo se vado a cancellare un articolo (errore in allegato), possibile sia legato ad un errore nel layout?

Riguardo la seconda domanda non saprei, prima che comparisse l'errore me lo gestiva un ragazzo che mi ha sempre assicurato ti non aver fatto nessuna modifica ne ai moduli ne alla grafica.

Saluti

Immagine.jpg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...