# Shopware update failed with "Call to undefined function set\_time\_limit()"

**URL:** <https://forum.shopware.com/t/shopware-update-failed-with-call-to-undefined-function-set-time-limit/98122>\
**Category:** Administration (EN)\
**Created:** [21. Januar 2023 um 12:54 UTC](https://forum.shopware.com/t/shopware-update-failed-with-call-to-undefined-function-set-time-limit/98122 "2023-01-21T12:54:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thorsten.niehues](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@thorsten.niehues](https://forum.shopware.com/u/thorsten.niehues)\
**Post date:** [21. Januar 2023 um 12:54 UTC](https://forum.shopware.com/t/shopware-update-failed-with-call-to-undefined-function-set-time-limit/98122/1 "2023-01-21T12:54:44Z")

</div>

When logging into the admin / backend gui I received a message about the update 6.4.18.1  
After confirming the update I receive the following message :

# Slim Application Error

The application could not run because of the following error:

## Details

**Type:** Error

**Message:** Call to undefined function set\_time\_limit()

**File:** /myShopSite/vendor/shopware/recovery/Update/src/app.php

**Line:** 46

## Trace

#0 [internal function]: Closure-\>{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))  
#1 /home/clients/b1529c5c05c3faf4a6cfd6d4e4260f70/sites/tns-gemusehobel.ch/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/DeferredCallable.php(57): call\_user\_func\_array(Object(Closure), Array)  
#2 [internal function]: Slim\DeferredCallable-\>\_\_invoke(Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))  
#3 /home/clients/b1529c5c05c3faf4a6cfd6d4e4260f70/sites/tns-gemusehobel.ch/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(70): call\_user\_func(Object(Slim\DeferredCallable), Object(Slim\Http\Request), Object(Slim\Http\Response), Object(Slim\App))  
#4 /home/clients/b1529c5c05c3faf4a6cfd6d4e4260f70/sites/tns-gemusehobel.ch/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App-\>Slim{closure}(Object(Slim\Http\Request), Object(Slim\Http\Response))  
#5 /home/clients/b1529c5c05c3faf4a6cfd6d4e4260f70/sites/tns-gemusehobel.ch/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/App.php(392): Slim\App-\>callMiddlewareStack(Object(Slim\Http\Request), Object(Slim\Http\Response))  
#6 /home/clients/b1529c5c05c3faf4a6cfd6d4e4260f70/sites/tns-gemusehobel.ch/vendor/shopware/recovery/Common/vendor/slim/slim/Slim/App.php(297): Slim\App-\>process(Object(Slim\Http\Request), Object(Slim\Http\Response))  
#7 /home/clients/b1529c5c05c3faf4a6cfd6d4e4260f70/sites/tns-gemusehobel.ch/vendor/shopware/recovery/Update/index.php(39): Slim\App-\>run()  
#8 /home/clients/b1529c5c05c3faf4a6cfd6d4e4260f70/sites/tns-gemusehobel.ch/public/recovery/update/index.php(6): require\_once(‚/home/clients/b…‘)  
#9 {main}

---

<div class="post-metadata">

**Author:** ![thorsten.niehues](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@thorsten.niehues](https://forum.shopware.com/u/thorsten.niehues)\
**Post date:** [21. Januar 2023 um 13:15 UTC](https://forum.shopware.com/t/shopware-update-failed-with-call-to-undefined-function-set-time-limit/98122/2 "2023-01-21T13:15:09Z")

</div>

I tried removed line 46 from the script :

was  
@set\_time\_limit(0);

commented line 46 (not sure why the call failed on my web-server !?  
#set\_time\_limit(0);

But afterwards the script / installation runs fine 🙂
