# Commerce stops working Err. 500 front and back-end

**URL:** <https://forum.modmore.com/t/commerce-stops-working-err-500-front-and-back-end/2238>\
**Category:** Commerce\
**Created:** [May 23, 2021, 12:00pm UTC](https://forum.modmore.com/t/commerce-stops-working-err-500-front-and-back-end/2238 "2021-05-23T12:00:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashin](https://forum.modmore.com/letter_avatar_proxy/v4/letter/s/46a35a/32.png) [@shashin](https://forum.modmore.com/u/shashin)\
**Post date:** [May 23, 2021, 12:00pm UTC](https://forum.modmore.com/t/commerce-stops-working-err-500-front-and-back-end/2238/1 "2021-05-23T12:00:02Z")

</div>

Hello

Today I get Error 500 in front and back end with Commerce 1.1.4pl and MODX 2.8.2  
I have updated to Commerce 1.2.0-rc5 but when I click on “Install” I get a blank modal window with no message.

 ![Screenshot from 2021-05-23 13-53-35](https://forum.modmore.com/uploads/default/original/1X/79653e0efe6bf30d5dcdc005df7b220be2ea0f7e.png) ![Screenshot from 2021-05-23 13-52-06](https://forum.modmore.com/uploads/default/original/1X/06a36952f28bc668afa47882c61178735d38242a.png)

Alos I bought a licence and I’m still working on the dev.\* website.  
On my Modmore account, I have for the Commerce licence key : "This purchase is not yet in use. "  
Does I need a new API key ?

---

<div class="post-metadata">

**Author:** ![mhamstra](https://forum.modmore.com/user_avatar/forum.modmore.com/mhamstra/32/459_2.png) [@mhamstra](https://forum.modmore.com/u/mhamstra)\
**Post date:** [May 23, 2021, 1:04pm UTC](https://forum.modmore.com/t/commerce-stops-working-err-500-front-and-back-end/2238/2 "2021-05-23T13:04:14Z")

</div>

Jean-Philippe also sent an email about this just now, but please start by checking the MODX and server error logs for anything that may explain why you’re getting a 500 error.

You never have to change API keys if there’s something related to a license. License keys are handled in the packages and during automatic license checks.

On a `dev.*` site you’ll be using a free development license so the license you bought would indeed not be in use yet.

---

<div class="post-metadata">

**Author:** ![shashin](https://forum.modmore.com/letter_avatar_proxy/v4/letter/s/46a35a/32.png) [@shashin](https://forum.modmore.com/u/shashin)\
**Post date:** [May 23, 2021, 1:15pm UTC](https://forum.modmore.com/t/commerce-stops-working-err-500-front-and-back-end/2238/3 "2021-05-23T13:15:04Z")

</div>

Hello Mark,

When I disable the pricing and products TVs, I can load the page in back end and front is OK.

MODX error log doesn’t show any Commerce related rows

I have rows related to :

```auto
[2021-05-23 13:08:44] (ERROR @ /components/seosuite/model/seosuite/ **seosuite**.class.php : 779) PHP warning: trim() expects parameter 1 to be string, array given

[2021-05-23 13:08:43] (ERROR in modMenu::getSubMenus @ /var/www/clients/ ***/*** /private/****/model/modx/modmenu.class.php : 148)**modAction** support is deprecated since version 2.3.0. Support for modAction has been replaced with routing based on a namespace and action name. Please update the extra with the namespace statusoverrideips to the routing based system.

[2021-05-23 12:58:29] (ERROR @ /var/www/clients/client7/ ***/*** / ***/cache/*** /includes/elements/modsnippet/66.include.cache.php : 69) [**migxResourceMediaPath**]: docid could not be determined.

```

---

<div class="post-metadata">

**Author:** ![shashin](https://forum.modmore.com/letter_avatar_proxy/v4/letter/s/46a35a/32.png) [@shashin](https://forum.modmore.com/u/shashin)\
**Post date:** [May 23, 2021, 1:32pm UTC](https://forum.modmore.com/t/commerce-stops-working-err-500-front-and-back-end/2238/4 "2021-05-23T13:32:32Z")

</div>

Bur in ISPConfig website logs I have many rows such that :

```auto
[Sun May 23 13:49:26.475947 2021] [proxy_fcgi:error] [pid 3619] [client 78.198.35.6:38202] AH01071: Got error 'PHP message: PHP Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in /var/www/clients/ ***/*** /private/ ****/components/** commerce**/model/commerce/comtransactionlog.class.php on line 19\n'
```

---

<div class="post-metadata">

**Author:** ![shashin](https://forum.modmore.com/letter_avatar_proxy/v4/letter/s/46a35a/32.png) [@shashin](https://forum.modmore.com/u/shashin)\
**Post date:** [May 23, 2021, 1:57pm UTC](https://forum.modmore.com/t/commerce-stops-working-err-500-front-and-back-end/2238/5 "2021-05-23T13:57:59Z")

</div>

Found… PHP version was reverted to 7.0, switched to 7.2 PHP-FPM and errors disappeared !

---

<div class="post-metadata">

**Author:** ![mhamstra](https://forum.modmore.com/user_avatar/forum.modmore.com/mhamstra/32/459_2.png) [@mhamstra](https://forum.modmore.com/u/mhamstra)\
**Post date:** [May 23, 2021, 5:06pm UTC](https://forum.modmore.com/t/commerce-stops-working-err-500-front-and-back-end/2238/6 "2021-05-23T17:06:52Z")

</div>

Awesome, and that fixed the update/install as well?
