Jump to content

T74

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by T74

  1. had similar issue 1.7 no multistore, after moving cat from parent to subcategory suddenly can't see subcategory on admin page anymore, filter got empty result. sql shows ... WHERE 1 AND `id_parent` = >>>2<<< AND `name` LIKE ... restricts to parent id "2" cat only. simple hack in AdminCategoriesController.php near line 145 $this->_select = 'sa.position position'; //$this->original_filter = $this->_filter .= ' AND `id_parent` = ' . (int) $id_parent . ' '; <----------comment this line out $this->_use_found_rows = false;
  2. Hi, Similar problem here reference# is some numbers-% not clean int, validation 100% but import 0% and no message at all what's wrong. PS 1.7.5.0 Use product reference as key->No Force all ID numbers->No #import dev.log [2019-11-09 18:41:13] php.CRITICAL: Uncaught Exception: An exception has been thrown during the rendering of a template ("Unable to load template 'file:layout-ajax.tpl'"). {"exception":"[object] (Twig_Error_Runtime(code: 0): An exception has been thrown during the rendering of a template (\"Unable to load template 'file:layout-ajax.tpl'\"). at /data01/xx/domeenid/www.xxx.xx/htdocs/p/src/PrestaShopBundle/Resources/views/Admin/layout.html.twig:34, SmartyException(code: 0): Unable to load template 'file:layout-ajax.tpl' at /data01/xx/domeenid/www.xxx.xx/htdocs/p/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:195)"} [] [2019-11-09 18:41:13] request.CRITICAL: Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("Unable to load template 'file:layout-ajax.tpl'")." at /data01/xx/domeenid/www.xxx.xx/htdocs/p/src/PrestaShopBundle/Resources/views/Admin/layout.html.twig line 34 {"exception":"[object] (Twig_Error_Runtime(code: 0): An exception has been thrown during the rendering of a template (\"Unable to load template 'file:layout-ajax.tpl'\"). at /data01/xx/domeenid/www.xxx.xx/htdocs/p/src/PrestaShopBundle/Resources/views/Admin/layout.html.twig:34, SmartyException(code: 0): Unable to load template 'file:layout-ajax.tpl' at /data01/xx/domeenid/www.xxx.xx/htdocs/p/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php:195)"} []
  3. Thank you peter-D! Made suitable for override. Insert Attachment to: override/classes/Search.php tested on 1.7.5 Search.php
  4. How to Remove birthday box in checkout Personal Information in prestashop 1.7.5 put check into line 30 in /themes/classic/templates/_partials/ form-fields.tpl {if $field.type == 'hidden'} {block name='form_field_item_hidden'} <input type="hidden" name="{$field.name}" value="{$field.value}"> {/block} {elseif {$field.name} == 'birthday'} {else} <div class="form-group row {if !empty($field.errors)}has-error{/if}"> <label class="col-md-3 form-control-label{if $field.required} required{/if}"> {if $field.type !== 'checkbox'} {$field.label} {/if} </label> ---------------------------------------------------------------- removing the birthday block in this file won't help if the field is optional it passes as other in {else} {block name='form_field_item_other'} other words $field.type on birthday field is not 'birthday' and this fails {elseif $field.type === 'birthday'}
  5. prestashop_1.7.2.5 & XAMPP 7.0.0 [PHP: 7.0.0] 1: HTTP 200 - parsererror in \vendor\icanboogie\cldr\lib\WebProvider.php $this->origin=http://i18n.prestashop.com/cldr/json-full/ $path=supplemental/codeMappings curl_getinfo=Array( => http://i18n.prestashop.com/cldr/json-full/supplemental/codeMappings.json [content_type] => [http_code] => 0 [header_size] => 0 [request_size] => 0 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 20.203 [namelookup_time] => 0 [connect_time] => 0 [pretransfer_time] => 0 [size_upload] => 0 [size_download] => 0 [speed_download] => 0 [speed_upload] => 0 [download_content_length] => -1 [upload_content_length] => -1 [starttransfer_time] => 0 [redirect_time] => 0 [redirect_url] => curl_error=Failed to connect to i18n.prestashop.com port 80: Timed out tried this: public function provide($path) { $connection = $this->obtain_connection(); curl_setopt($connection, CURLOPT_TIMEOUT, 600); curl_setopt($connection, CURLOPT_CONNECTTIMEOUT, 0); curl_setopt($connection, CURLOPT_URL, $this->origin . $path . '.json'); $rc = curl_exec($connection); :still timeout measured $connection time with microtime ~17s this happens on slow install environments. ugly solution was: if ($this->origin == "http://i18n.prestashop.com/cldr/json-full/") { $this->origin = 'https://www.unicode.org/repos/cldr-aux/json/26/'; } //to get rid: curl_error=SSL certificate problem: unable to get local issuer certificate curl_setopt($connection, CURLOPT_SSL_VERIFYPEER, false);
×
×
  • Create New...