WP admin does not start and site not accessible

Thank you very much for your reply and help.

Both old and new sites are affected with this error.
But when I cannot accessed to them, Il clone them and I have access to the clones. So I clone them and their clones every time the error happens.
I realised that it could happen if the navigator (google chrome) is shut down before I logg out the wp admin. do you have an idea for me to fix the access problem (a file to fix?).Any idea about how I could repair the error?

Otherwise, I will have a look at the links for the error about php_imagick.dll.

Thanks a lot again
BR
Monique

Hi @moniquelocal

Some questions after looking over your log.

Does your machine have enough disk space and memory? Has it gone through any updates recently?

Do you have any antivirus, security, or firewall applications that could be blocking Local? Are you running other developer applications simultaneously? Apps like MAMP, XAMPP, or Docker for example.

More details about troubleshooting this here: Router Mode

Hi Nick,

Does your machine have enough disk space and memory?
Yes

Has it gone through any updates recently? My operating system is Windows11 and there are regular updates.

Do you have any antivirus, security, or firewall applications that could be blocking Local? Are you running other developer applications simultaneously? Apps like MAMP, XAMPP, or Docker for example.

My antivirus is Malwarebytes. There is no firewall application.

There are no other development applications on my PC. There are no other applications running simultaneously.
The applications I have installed are for instance tools for genealogy (NIMEGUE3 that is shut down while local is ruuning), visioconference (Zoom, Teams) , remote access (Teamviewer), Winamp,etc… This kind of applications.

I succeed to have access to the clone sites. So I systematically clone the site and their clone to keep access to a copy of the site. It is the only means I have found to retrieve my inaccessible sites and I do not understand why it works.

Thanks a lot for your help and any other idea.
BR

Monique

@moniquelocal

Are the front and back-end errors always the same? Can you send a screenshot?

Do all of your sites run the same WP and PHP versions? What are these set at?

Does disabling plugins help? If you open site shell and use WP-CLI commands to deactivate plugins or change out theme can you access the site? If you need more instructions on how to do this let me know!

Hello,

Yes the front and back end errors are always the same. But I have already delete all the sites that could be inaccessible so I cannot send any more screenshot.
I have cloned the sites inacessible and I succeed to access to the clones.
Since I’m careful to log out of wp-admin without my browser closing, I no longer have a site inaccessible with wp-admin.
All of my sites do not run the same PHP versions because at the beginning of the problems I have seen that the pb of loading of immagick.dll could come from the version of PHP so I have tried to change the PHP version et the Mysql version. But I am working with the same version of WP (6.2). For some sites I have PHP 8.1.9 et Mysql 8.0.16 and for other ones I have PHP 7.4.30 et Mysql 5.7.28. I can try to have the same versions of all of my sites it is better. What do you think about?

At this time the residual errors are :

  1. the pb with the dll php_imagick.dll that is present but not found by WP!

  1. Pb with the API rest : Lors du test de l’API REST, une erreur s’est produite :

Point de terminaison de l’API REST : http://site-gene2.local/wp-json/wp/v2/types/post?context=edit
Réponse de l’API REST : (http_request_failed) cURL error 28: Operation timed out after 10009 milliseconds with 0 bytes received

Hope that could help to help me.
BR
Monique

To clarify, you cloned all of your sites and deleted the previous versions so now you don’t have issues accessing the sites or their admins any further?

But you’re still seeing the imagick error and an API error now?

Regarding the imagick error you’re seeing, did you review that link that Sam sent above? Win32: WP-CLI: Warning: PHP Startup: Unable to load dynamic library ‘php_imagick.dll’

Regarding the API error, it could be a connection error or some other problem happening. Can you share a new copy of your Local Log?

Hello,

yes when I cloned all of my sites and deleted the previous versions I don’t have issues accessing or their admins any further if I logg out correctly from wp-admin. it seems to me that if we disconnect badly from wp-admin, we no longer manage to have the login page the following times. we must corrupt a file which is reestablished when we clone the site.

Yes I am still seeing the imagick error (for all sites) and the API error (only within one site).
I have a look to the link sent by Sam. I compared the two PhpService.js files and it appears that there are some differences like the missing bold lines (case win32 is missing) in my file:

