# Error when trying to create custom version of wordpress

**URL:** <https://community.localwp.com/t/error-when-trying-to-create-custom-version-of-wordpress/42932>\
**Category:** Bugs\
**Tags:** mac\
**Created:** [May 18, 2024, 5:00am UTC](https://community.localwp.com/t/error-when-trying-to-create-custom-version-of-wordpress/42932 "2024-05-18T05:00:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kdamsre](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/kdamsre/32/21816_2.png) [@kdamsre](https://community.localwp.com/u/kdamsre)\
**Post date:** [May 18, 2024, 5:00am UTC](https://community.localwp.com/t/error-when-trying-to-create-custom-version-of-wordpress/42932/1 "2024-05-18T05:00:08Z")

</div>

# Bug Summary

when i try to create a custom wordpress it show error.

# Steps to reproduce

create custom:

 ![Screenshot 2024-05-18 at 11.54.33 AM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/c/3/c3b2fa46057317322d192abc8340526fb8996e25.png)

# Environment Info

Describe your environment.

- Mac M1
- Nginx, PHP, MySQL
- Version 9.0.2+6676

# Supporting info

Please provide your Local Log. See this Community Forum post for instructions on how to do so:

[local-lightning.log](https://community.localwp.com/uploads/short-url/1Se2CI4jbRqWe3qT0LT5MHgz7OW.log) (131.0 KB)

 ![Screenshot 2024-05-18 at 115446 AM](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/3/e/3e1824015cea7a79808d9545229e3f466027bcc5.jpeg)

Include any screenshots or video recordings of the issue to help others reproduce.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [May 18, 2024, 1:14pm UTC](https://community.localwp.com/t/error-when-trying-to-create-custom-version-of-wordpress/42932/2 "2024-05-18T13:14:58Z")

</div>

Hi @kdamsre! So when you create a new site with the Preferred settings does that work like normal?

---

<div class="post-metadata">

**Author:** ![kdamsre](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/kdamsre/32/21816_2.png) [@kdamsre](https://community.localwp.com/u/kdamsre)\
**Post date:** [May 18, 2024, 2:09pm UTC](https://community.localwp.com/t/error-when-trying-to-create-custom-version-of-wordpress/42932/3 "2024-05-18T14:09:43Z")

</div>

Hi @Nick-B

Yes Preferred is working normally.

 ![image](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/5/d/5da3308a9c5be5fec42e6dda9eadb027666cfcc4.png)

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [May 18, 2024, 2:17pm UTC](https://community.localwp.com/t/error-when-trying-to-create-custom-version-of-wordpress/42932/4 "2024-05-18T14:17:17Z")

</div>

I just tested this myself, and it worked fine on my Mac M3. However, I noticed that the PHP version in my dropdown is 8.0.30, while your screenshot shows 8.0.0. I’m not sure how you have that different version if you’re on the latest release. You might try a full uninstall and reinstall of Local. If you have any sites in the app currently, make sure you export or save them. The steps would be like this:

- Export any sites that you have on Local and save them to a folder somewhere on your computer: [Backup a Local Site - Local](https://localwp.com/help-docs/getting-started/how-to-backup-a-local-site/)

- Fully uninstall Local from your computer with the details here: [Uninstall Local - Local](https://localwp.com/help-docs/troubleshooting/uninstalling-local/)

- Install the latest version of Local on this link: [Releases - Local](https://localwp.com/releases/)

- Once installed, please restart the computer.

- Check and see if the issue still persists. If so, please provide us with an updated log. There are some different ways to access and share Local Logs. For us to be able to troubleshoot thoroughly, please click the `Download Local Logs` button from the `Support` tab in Local. This will generate a zip archive that contains the Local log along with some other diagnostic information to help quickly zero in on any issues that Local is encountering.

---

<div class="post-metadata">

**Author:** ![kdamsre](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/kdamsre/32/21816_2.png) [@kdamsre](https://community.localwp.com/u/kdamsre)\
**Post date:** [May 18, 2024, 3:12pm UTC](https://community.localwp.com/t/error-when-trying-to-create-custom-version-of-wordpress/42932/5 "2024-05-18T15:12:06Z")

</div>

you correct i have all latest version but i want to custom with that php old version to test old php code but it does not work with WPLocal

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [May 18, 2024, 3:45pm UTC](https://community.localwp.com/t/error-when-trying-to-create-custom-version-of-wordpress/42932/6 "2024-05-18T15:45:50Z")

</div>

So you can’t use 8.0.30 it has to be 8.0.0?

---

<div class="post-metadata">

**Author:** ![kdamsre](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/kdamsre/32/21816_2.png) [@kdamsre](https://community.localwp.com/u/kdamsre)\
**Post date:** [May 20, 2024, 5:37am UTC](https://community.localwp.com/t/error-when-trying-to-create-custom-version-of-wordpress/42932/7 "2024-05-20T05:37:01Z")

</div>

ok. now i used 8.0.30 but i just want to report it error with 8.0.0. Thanks,

---

<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:** [May 20, 2024, 3:06pm UTC](https://community.localwp.com/t/error-when-trying-to-create-custom-version-of-wordpress/42932/8 "2024-05-20T15:06:29Z")

</div>

Hey @kdamsre, Thanks for reporting this!

When new versions of PHP are released, Local doesn’t delete the ones that are already on your machine.

In this case, the latest patch release (8.0.30) is a lot newer and has some improvements over the 8.0.0 release. As you say, there are incompatibilities with the PHP 8.0.0 and the MySQL 8, so I would recommend just using the latest PHP patch version.

If you do want to clean up and remove old versions of PHP (or any lightning service) you can navigate to Local’s user-config folder and remove the old version. On a Mac, that location is:

```auto
~/Library/Application Support/Local/lightning-services

```

 ![Zight 2024-05-20 at 8.04.49 AM.jpg](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/d/c/dc741cb34ca1c52117c5389c2e75deb72026fb2d.jpeg)

---

<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 22, 2024, 3:07am UTC](https://community.localwp.com/t/error-when-trying-to-create-custom-version-of-wordpress/42932/9 "2024-05-22T03:07:23Z")

</div>

Closed on May 22, 2024, 3:07am UTC

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