Problem re-adding a site after deleting it. OSX Ventura 13.1

I am facing problems re-adding a site after deleting it ( OSX Ventura 13.1).
After the 2 Password prompt, it seems that the install stop. On the DevKinsta Dashboard, it is a blank thumbnail, it says “Custom site” but it should be Wordpress Site. Opening WP admin send me to a white pagewith just the url written on it…Opening site does the same.

Any idea what should be done?
Thanks

Hello there @nono :wave:

It sounds like the WordPress site was not (re)created properly and that it says “Custom site” (no thumbnail on the DevKinsta dashboard, and site and WP admin return with a white page).

Can you please try to delete that site in question once again from DevKinsta → Sites list, and after that, close DevKinsta completely (fully shutdown, not only minimized), and you may also want to check (via terminal) and remove/delete that site’s folder in question under the ~/DevKinsta/public/ subfolder (if it’s still there), as well as to remove/delete that sitename.conf file under the ~/DevKinsta/nginx_sites/ subfolder, and after that try to re-launch DevKinsta and try to re-create the site in question (if it can be created properly)?

If you’re still experiencing any issue with it, please kindly provide the screenshot of the error shown in DevKinsta? and please also send me (in DM) the main.log file (so we can check/investigate for the specific error logged in there) .

Cheers,
Agus

Hi Agus,

I did what you suggested except via terminal.
I will try it tomorrow as I am not an expert in terminal commands ( if you could tell me the terminal commands it will be a great help)

I let you know tomorrow how it goes.

Thanks
Bruno

Dear Angus,

main.log (198 KB)

main.old.log (1.06 MB)

Heya Bruno :slight_smile:

Thank you for providing the main.log and the screenshots (for security reason, I’ve removed the download links for your main log files, and added the link to our internal team only).

I’ve checked the main.log file you provided and noticed that looks like you were trying to import your WP site (sampar.jp ? ) from your MyKinsta account to your local computer (to DevKinsta).

Based on the main.log, I could see some lines mentioned these (I copied-pasted just few of them)

[2023-01-18 00:30:05.554] [info]  [containerExec] Command 'cd /www/kinsta/public/sampar && wp --allow-root --skip-themes --skip-plugins option get siteurl' on devkinsta_fpm finished with exit code 0
[2023-01-18 00:30:05.554] [info]  [wpGetSiteUrl] Wp Site URL: 
[2023-01-18 00:30:05.555] [info]  [updateWpConfigUrl]: update urls in wp-config.php. Site:sampar from: , to: http://sampar.local
[2023-01-18 00:30:05.557] [info]  [updateWpConfigUrl]: update urls in wp-config.php. Site:sampar from: , to: sampar.local
[2023-01-18 00:30:05.558] [info]  [wpSearchAndReplace] Search and replace. Source: , to: http://sampar.local
.
.
[2023-01-18 00:30:16.419] [info]  [updateWpConfigUrl]: update urls in wp-config.php. Site:sampar from: http://sampar.local, to: https://sampar.local
[2023-01-18 00:30:16.420] [info]  [wpSearchAndReplace] Search and replace. Source: http://sampar.local, to: https://sampar.local
.
.
[2023-01-18 00:30:16.973] [info]  [isWpSite] Checking if sampar is a Wordpress site
.
.
[2023-01-18 00:30:17.114] [info]  [containerExec] Command 'wp --allow-root --skip-themes --skip-plugins core is-installed --path=/www/kinsta/public/sampar' on devkinsta_fpm finished with exit code 1
[2023-01-18 00:30:17.114] [info]  [useWordpressCheck] sampar is a custom site, there is no wp found.
[2023-01-18 00:30:17.127] [info]  [dockerUtil/getContainer] Get 'devkinsta_fpm' Docker container
[2023-01-18 00:30:17.127] [info]  [isWpSite] Checking if sampar is a Wordpress site
.
.
[2023-01-18 00:34:18.744] [info]  [containerExec] Command 'cd public/sampar && wp --allow-root --skip-themes --skip-plugins db size --size_format=b --url=https://sampar.local' on devkinsta_fpm finished with exit code 1
[2023-01-18 00:34:18.745] [error] Error: W[31;1mError:[0m Strange wp-config.php file: wp-settings.php is not loaded directly.

and those look like something is wrong with the wp-config.php file of this site in question.
As we can notice there, when the update URL action was performed, it didn’t show sampar.jp (but an empty string) to be replaced with http://sampar.local , and then with https://sampar.local .
And due to this, DevKinsta detected it as a non-WordPress (custom site)
noticed that line [useWordpressCheck] sampar is a custom site, there is no wp found.

Then at the end, it also showed that error: Strange wp-config.php file: wp-settings.php is not loaded directly.

I also then checked the wp-config.php file of your sampar.jp on your hosting account / server, and noticed this file seems to be setup with custom one, like these for example (which I suspected might be the reason of why DevKinsta detected it as Custom site, as per the log shown above)

define('SP_REQUEST_URL', ($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']);

define('WP_SITEURL', SP_REQUEST_URL);
define('WP_HOME', SP_REQUEST_URL);

And this is what I got (just “http:” / instead of “https://sampar.jp” ) when I tried to perform WP CLI to get the home and siteurl on your sampar site on MyKinsta server:

sampar@Cdi-sampar:~/public$ wp option get home
PHP Warning:  Undefined array key "HTTPS" in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 20
PHP Warning:  Undefined array key "HTTP_HOST" in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 20
http:
sampar@Cdi-sampar:~/public$ wp option get siteurl
PHP Warning:  Undefined array key "HTTPS" in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 20
PHP Warning:  Undefined array key "HTTP_HOST" in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1296) : eval()'d code on line 20
http:

You may want to try to edit that wp-config.php file on your sampar.jp site, and comment those 3 lines above with the # sigh in front of each of those lines.

After that, please try to remove/delete the local sampar.local site from DevKinsta (on your computer), and try to re-import that sampar.jp site to your DevKinsta, and see if it will be imported properly/no longer showing as “Custom site” (and that you can access the site locally).

Cheers,
Agus

Hi Agus,

Thank you for your support.
Could someone in Kinsta support comment out those lines for me? Would be a great help.

Best
Bruno

Hey @nono,
please reach out to our support via MyKinsta so that our team can help you commenting those lines.

Regards,
Alessandro

Dear Angus,

A short message to let you know that Jorich at Kinsta kindly helped and now the site is running on local DevKinsta. As you said it was those 3 lines…
Have a great day
Best regards

Bruno

Hi @nono ,
thank you for letting us know that the issue has been resolved!

Regards,
Alessandro

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