# Problems with 5.9.8

**URL:** <https://community.localwp.com/t/problems-with-5-9-8/23921>\
**Category:** Support\
**Created:** [January 16, 2021, 1:38pm UTC](https://community.localwp.com/t/problems-with-5-9-8/23921 "2021-01-16T13:38:40Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![toni](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@toni](https://community.localwp.com/u/toni)\
**Post date:** [January 16, 2021, 1:38pm UTC](https://community.localwp.com/t/problems-with-5-9-8/23921/1 "2021-01-16T13:38:40Z")

</div>

### Issue Summary

When I select PHP 8.0 the performance is slow. When looking in addons I cannot enable php 8.0 local lightning service, I try to enable it and restart local but it’s always off. Also I am unable to delete the addon image compression and this local lightning service after going back to php 7.4.1 even after restarting it’s still there.

#### Troubleshooting Questions

- Does this happen for all sites in Local, or just one in particular?  
All.

- Are you able to create a new, plain WordPress site in Local and access it in a Browser?  
Yes.

#### Replication

Install the latest version of local (5.9.8+5191) and try to delete addons and try using php 8.0.

#### System Details

- Which version of Local is being used?

5.9.8+5191

- What Operating System (OS) and OS version is being used?  
Windows 10 Home 10.0.18362

- Attach the Local Log. See this Community Forum post for instructions on how to do so:

---

<div class="post-metadata">

**Author:** ![Kubitomakita](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/kubitomakita/32/12342_2.png) [@Kubitomakita](https://community.localwp.com/u/Kubitomakita)\
**Post date:** [January 20, 2021, 1:35pm UTC](https://community.localwp.com/t/problems-with-5-9-8/23921/2 "2021-01-20T13:35:22Z")

</div>

I can confirm this is happening and I’m on Windows as well.

I don’t think this is the PHP layer issue, as Query Monitor reports page load in 1-2 seconds, but in reality it loads 20 seconds. So something else must be choking.

PS. I have to update Visual C++ to the latest in order the get PHP8 working, otherwise, it was giving 502 errors.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [January 20, 2021, 4:34pm UTC](https://community.localwp.com/t/problems-with-5-9-8/23921/3 "2021-01-20T16:34:40Z")

</div>

> [@toni](#):
>
> I am unable to delete the addon image compression

This addon comes bundled with Local, so you likely can’t delete it. Are you trying to delete it from the system file-browser, or are you trying to disable it for a site within Local?

> [@Kubitomakita](#):
>
> I have to update Visual C++ to the latest in order the get PHP8 working,

Do you mean that the performance is fine after updating Visual C++, or it’s still slow, but that was needed in order to avoid the `502`?

It’s interesting that Query Monitor is showing such a different page load than what you are actually seeing, which makes me wonder if it has something to do with the communication between nginx and PHP.

@Kubitomakita – does the performance improve if you enable `localhost` router mode from “Preferences \> Advanced \> Router Mode?”

Basically, this setting makes it so you are going through one less nginx process and communicating directly with the site.

---

<div class="post-metadata">

**Author:** ![Kubitomakita](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/kubitomakita/32/12342_2.png) [@Kubitomakita](https://community.localwp.com/u/Kubitomakita)\
**Post date:** [January 20, 2021, 6:51pm UTC](https://community.localwp.com/t/problems-with-5-9-8/23921/4 "2021-01-20T18:51:37Z")

</div>

> Do you mean that the performance is fine after updating Visual C++, or it’s still slow, but that was needed in order to avoid the 502?

It was needed to avoid 502.

> does the performance improve if you enable `localhost` router mode from “Preferences \> Advanced \> Router Mode?”

No, still the same.

Surprisingly this is happening to 2 of 3 sites I tested. The other one is working fine, maybe slightly slover, but still acceptable. Even though the slow ones are almost vanilla WP, and the one which is fast has a bloated database and multiple plugins installed.

I also started brand new site with same stack and… getting router 404 🤷‍♂️ might be another issue

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [January 20, 2021, 10:28pm UTC](https://community.localwp.com/t/problems-with-5-9-8/23921/5 "2021-01-20T22:28:30Z")

</div>

If you look at the `sitefolder/logs/php/error.log` file – do you see anything in particular with the sites that are having issues?

You might also take a look at the `sitefolder/logs/nginx/` log files, and possibly Local’s router (which you can view at “Help \> Reveal Local Router’s Log”

---

<div class="post-metadata">

**Author:** ![Ruud](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ruud/32/11052_2.png) [@Ruud](https://community.localwp.com/u/Ruud)\
**Post date:** [February 1, 2021, 12:20pm UTC](https://community.localwp.com/t/problems-with-5-9-8/23921/6 "2021-02-01T12:20:46Z")

</div>

Hi there,

I’m having similar issues, also on Win10.  
Local 5.9.8+5191

Pageload with 7.4.1: 200ms  
Pageload with 8.0.0: 2500ms

I get a couple of Xdebug errors in the debug.log (see below)  
It’s talking about timeouts, could it be the delay we are experiencing are couple of consecutive timeouts and retries?

Hope this helps solve it.

Thanks,  
Ruud

[01-Feb-2021 12:19:29 UTC] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: ::1:9000 (from HTTP\_X\_FORWARDED\_FOR HTTP header), localhost:9000 (fallback through xdebug.client\_host/xdebug.client\_port) ☹  
[01-Feb-2021 12:19:29 UTC] Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: ::1:9000 (from HTTP\_X\_FORWARDED\_FOR HTTP header), localhost:9000 (fallback through xdebug.client\_host/xdebug.client\_port) ☹

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [February 1, 2021, 9:48pm UTC](https://community.localwp.com/t/problems-with-5-9-8/23921/7 "2021-02-01T21:48:24Z")

</div>

This is likely because the PHP 8.0.0 lightning service has some incorrect settings and is not listening on port 9003 as xDebug 3.0 now requires.

Perhaps time for a lightning service update for PHP 8.0 @ben.turner?

---

<div class="post-metadata">

**Author:** ![baz](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/baz/32/12472_2.png) [@baz](https://community.localwp.com/u/baz)\
**Post date:** [February 6, 2021, 4:13pm UTC](https://community.localwp.com/t/problems-with-5-9-8/23921/8 "2021-02-06T16:13:13Z")

</div>

Hi, I’m new to this forum and experienced the same 404 and 502 pages, I messed around and noticed these problems went away by restarting my PC, although I now have other issues, this version seems to be very buggy and no one will buy while it’s like this. I’ve wasted lots of time messing about trying to get the blueprints to be added to a new site but no luck at all. I wish admin would look into this. The sales guy on youtube seems very chatty but think they need to get this sorted ASAP as I know I’m not alone. Good luck with your problems, fingers crossed.

---

<div class="post-metadata">

**Author:** ![Ruud](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ruud/32/11052_2.png) [@Ruud](https://community.localwp.com/u/Ruud)\
**Post date:** [February 26, 2021, 3:27pm UTC](https://community.localwp.com/t/problems-with-5-9-8/23921/9 "2021-02-26T15:27:50Z")

</div>

Hi afragen,

I followed your advice and added it to the php8.0.0.ini.hbs and the php.ini.hbs as well (it is not getting copied over it seems indeed).  
The problem I found is that whenever switching the php.ini.hbs is getting ‘saved’ to the corresponding php version folders… so after a round of swaps, the php8.0.0.ini.hbs is again broken 😪

@ben.turner =\> can you check in on this odd ini files copy/save behaviour?

Thanks,  
Ruud

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [February 26, 2021, 5:16pm UTC](https://community.localwp.com/t/problems-with-5-9-8/23921/10 "2021-02-26T17:16:39Z")

</div>

The file path for my `php.ini.hbs` file is `/Users/afragen/Library/Application Support/Local Beta/lightning-services/php-8.0.0+1/conf/php.ini.hbs`

When making the changes here, they copy over correctly when switching between PHP versions.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [February 26, 2021, 7:41pm UTC](https://community.localwp.com/t/problems-with-5-9-8/23921/11 "2021-02-26T19:41:14Z")

</div>

> [@Ruud](#):
>
> The problem I found is that whenever switching the php.ini.hbs is getting ‘saved’ to the corresponding php version folders… so after a round of swaps, the php8.0.0.ini.hbs is again broken 😪
> 
> @ben.turner =\> can you check in on this odd ini files copy/save behaviour?

I can see how this is confusing. Currently, this is just how things are built. If you are wanting the configuration to be persistent like afragen mentions, you’ll need to edit the `php.ini.hbs` within Local’s configuration folder.

Here’s a screenshot to help visualize (though I don’t have PHP 8 installed right this second, the concept is similar)

 ![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/a/a486deade67d24b6c93052920922be79a89bc779.png)

One caveat to all of this is that editing that `php.ini.hbs` in Local’s configuration folder (ie, the source for the PHP service) will mean that it gets wiped out anytime that lightning service is updated.

I guess @afragen likes to live on the wild side, but on the other hand, I suppose if you aren’t just a little afraid of your tech stack, you aren’t going fast enough! 😃

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [February 26, 2021, 8:34pm UTC](https://community.localwp.com/t/problems-with-5-9-8/23921/12 "2021-02-26T20:34:08Z")

</div>

I’m really hoping that the _pending update_ 😉 to PHP 8, and any of the other PHP versions that are built with xDebug 3.x, will have these edits included.

And yes, I break things 🤣 😇 but hopefully it makes stuff better in the long run.

> [@ben.turner](#):
>
> One caveat to all of this is that editing that `php.ini.hbs` in Local’s configuration folder (ie, the source for the PHP service) will mean that it gets wiped out anytime that lightning service is updated.
> 
> I guess @afragen likes to live on the wild side, but on the other hand, I suppose if you aren’t just a little afraid of your tech stack, you aren’t going fast enough! 😃

---

<div class="post-metadata">

**Author:** ![Ruud](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ruud/32/11052_2.png) [@Ruud](https://community.localwp.com/u/Ruud)\
**Post date:** [February 27, 2021, 7:45am UTC](https://community.localwp.com/t/problems-with-5-9-8/23921/13 "2021-02-27T07:45:23Z")

</div>

Hi @ben.turner

Thanks for sending me the information on the other location. I will have a look for sure.

Ruud

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [May 28, 2021, 7:45am UTC](https://community.localwp.com/t/problems-with-5-9-8/23921/14 "2021-05-28T07:45:25Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