get siteShellStartupBat() {
return \nSET PATH=${path_1.default.join(this.$PATH, 'ImageMagick', 'bin')};%PATH%\n;
}
get siteShellStartupPOSIX() {
let shellStartup = \nexport MAGICK_CODER_MODULE_PATH="${this.imageMagickCodersDir}"\n;
switch (os_1.default.platform()) {
case ‘linux’:
shellStartup += \nexport LD_LIBRARY_PATH="${path_1.default.join(__dirname, '../bin', 'linux', 'shared-libs')}"\n;
case ‘win32’:
** ellStartup += \nexport PATH="${this.toPOSIX(this.imageMagickBinDir)}:$PATH\"n;
}
return shellStartup;

So should I replace my PhpService.js by the one where there is the missing line or add it in my file?

For the API rest, here is attached the local logs file
local-logs4.zip (63.0 KB)

Thanks a lot for any help
BR
Monique

Hi,

I don’t have any issue with the imagick.dll not found since I modified the PhpService.js when adding a line missing for win32 (my PC is win64!) but I still have a problem that remains with imagick that is

  • Avertissement Le module facultatif, imagick, n’est pas installé, ou a été désactivé.

I still have a problem with the API rest that is critical

Lors du test de l’API REST, une erreur s’est produite :

Point de terminaison de l’API REST : http://gibsolessai6.local/wp-json/wp/v2/types/post?context=edit
Réponse de l’API REST : (http_request_failed) cURL error 28: Operation timed out after 10005 milliseconds with 0 bytes received

And I have another problem related to curl

La requête de bouclage sur votre site a échoué, ce qui signifie que les fonctionnalités qui s’appuient sur ces requêtes ne fonctionnent actuellement pas comme prévu.
Erreur : cURL error 28: Operation timed out after 10012 milliseconds with 0 bytes received (http_request_failed)

Thantks for your help
BR
Monique

log :
local-logs5.zip (14.1 KB)

Thanks a lot.
Since I did the modification of the PhpService.js following the links you sent to me, there is no more the error : unable to load dynamic 'php_imagick.dll
But I got a new error with imagick that is in French:

  • Avertissement Le module facultatif, imagick, n’est pas installé, ou a été désactivé
    (translated = * Warning The optional module, imagick, is not installed, or has been disabled)

I do not know why; this is not critrical but it could be improved.

Any help about this error?
BR
Monique

Hi @moniquelocal!

Are you still getting this error? Is it happening on one site or multiple sites? What PHP versions are the sites on?

Hi Nick,
Yes on all sites with PHp version 8.1.9.
Otherwise, the API error disapeared since I have updated WordPress to version 6.2.2.
How can I fix the error with imagick.dll not activated or not installed ?
Have you any idea ?
Thanks a lot

Hi Nick,
Unfortunately the error API rest is still present.
and the Error with imagick is always there.
BR
Monique

Hi @moniquelocal

I’m a little confused because I saw that you mentioned the Imagick error was resolved:

Since I did the modification of the PhpService.js following the links you sent to me, there is no more the error : unable to load dynamic 'php_imagick.dll

And then the API error was resolved:

Otherwise, the API error disapeared since I have updated WordPress to version 6.2.2.

So what changes have taken place to bring the errors back? Did you revert any changes on the sites? Or are these showing up on new sites?

Hi Nick

I am travelling so I am late to reply.
Unfortunately, the errors came back without no change on the same sites.
But within imagick, the error not loading has disapeared and the error imagick not installed or not activated remains.
The error API rest again came back!

An idea?
Best regards
Monique

Hi @moniquelocal - Can you share your updated Local Log so we can compare it?

Sorry I was not at home.
Here are attached the logs
local-logs7.zip (40.1 KB)
Thanks a lot
Monique

I’m still seeing a lot of erroring in the log like something is blocking Local. Either antivirus or some other application.

Have you tried checking this yet?

1 Like

Hello Nike,
I was on a trip to Scotland and I was not available to answer you. I am sorry.
I looked at the host file and I don’t know which properties to modify because it can be a security hole if I allow writing. I make two screenshots to show you the current configuration. You tell me if it’s correct.
Otherwise I noticed that Local asks me to access the host file and I always answer OK.
My antivirus is Malwarebytes. What should I do about its configuration because there are only access restrictions to websites but not to local applications?


Thanks a lot
Monique

I am having the same issue!

I can get into wp-admin via the “one click admin login” button but I cannot get in when I enter my username and password manually (yes it has been entered correctly!)

Please advise!

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