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

**URL:** https://community.kinsta.com/t/problem-re-adding-a-site-after-deleting-it-osx-ventura-13-1/1996
**Category:** Application Support
**Created:** [January 14, 2023, 2:42am UTC](https://community.kinsta.com/t/problem-re-adding-a-site-after-deleting-it-osx-ventura-13-1/1996 "2023-01-14T02:42:41Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![nono](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@nono](https://community.kinsta.com/u/nono)
#### Post date: [January 14, 2023, 2:42am UTC](https://community.kinsta.com/t/problem-re-adding-a-site-after-deleting-it-osx-ventura-13-1/1996/1 "2023-01-14T02:42:41Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Agus](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/agus/32/1515_2.png) [@Agus](https://community.kinsta.com/u/Agus)
#### Post date: [January 16, 2023, 3:34am UTC](https://community.kinsta.com/t/problem-re-adding-a-site-after-deleting-it-osx-ventura-13-1/1996/2 "2023-01-16T03:34:50Z")

</div>

Hello there @nono 👋

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](https://kinsta.com/knowledgebase/devkinsta/error-codes/#info) file (so we can check/investigate for the specific error logged in there) .

Cheers,  
Agus

---

<div class="post-metadata">

### Author: ![nono](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@nono](https://community.kinsta.com/u/nono)
#### Post date: [January 17, 2023, 7:53am UTC](https://community.kinsta.com/t/problem-re-adding-a-site-after-deleting-it-osx-ventura-13-1/1996/3 "2023-01-17T07:53:36Z")

</div>

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

---

<div class="post-metadata">

### Author: ![nono](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@nono](https://community.kinsta.com/u/nono)
#### Post date: [January 17, 2023, 3:36pm UTC](https://community.kinsta.com/t/problem-re-adding-a-site-after-deleting-it-osx-ventura-13-1/1996/4 "2023-01-17T15:36:51Z")

</div>

Dear Angus,

main.log (198 KB)

main.old.log (1.06 MB)

 ![Screenshot 2023-01-18 at 0.34.32.png](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/0/0a72f5ffe185eb18a287fa3610d4cf03fdac8787.png)

 ![Screenshot 2023-01-18 at 0.35.00.png](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/5/588a51995bbbf742c9ba028a6ad3efc027d5da26.png)

 ![Screenshot 2023-01-18 at 0.34.32.png](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/0/0a72f5ffe185eb18a287fa3610d4cf03fdac8787.png)

 ![Screenshot 2023-01-18 at 0.35.00.png](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/5/588a51995bbbf742c9ba028a6ad3efc027d5da26.png)

---

<div class="post-metadata">

### Author: ![Agus](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/agus/32/1515_2.png) [@Agus](https://community.kinsta.com/u/Agus)
#### Post date: [January 18, 2023, 2:58am UTC](https://community.kinsta.com/t/problem-re-adding-a-site-after-deleting-it-osx-ventura-13-1/1996/6 "2023-01-18T02:58:20Z")

</div>

Heya Bruno 🙂

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)

```auto
[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)

```auto
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](https://sampar.jp)” ) when I tried to perform WP CLI to get the `home` and `siteurl` on your `sampar` site on MyKinsta server:

```auto
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

---

<div class="post-metadata">

### Author: ![nono](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@nono](https://community.kinsta.com/u/nono)
#### Post date: [January 19, 2023, 9:21am UTC](https://community.kinsta.com/t/problem-re-adding-a-site-after-deleting-it-osx-ventura-13-1/1996/7 "2023-01-19T09:21:18Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Alessandro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/alessandro/32/2310_2.png) [@Alessandro](https://community.kinsta.com/u/Alessandro)
#### Post date: [January 19, 2023, 12:29pm UTC](https://community.kinsta.com/t/problem-re-adding-a-site-after-deleting-it-osx-ventura-13-1/1996/8 "2023-01-19T12:29:25Z")

</div>

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

Regards,  
Alessandro

---

<div class="post-metadata">

### Author: ![nono](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@nono](https://community.kinsta.com/u/nono)
#### Post date: [January 21, 2023, 4:04am UTC](https://community.kinsta.com/t/problem-re-adding-a-site-after-deleting-it-osx-ventura-13-1/1996/9 "2023-01-21T04:04:59Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Alessandro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/alessandro/32/2310_2.png) [@Alessandro](https://community.kinsta.com/u/Alessandro)
#### Post date: [January 23, 2023, 8:56am UTC](https://community.kinsta.com/t/problem-re-adding-a-site-after-deleting-it-osx-ventura-13-1/1996/10 "2023-01-23T08:56:09Z")

</div>

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

Regards,  
Alessandro

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/8/80f8c4e56fecc02327a0964e6bf63a716483529f.png) [@system](https://community.kinsta.com/u/system)
#### Post date: [January 26, 2023, 8:56am UTC](https://community.kinsta.com/t/problem-re-adding-a-site-after-deleting-it-osx-ventura-13-1/1996/11 "2023-01-26T08:56:12Z")

</div>

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