Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    223
    Plugin Contributions
    7

    Default Encapsulated plugin installer timeout

    After updating Postcode Autofill to encapsulated plugin and due to big size databases this plugin installs, I get a timeout error when first installing it.
    Code:
    PHP Fatal error: Maximum execution time of 60 seconds exceeded in D:\wamp\www\zencartJP\includes\classes\db\mysql\query_factory.php on line 437
    If I delete the last table which has been only partially installed and then run installer again, then the plugin installs normally, because more than half the tables are already installed, and it tries to install only the new ones.
    It would be definitely better if it would install in one step.
    It seems I can't do much on the plugin side. SQLs queries from the installer are actually cached in ZC and then executed with a limit of one minute for the whole thing.
    Well, I am opened to any idea or suggestion.

  2. #2
    Join Date
    Feb 2014
    Location
    Germany
    Posts
    300
    Plugin Contributions
    0

    Default Re: Encapsulated plugin installer timeout

    Adjust the PHP execution time at your webhosting to sth. like 240.
    My business is GDPR compliant Webhosting and other Web Services.
    Beside that I still have a Zen Cart Shop running for Classic Vespa Spare Parts
    Locations in Germany, Spain and Finland. Other worldwide locations on demand

  3. #3
    Join Date
    Jun 2008
    Location
    Japan
    Posts
    223
    Plugin Contributions
    7

    Default Re: Encapsulated plugin installer timeout

    Quote Originally Posted by Shop Suey View Post
    Adjust the PHP execution time at your webhosting to sth. like 240.
    Thanks for your answer.
    Actually, my php.ini setting
    Code:
    max_execution_time
    is already set to 240. But thanks to your answer I realized this can be set in PHP scripts by function
    Code:
    set_time_limit()
    too and and found out there is a function
    Code:
    zen_set_time_limit()
    in Zen Cart and although Zen Cart has a default setting of 60s that we can set in admin menu
    Code:
    Configuration->MyStore->Admin Set max_execution_time for processes
    .
    Increasing this setting to 120 did the trick.
    I will add this in plugin installer and plugin documentation.

    Thanks!

 

 

Similar Threads

  1. v201 How to override/modify an encapsulated Plugin
    By torvista in forum Contribution-Writing Guidelines
    Replies: 3
    Last Post: 29 May 2024, 07:36 PM
  2. v157 Encapsulated Plugins
    By niccol in forum Bug Reports
    Replies: 6
    Last Post: 22 Jul 2021, 05:53 PM
  3. v157 Plugin Installer - "language" typo
    By niccol in forum Bug Reports
    Replies: 1
    Last Post: 13 Jul 2021, 06:29 PM
  4. v155 Plugin sql, auto-installer, self-deletion
    By torvista in forum Contribution-Writing Guidelines
    Replies: 6
    Last Post: 26 Sep 2017, 01:26 PM
  5. v155 Admin timeout: setting the length of timeout before rolling in again
    By acmaurer in forum General Questions
    Replies: 5
    Last Post: 8 Feb 2017, 02:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR