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