Jump to content

Search the Community

Showing results for tags 'max execution time'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community Help and Support
    • PrestaShop Download
    • PrestaShop Addons
  • News and Announcements
    • PrestaShop news and releases
    • PrestaShop Beta
    • PrestaShop Blogs
    • PrestaShop Meetups
  • International community (English)
    • General topics
    • PrestaShop Merchants
    • PrestaShop Developers
    • Taxes, Translations & Laws
    • Community Modules and Themes
  • Forum francophone
    • Discussion générale
    • Aide et support communautaire
    • PrestaShop pour les marchands
    • PrestaShop pour les développeurs
    • Adaptation aux lois Québécoises
    • Modules et thèmes gratuits
    • Modules et thèmes payants
  • Foro en Español
    • Discusión general
    • Soporte de la comunidad y ayuda
    • Comerciantes PrestaShop
    • Desarrolladores PrestaShop
    • Módulos y plantillas gratuitas
  • Forum italiano
    • Forum generale
    • Aiuto e supporto della Community
    • Commercianti PrestaShop
    • Sviluppatori PrestaShop
    • Aspetti legali sull'eCommerce
    • Moduli e template gratuiti
  • Deutsches Forum
    • Generelle Fragen
    • Support und Hilfe aus der Community
    • e-Commerce/Versand-Handel mit Prestashop
    • Prestashop-Entwickler
    • Anpassung an deutsches Recht
    • Kostenlose Module und Templates
    • Generelle Fragen Copy
  • Nederlandstalig forum
    • Algemeen
    • Hulp en ondersteuning, van en voor de community
    • PrestaShop-winkeliers
    • PrestaShop-ontwikkelaars
    • Het aanpassen van PrestaShop
    • Gratis modules en templates
  • Fórum em Português
    • Fórum Geral
    • Ajuda e Suporte da Comunidade
    • Lojistas que utilizam o PrestaShop
    • Desenvolvedores PrestaShop
    • Legislação específica
    • Módulos e temas gratuitos
  • Polskie forum
    • Forum ogólne
    • Wsparcie i pomoc użytkowników
    • Oferty twórców PrestaShop
    • Deweloperzy PrestaShop
    • Darmowe Moduły i Szablony
  • Dansk forum
    • Generelt forum
    • Hjælp og support fra fællesskabet
    • PrestaShop for købmænd
    • PrestaShop for udviklere
    • Love og regler
    • Gratis moduler og temaer
  • České fórum
    • Instalasi, Konfigurasi dan upgrade
    • Obecná diskuze
    • Bezplatné moduly a šablony
    • PrestaShop vývojáři
    • PrestaShop obchodníci
  • Bahasa Indonesia
    • Diskusi Umum
    • Podpora a pomoc komunity
    • Laporan Bug
    • Jasa, Promosi & Lowongan Kerja
  • Svenskt forum
    • Allmän diskussion
    • Installation, konfigurering och uppdatering
  • Forumul românesc
    • Discuţii generale
    • Instalare, configurare şi upgrade
  • Pусский язык
    • Обсуждение скрипта
    • Установка, Настройка, Обновление
    • Прием багов
  • Slovenské fórum
    • Všeobecná diskusia
    • Podpora a pomoc komunity
    • PrestaShop obchodníci
    • PrestaShop vývojári
    • Bezplatné moduly a šablóny
  • Türkçe Topluluğu
    • Genel Konular
    • Topluluk desteği ve yardım
    • PrestaShop Tüccarları
    • Prestashop Geliştiricileri
    • Ücretsiz Modül ve Temalar
  • Diễn đàn tiếng Việt
    • Thảo luận chung
    • Hỗ trợ từ cộng đồng
    • Dành cho chủ doanh nghiệp / cửa hàng
    • Dành cho lập trình viên
  • PrestaShop Communities
    • اللغه العربيه [Arabic]
    • Ελληνικά [Greek]
    • עִבְרִית [Hebrew]
    • 中文
    • Magyar [Hungarian]
    • 日本語 [Japanese]
    • Lietuviškai [Lithuanian]
    • انجمن فارسی [Persian]
    • ไทย [Thai]
    • Malaysia [Malaysian]
    • Eesti [Estonian]
    • Slovenščina [Slovenian]
    • Српски [Serbian]
  • IP. Board Forum
    • IP. Board Forum Questions and Issues
  • Archive
    • Zapłać Moduły i Szablony [ARCHIVE]
    • Moduly, upravy a dizajn [ARCHIVE]
    • Phát triển và các mô-đun [ARCHIVE]
    • Yazılım, Modül ve Tema [ARCHIVE]
    • Модули, Шаблоны [ARCHIVE]
    • Module şi teme [ARCHIVE]
    • Pengembangan dan Modul [ARCHIVE]
    • Moduler och teman [ARCHIVE]
    • Ecommerce x PrestaShop [ARCHIVE BOARD]
    • Vývoj a moduly [ARCHIVE]
    • Kostenpflichtige Module, Templates [ARCHIVE]
    • Módulos y temas pagos [ARCHIVE]
    • Módulos e temas pagos [ARCHIVE]
    • Servizi commerciali [ARCHIVE]
    • Forum - Feedback Contributor
    • PrestaShop Cloud

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 2 results

  1. Hello everyone ! I'm very disapointed with some prestashop issues I encounter for those tasks : - Combination generation - Image regeneration - Module traduction The fact is that on small servers offer(OVH or Gandi) the php.ini file limits the php max_execution_time to 120s. So when we have many products the script takes to long and gives a 503 errror... I know that module exits to avoid those issues but I think this issues are more like to be improved in the prestashop core. I actually managed to do it with cron task for image regeneration in this post (thanks to Juanmaria) : http://www.prestashop.com/forums/topic/239917-php-code-to-regenerate-thumbnails-by-image-id/ Here's the how to : 1. Create this file -> /override/controllers/admin/AdminImagesController.php : class AdminImagesController extends AdminImagesControllerCore { public function regenerateThumbnails($type = 'all', $deleteOldImages = false) { return parent::_regenerateThumbnails($type, $deleteOldImages); } } 2. Create this file -> /myadminfolder/thumbnailscron.php : if ($argc != 3) die('Usage: php thumbnailscron_cli.php my_admin_directory my_token'); $myDir=$argv[1]; $myToken=$argv[2]; if (!chdir($myDir)) die($myDir . ' is not a valid directory!'); define('_PS_ADMIN_DIR_', getcwd()); include(dirname(__FILE__).'/../config/config.inc.php'); Context::getContext()->shop->setContext(Shop::CONTEXT_ALL); if (substr(_COOKIE_KEY_, 34, 8) != $myToken) die ("bad token"); ini_set('max_execution_time', 7200); $ic = new AdminImagesController; $ic->regenerateThumbnails(); The token is the same as the one in the searchcron -> go to your BO -> preferences -> search In french préférences -> recherche 3. Launch the php script with cron like this : php thumbnailscron.php my_admin_directory my_token Now if somebody knows or aimed to improve combination generation without paying for a module, it would be great to have your experience shared ! We have the same problem for module traductions either !! There are actually 2 module to avoid it : - for the module traduction -> http://addons.prestashop.com/fr/outils-administration-modules-prestashop/5615-traduction-simplifiee-de-prestashop.html - for the combination -> http://addons.prestashop.com/fr/outils-administration-modules-prestashop/5052-generateur-combinaisons-declinaisons-illimites-plus-3.html The aim of this topic is to improve that part of prestashop once at all ^^ I will post my research for those two points. Thanks in advance for your contribution !!! Best regards
  2. Bonjour à tous, Voilà, j'ai décidé de mettre mon site sur un serveur dédié, j'ai pris un kimsufi chez Ovh pour un mois, pour faire l'essai. Afin de rester en sécurité, et de pouvoir importer des produits sans être bloqué (comme c'est le cas sur un serveur mutualisé), je sais qu'il faut paramétrer le php.ini, notamment au niveau des 3 lignes suivantes: max_execution_time = 30 max_input_time = 120 memory_limit = 128M Quelles seraient les bonnes valeur svp ? En mettant 0 / 120 / 256 ça fonctionne, mais est-ce en sécurité ? (Si je laisse à 30 / 120 / 128, alors je ne peux pas importer de nouveaux produits, et surtout le backoffice ne s'affiche pas en entier) Merci à tous pour ces indications qui me semblent précieuses.
×
×
  • Create New...