Warning: PHP Startup: Unable to load dynamic library Error

What issue or error are you experiencing?

Warning: PHP Startup: Unable to load dynamic library ‘php_zip.dll’ (tried: C:/Users/Maxi Ferreti/AppData/Roaming/Local/lightning-services/php-8.1.29+0/bin/win64/ext\php_zip.dll (No se puede encontrar el módulo especificado), C:/Users/Maxi Ferreti/AppData/Roaming/Local/lightning-services/php-8.1.29+0/bin/win64/ext\php_php_zip.dll.dll (No se puede encontrar el módulo especificado)) in Unknown on line 0Warning: PHP Startup: Unable to load dynamic library ‘php_intl.dll’ (tried: C:/Users/Maxi Ferreti/AppData/Roaming/Local/lightning-services/php-8.1.29+0/bin/win64/ext\php_intl.dll (No se puede encontrar el módulo especificado), C:/Users/Maxi Ferreti/AppData/Roaming/Local/lightning-services/php-8.1.29+0/bin/win64/ext\php_php_intl.dll.dll (No se puede encontrar el módulo especificado)) in Unknown on line 06.6.2

What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc


System Details

  • Local Version:

  • Operating System (OS) and OS version:


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hi @mferrettidevs

There might be an issue with your user name having a space. Are you able to create a user that doesn’t have any spaces or special characters?

Hi Nick-B
I’ve always had the username like that, until 2 days ago I could open and use it normally, and the app closed and after that, I couldn’t open any of the 2 sites I’m working on. It’s an error that appears in the local version of wordpress console.
I’ve been looking into whether it could be directly in the php files, but I can’t find the solution.

Are you able to create a new, blank site and access that okay or do you get an error?

No, I was just trying that and the same error occurs, even creating a new one from scratch

I uninstalled and reinstalled LocalWP and still nothing.

Can you share a full Local Log here?

Can you also verify your OS version and Local version?

Retrieving Local’s Log File

OS is Windows 10 Pro (22h2)
Local Version: 9.1.0.0
What would it be like to share the full local log with you?

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.

Another quick question here, has anything changed with your connection? Do you use a VPN for example?

No, I’m not using any VPN
I’ll try to attach the zip of Local logs

local-logs.zip (60.7 KB)

Can you try creating a new site with PHP 8.2 or 8.3 instead of the Preferred (8.1) and see if that makes a difference?

No, it doesn’t let me generate any site. With none of the options you recommended. I wouldn’t know what to do and I don’t want to lose the websites.

The issue might be that you have a space in your username.

Can you create a new user on your computer and try from that account?

The username was always like this and had no problems, and from one day to the next, it stopped working and started throwing those errors

As a test would you be able to create a new username without special characters or spaces however to see if that resolves the issue?

Hi Everyone, I am also facing this issue from months, and today finally found an solution.

Step 1: Copy location to ImageMagick, Link in my case it is “C:\Users\shub\AppData\Roaming\Local\lightning-services\php-8.3.11+0\bin\win64\ImageMagick”

Step 2: “Search in Window+S” and “Find Edit the System Environment Variables”.

Step 3: Click on Environment Variables and then Path inside System variables.

Step 4: Add new path, paste the path which we copied in Step 1.

Most Chances are issue will be solved, if now then download and install ImageMagick – Download and at time of install check “Add to path” option.

and it will create an environment variable on top of all path in system,

it can give another warning like Warning: Version warning: Imagick was compiled against ImageMagick version 1808 but version 1809 is loaded. Imagick will run but may behave surprisingly in Unknown on line 06.6.2

for removing this move up step 1 copied path.

Wish it will Fix issue, and in future LocalWP update it will add by software itself for all version of PHP.

Thank you for sharing this @ShubKB07 - So you were only running into the problem with a specific PHP version?

What Windows version and Local version are you on?