Jump to content

ivanson7

Members
  • Posts

    95
  • Joined

  • Last visited

About ivanson7

  • Birthday 01/07/1981

Profile Information

  • Location
    Barcelona
  • First Name
    Ivan
  • Last Name
    Malecki

Recent Profile Visitors

240 profile views

ivanson7's Achievements

  1. Hi, any can help me, the 1-click update say the module folder do not have permission but his folder have it. I add a screenshots
  2. Hola a todos Me gusaria que en la pagina de ofertas se vieran todos los productos que estan en oferta y no el maximo configurado por defecto. Antiguamente en PS 1.6 ponia https://www.parashop.es/ofertas?n92 pero ahora ya no funciona en PS 1.7 Alguien me puede ayudar?
  3. Hola a todos a ver si me podeis ayudar, tengo instalado el modulo ps blog y cuando intento crear una categoria me sale este error Exception Symfony\Component\Debug\Exception\ContextErrorException in classes/controller/AdminController.php (line 3870) foreach ($fields as $field => $params) { if (array_key_exists('lang', $params) && $params['lang']) { foreach (Language::getIDs(false) as $id_lang) { if (Tools::isSubmit($field . '_' . (int) $id_lang)) { $object->{$field}[(int) $id_lang] = Tools::getValue($field . '_' . (int) $id_lang); } } } } } AdminControllerCore->copyFromPost(object(Psblogcat), 'psblogcat')in modules/psblog/controllers/admin/AdminPsblogCategories.php (line 155) } else { # validate module $megamenu = new psblogcat(); } $this->copyFromPost($megamenu, $this->table); $megamenu->id_shop = $this->context->shop->id; if ($megamenu->validateFields(false) && $megamenu->validateFieldsLang(false)) { $megamenu->save(); if (isset($_FILES['image']) && isset($_FILES['image']['tmp_name']) && !empty($_FILES['image']['tmp_name'])) { AdminPsblogCategoriesController->postProcess()in classes/controller/Controller.php (line 281) if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) { $this->setMedia(); } // postProcess handles ajaxProcess $this->postProcess(); if (!empty($this->redirect_after)) { $this->redirect(); } ControllerCore->run()in classes/Dispatcher.php (line 515) if (isset($params_hook_action_dispatcher)) { Hook::exec('actionDispatcher', $params_hook_action_dispatcher); } // Running controller $controller->run(); // Execute hook dispatcher after if (isset($params_hook_action_dispatcher)) { Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher); } DispatcherCore->dispatch()in adminp61jvo/index.php (line 97) if (!headers_sent()) { header('Content-Type: text/html; charset=utf-8'); } // Prepare and trigger LEGACY admin dispatcher Dispatcher::getInstance()->dispatch(); } Logs LevelChannelMessage DEBUG06:47:16doctrineSELECT name FROM ps_module WHERE active = 1 WARNING06:47:16translationTranslation not found. WARNING06:47:16translationTranslation not found. WARNING06:47:16translationTranslation not found. WARNING06:47:16translationTranslation not found. WARNING06:47:16translationTranslation not found. WARNING06:47:16translationTranslation not found. WARNING06:47:16translationTranslation not found. INFO06:47:16phpUser Deprecated: AdminMarketing is a deprecated tab since version 1.7.0 and "Default" will be removed in 1.7.1.. Upgrade module using the docs: http://build.prestashop.com/news/how-we-reorganized-main-menu-prestashop-1.7/. DEBUG06:47:16phpWarning: filemtime(): stat failed for /var/www/v2.test1234.es/adminp61jvo/themes/default/css/theme.css WARNING06:47:16translationTranslation not found. WARNING06:47:16translationTranslation not found. WARNING06:47:16translationTranslation not found. DEBUG06:47:16phpWarning: filemtime(): stat failed for /var/www/v2.test1234.es/js/jquery/plugins/jquery.cookie-plugin.js CRITICAL06:47:16phpUncaught Warning: Cannot assign an empty string to a string offset INFO06:47:16phpUser Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector". CRITICAL06:47:16requestUncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Warning: Cannot assign an empty string to a string offset" at /var/www/v2.test1234.es/classes/controller/AdminController.php line 3870
  4. Solucionado!!! todo el problema estaba en un error tipografico del vhost <Directory "/var/www/v2.test1234.es"> en el vhost cuando tenia que ser <Directory "/var/www/v2.test-1234.es"> Encontrado con la teoria del patito de goma "https://es.wikipedia.org/wiki/Método_de_depuración_del_patito_de_goma"
  5. Buenas, Si busco en el phpinfo rewrite me sale en 3 partes Loaded Modules core mod_so mod_watchdog http_core mod_log_config mod_logio mod_version mod_unixd mod_access_compat mod_alias mod_auth_basic mod_auth_digest mod_authn_core mod_authn_file mod_authz_core mod_authz_host mod_authz_user mod_autoindex mod_deflate mod_dir mod_env mod_filter mod_mime prefork mod_negotiation mod_php7 mod_proxy mod_qos mod_reqtimeout mod_rewrite mod_setenvif mod_socache_shmcb mod_ssl mod_status standard Directive Local Value url_rewriter.hosts no value no value url_rewriter.tags form= form= Modulos Apache [email protected] / $ sudo apache2ctl -M Loaded Modules: core_module (static) so_module (static) watchdog_module (static) http_module (static) log_config_module (static) logio_module (static) version_module (static) unixd_module (static) access_compat_module (shared) alias_module (shared) auth_basic_module (shared) auth_digest_module (shared) authn_core_module (shared) authn_file_module (shared) authz_core_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) deflate_module (shared) dir_module (shared) env_module (shared) filter_module (shared) mime_module (shared) mpm_prefork_module (shared) negotiation_module (shared) php7_module (shared) proxy_module (shared) qos_module (shared) reqtimeout_module (shared) rewrite_module (shared) setenvif_module (shared) socache_shmcb_module (shared) ssl_module (shared) status_module (shared) Tendria que aparecer en algun lugar mas? saludos Ivan
  6. Hola a todos, espero me puedan ayudar con el problema ya que estoy intentando todas las opciones que veo y no logro solucionarlo. He instalado prestashop 1.7.6.4 y funciona correctamente, el problema se presenta cuando activo las URL amigables. Si las desactivo de nuevo el sitio funciona correctamente. Error Not Found The requested URL was not found on this server. Apache/2.4.29 (Ubuntu) Server at v2.test1234.es Port 80 Apache El mod_rewrite esta habilitado. <Directory "/var/www/v2.test1234.es"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> Prestashop config Cache Cache desactivado, solo tengo activado Optimización apache y Características opcionales (tampoco funciona desactivando) .htaccess Cada cambio probe de borrarlo y generarlo nuevamente 1 # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again 2 # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution 3 # http://www.prestashop.com - http://www.prestashop.com/forums 4 5 <IfModule mod_rewrite.c> 6 <IfModule mod_env.c> 7 SetEnv HTTP_MOD_REWRITE On 8 </IfModule> 9 10 RewriteEngine on 11 12 13 #Domain: v2.test1234.es 14 RewriteRule . - [E=REWRITEBASE:/] 15 RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] 16 17 # Images 18 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 19 RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] 20 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 21 RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] 22 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 23 RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] 24 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 25 RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] 26 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 27 RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] 28 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 29 RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] 30 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 31 RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] 32 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 33 RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] 34 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 35 RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] 36 RewriteCond %{HTTP_HOST} ^v2.test1234.es$ 37 RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] 38 # AlphaImageLoader for IE and fancybox 39 RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] 40 41 # Dispatcher 42 RewriteCond %{REQUEST_FILENAME} -s [OR] 43 RewriteCond %{REQUEST_FILENAME} -l [OR] 44 RewriteCond %{REQUEST_FILENAME} -d 45 RewriteRule ^.*$ - [NC,L] 46 RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] 47 </IfModule> 48 49 AddType application/vnd.ms-fontobject .eot 50 AddType font/ttf .ttf 51 AddType font/otf .otf 52 AddType application/font-woff .woff 53 AddType font/woff2 .woff2 54 <IfModule mod_headers.c> 55 <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$"> 56 Header set Access-Control-Allow-Origin "*" 57 </FilesMatch> 58 </IfModule> 59 60 <IfModule mod_expires.c> 61 ExpiresActive On 62 ExpiresByType image/gif "access plus 1 month" 63 ExpiresByType image/jpeg "access plus 1 month" 64 ExpiresByType image/png "access plus 1 month" 65 ExpiresByType text/css "access plus 1 week" 66 ExpiresByType text/javascript "access plus 1 week" 67 ExpiresByType application/javascript "access plus 1 week" 68 ExpiresByType application/x-javascript "access plus 1 week" 69 ExpiresByType image/x-icon "access plus 1 year" 70 ExpiresByType image/svg+xml "access plus 1 year" 71 ExpiresByType image/vnd.microsoft.icon "access plus 1 year" 72 ExpiresByType application/font-woff "access plus 1 year" 73 ExpiresByType application/x-font-woff "access plus 1 year" 74 ExpiresByType font/woff2 "access plus 1 year" 75 ExpiresByType application/vnd.ms-fontobject "access plus 1 year" 76 ExpiresByType font/opentype "access plus 1 year" 77 ExpiresByType font/ttf "access plus 1 year" 78 ExpiresByType font/otf "access plus 1 year" 79 ExpiresByType application/x-font-ttf "access plus 1 year" 80 ExpiresByType application/x-font-otf "access plus 1 year" 81 </IfModule> 82 83 <IfModule mod_headers.c> 84 Header unset Etag 85 </IfModule> 86 FileETag none 87 <IfModule mod_deflate.c> 88 <IfModule mod_filter.c> 89 AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript font/ttf application/x-font-ttf font/otf application/x-font-otf font/opentype image/svg+xml 90 </IfModule> 91 </IfModule> 92 93 #If rewrite mod isn't enabled 94 ErrorDocument 404 /index.php?controller=404 95 96 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again 97 ~ Se les ocurre algo? saludos Ivan
  7. Hola a todos! Estoy intanto configurar un 1.7.6.4 en modo multi tienda, y luego montar dos tiendas. Una en B2C y la segunda en B2B, pero al activar la opcion de B2B en la segunda por mas que sale el cartel de se guardo correctamente no queda activado. Es posible que no se pueda o estoy haciendo algo mal?
  8. Hola a todos, cuando intentamos cambiar el estado de un pedido nos sale este error. Nos podrian ayudar. Version Prestashop: 1.6.1.3 [PrestaShopException] Property CartRule->name is empty at line 954 in file classes/ObjectModel.php 949. } 950. 951. $message = $this->validateField($field, $value, $id_lang); 952. if ($message !== true) { 953. if ($die) { 954. throw new PrestaShopException($message); 955. } 956. return $error_return ? $message : false; 957. } 958. } 959. } ObjectModelCore->validateFieldsLang - [line 295 - classes/ObjectModel.php]290. // Backward compatibility 291. if (method_exists($this, 'getTranslationsFieldsChild')) { 292. return $this->getTranslationsFieldsChild(); 293. } 294. 295. $this->validateFieldsLang(); 296. $is_lang_multishop = $this->isLangMultishop(); 297. 298. $fields = array(); 299. if ($this->id_lang === null) { 300. foreach (Language::getIDs(false) as $id_lang) { ObjectModelCore->getFieldsLang - [line 511 - classes/ObjectModel.php]506. return false; 507. } 508. 509. // Database insertion for multilingual fields related to the object 510. if (!empty($this->def['multilang'])) { 511. $fields = $this->getFieldsLang(); 512. if ($fields && is_array($fields)) { 513. $shops = Shop::getCompleteListOfShopsID(); 514. $asso = Shop::getAssoTable($this->def['table'].'_lang'); 515. foreach ($fields as $field) { 516. foreach (array_keys($field) as $key) { ObjectModelCore->add - [line 129 - classes/CartRule.php] - [2 Arguments]124. { 125. if (!$this->reduction_currency) { 126. $this->reduction_currency = (int)Configuration::get('PS_CURRENCY_DEFAULT'); 127. } 128. 129. if (!parent::add($autodate, $null_values)) { 130. return false; 131. } 132. 133. Configuration::updateGlobalValue('PS_CART_RULE_FEATURE_ACTIVE', '1'); 134. return true; CartRuleCore->add - [line 105 - modules/referralprogram/ReferralProgramModule.php]100. if (empty($cartRule->name)) 101. $cartRule->name = 'Referral reward'; 102. $cartRule->id_customer = (int)$id_customer; 103. $cartRule->reduction_currency = (int)$id_currency; 104. 105. if ($cartRule->add()) 106. { 107. if ($register != false) 108. { 109. if ($register == 'sponsor') 110. $this->id_cart_rule_sponsor = (int)$cartRule->id; ReferralProgramModule->registerDiscount - [line 70 - modules/referralprogram/ReferralProgramModule.php] - [3 Arguments]65. 66. public function registerDiscountForSponsor($id_currency) 67. { 68. if ((int)$this->id_cart_rule_sponsor > 0) 69. return false; 70. return $this->registerDiscount((int)$this->id_sponsor, 'sponsor', (int)$id_currency); 71. } 72. 73. public function registerDiscountForSponsored($id_currency) 74. { 75. if (!(int)$this->id_customer OR (int)$this->id_cart_rule > 0) ReferralProgramModule->registerDiscountForSponsor - [line 515 - modules/referralprogram/referralprogram.php] - [1 Arguments]510. $nbOrdersCustomer = (int)$stats['nb_orders'] + 1; // hack to count current order 511. $referralprogram = new ReferralProgramModule(ReferralProgramModule::isSponsorised((int)($customer->id), true)); 512. if (!Validate::isLoadedObject($referralprogram)) 513. return false; 514. $sponsor = new Customer((int)$referralprogram->id_sponsor); 515. if ((int)$orderState->logable AND $nbOrdersCustomer >= (int)$this->_configuration['REFERRAL_ORDER_QUANTITY'] AND $referralprogram->registerDiscountForSponsor((int)$order->id_currency)) 516. { 517. $cartRule = new CartRule((int)$referralprogram->id_cart_rule_sponsor); 518. $currency = new Currency((int)$order->id_currency); 519. $discount_display = ReferralProgram::displayDiscount( (float) $cartRule->reduction_percent ? (float) $cartRule->reduction_percent : (int) $cartRule->reduction_amount, (float) $cartRule->reduction_percent ? 1 : 2, $currency); $data = array('{sponsored_firstname}' => $customer->firstname, '{sponsored_lastname}' => $customer->lastname, '{discount_display}' => $discount_display, '{discount_name}' => $cartRule->code); 520. Mail::Send((int)$order->id_lang, 'referralprogram-congratulations', Mail::l('Congratulations!', (int)$order->id_lang), $data, $sponsor->email, $sponsor->firstname.' '.$sponsor->lastname, strval(Configuration::get('PS_SHOP_EMAIL')), strval(Configuration::get('PS_SHOP_NAME')), NULL, NULL, dirname(__FILE__).'/mails/'); ReferralProgram->hookUpdateOrderStatus - [line 587 - classes/Hook.php] - [1 Arguments]582. } 583. } 584. 585. // Immediately return the result if we do not log performances 586. if (!Module::$_log_modules_perfs) { 587. return $module->{$method}($params); 588. } 589. 590. // Store time and memory before and after hook call and save the result in the database 591. $time_start = microtime(true); 592. $memory_start = memory_get_usage(true); HookCore::coreCallHook - [line 544 - classes/Hook.php] - [3 Arguments]539. 540. // Call hook method 541. if ($hook_callable) { 542. $display = Hook::coreCallHook($moduleInstance, 'hook'.$hook_name, $hook_args); 543. } elseif ($hook_retro_callable) { 544. $display = Hook::coreCallHook($moduleInstance, 'hook'.$retro_hook_name, $hook_args); 545. } 546. 547. // Live edit 548. if (!$array_return && $array['live_edit'] && Tools::isSubmit('live_edit') && Tools::getValue('ad') 549. && Tools::getValue('liveToken') == Tools::getAdminToken('AdminModulesPositions' HookCore::exec - [line 105 - classes/order/OrderHistory.php] - [7 Arguments]100. if (in_array($new_os->id, array(Configuration::get('PS_OS_PAYMENT'), Configuration::get('PS_OS_WS_PAYMENT')))) { 101. Hook::exec('actionPaymentConfirmation', array('id_order' => (int)$order->id), null, false, true, false, $order->id_shop); 102. } 103. 104. // executes hook 105. Hook::exec('actionOrderStatusUpdate', array('newOrderStatus' => $new_os, 'id_order' => (int)$order->id), null, false, true, false, $order->id_shop); 106. 107. if (Validate::isLoadedObject($order) && ($new_os instanceof OrderState)) { 108. $context = Context::getContext(); 109. 110. // An email is sent the first time a virtual item is validated OrderHistoryCore->changeIdOrderState - [line 531 - controllers/admin/AdminOrdersController.php] - [3 Arguments]526. 527. $use_existings_payment = false; 528. if (!$order->hasInvoice()) { 529. $use_existings_payment = true; 530. } 531. $history->changeIdOrderState((int)$order_state->id, $order, $use_existings_payment); 532. 533. $carrier = new Carrier($order->id_carrier, $order->id_lang); 534. $templateVars = array(); 535. if ($history->id_order_state == Configuration::get('PS_OS_SHIPPING') && $order->shipping_number) { 536. $templateVars = array('{followup}' => str_replace('@', $order->shipping_number, $carrier->url)); AdminOrdersControllerCore->postProcess - [line 178 - classes/controller/Controller.php]173. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) { 174. $this->setMedia(); 175. } 176. 177. // postProcess handles ajaxProcess 178. $this->postProcess(); 179. 180. if (!empty($this->redirect_after)) { 181. $this->redirect(); 182. } 183. ControllerCore->run - [line 367 - classes/Dispatcher.php]362. if (isset($params_hook_action_dispatcher)) { 363. Hook::exec('actionDispatcher', $params_hook_action_dispatcher); 364. } 365. 366. // Running controller 367. $controller->run(); 368. } catch (PrestaShopException $e) { 369. $e->displayMessage(); 370. } 371. } 372. DispatcherCore->dispatch - [line 58 - admin/index.php]53. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab'])) { 54. $_REQUEST['controller'] = strtolower($_REQUEST['tab']); 55. } 56. 57. // Prepare and trigger admin dispatcher 58. Dispatcher::getInstance()->dispatch();
  9. El problema estaba en que el modulo de Nacex hace unas comprobaciones de precio con su web service. Fue desactivar la opcion de que controle los precios y ponerlos manualmente y volver a funcionar con normalidad.
×
×
  • Create New...