# Critical Error After Site Name Change

**URL:** <https://community.kinsta.com/t/critical-error-after-site-name-change/2084>\
**Category:** Application Support\
**Created:** [February 24, 2023, 5:42am UTC](https://community.kinsta.com/t/critical-error-after-site-name-change/2084 "2023-02-24T05:42:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyclonepress](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/cyclonepress/32/1927_2.png) [@cyclonepress](https://community.kinsta.com/u/cyclonepress)\
**Post date:** [February 24, 2023, 5:42am UTC](https://community.kinsta.com/t/critical-error-after-site-name-change/2084/1 "2023-02-24T05:42:07Z")

</div>

I changed the name on a DevKinsta install (‘rename sites’ from ‘Sites’ panel and ‘Site Name’ under individual site pane). Everything updated correctly - name, URL, folder, etc. and the site pulls up fine and lets me log in. However, it won’t let me get to the dashboard and shows “There has been a critical error on this website…”

( ! ) Fatal error: Uncaught TypeError: ftp\_fput(): Argument #1 ($ftp) must be of type resource, null given in /www/kinsta/public/wp-site-template/wp-admin/includes/class-wp-filesystem-ftpext.php on line _212_  
( ! ) TypeError: ftp\_fput(): Argument #1 ($ftp) must be of type resource, null given in /www/kinsta/public/wp-site-template/wp-admin/includes/class-wp-filesystem-ftpext.php on line _212_

---

<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:** [February 24, 2023, 7:15am UTC](https://community.kinsta.com/t/critical-error-after-site-name-change/2084/2 "2023-02-24T07:15:14Z")

</div>

Hello Sarah (@cyclonepress )👋 , Welcome to DevKinsta community!

Thank you for reaching us out! 🙂  
Renaming the site should work just fine and should not affect the site admin dashboard (that shows a critical error, as you reported). I also have tried to rename 1 of my local sites in DevKinsta, and it worked just fine - and I was able to login to the WP Admin dashboard after I renamed it.

So this might be something else that’s causing the critical error on your local site, when accessing the WP admin dashboard (e.g.: old WordPress version that’s no longer compatible to run on PHP 8.0 or PHP 8.1).  
To check further, could you please check the local site in question (on your “_DevKinsta → Sites_” page) and let us know what’s the WordPress version as well as the PHP version used by that site?

Also, please kindly provide us [the error log file](https://kinsta.com/knowledgebase/devkinsta/logging/) of your local site in question, in case there’s anything else (related to the Critical error) has been logged in there. Depends on the O/S used on your computer, but usually it can be found under the `~/DevKinsta/logs/` sub-folder, and the name of the file will be something like this: `yoursitename_error.log` .

Cheers,  
Agus

---

<div class="post-metadata">

**Author:** ![cyclonepress](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/cyclonepress/32/1927_2.png) [@cyclonepress](https://community.kinsta.com/u/cyclonepress)\
**Post date:** [February 24, 2023, 9:35pm UTC](https://community.kinsta.com/t/critical-error-after-site-name-change/2084/3 "2023-02-24T21:35:12Z")

</div>

WordPress 6.1.1  
PHP 8.0

[wp-site-template\_error.log](https://community.kinsta.com/uploads/short-url/8QtFyul56A5tf9NoolMrnmnB57g.log) (8.2 KB)

---

<div class="post-metadata">

**Author:** ![cyclonepress](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/cyclonepress/32/1927_2.png) [@cyclonepress](https://community.kinsta.com/u/cyclonepress)\
**Post date:** [February 27, 2023, 5:19am UTC](https://community.kinsta.com/t/critical-error-after-site-name-change/2084/4 "2023-02-27T05:19:45Z")

</div>

I just realized I didn’t post the full error:

 ![Screen Shot 2023-02-26 at 11.19.03 PM](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/6/65a90b8a0581f868ca339487dcac9fc2606b19a4.png)

( ! ) Fatal error: Uncaught TypeError: ftp\_fput(): Argument #1 ($ftp) must be of type resource, null given in /www/kinsta/public/wp-site-template/wp-admin/includes/class-wp-filesystem-ftpext.php on line _212_  
( ! ) TypeError: ftp\_fput(): Argument #1 ($ftp) must be of type resource, null given in /www/kinsta/public/wp-site-template/wp-admin/includes/class-wp-filesystem-ftpext.php on line _212_  
Call Stack

# Time Memory Function Location

1 0.0021 392936 {main}( ) …/index.php\*\*:**0  
2 0.0037 429320 require\_once( '/www/kinsta/public/wp-site-template/wp-admin/admin.php ) …/index.php **:** 10  
3 2.1954 113075624 do\_action( $hook\_name = ‘admin\_init’ ) …/admin.php **:** 175  
4 2.1954 113076000 WP\_Hook-\>do\_action( $args = [0 =\> ‘’] ) …/plugin.php **:** 517  
5 2.1954 113076000 WP\_Hook-\>apply\_filters( $value = ‘’, $args = [0 =\> ‘’] ) …/class-wp-hook.php **:** 332  
6 2.2465 113481592 Astra\_Sites\_Importer\_Log-\>has\_file\_read\_write( ‘’ ) …/class-wp-hook.php **:** 308  
7 2.2491 113482192 WP\_Filesystem\_FTPext-\>put\_contents( $file = ‘/www/kinsta/public/wp-site-template/wp-content/uploads/astra-sites/index.html’, $contents = ‘’, $mode = ??? ) …/class-astra-sites-importer-log.php **:** 73  
8 2.2496 113483632 [ftp\_fput](http://www.php.net/function.ftp-fput)( $ftp = NULL, $remote\_filename = ‘/www/kinsta/public/wp-site-template/wp-content/uploads/astra-sites/index.html’, $stream = resource(2524) of type (stream), $mode = 2 ) …/class-wp-filesystem-ftpext.php**:\*\*212

---

<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:** [February 27, 2023, 5:37am UTC](https://community.kinsta.com/t/critical-error-after-site-name-change/2084/5 "2023-02-27T05:37:08Z")

</div>

Thank you for your reply Sarah! 🙂

Based on that error.log file you provided, it could be due to that plugin: `astra-pro-sites` .  
Still unsure if that plugin would work on PHP 8.0 or not , but could you please try to set the PHP version for this local `wp-site-template` site to PHP 7.4 perhaps (from your DevKinsta → click that `wp-site-template` site , then click the `Wrench` icon - to open that Site configurations, and click on the PHP Version 8.0 and change to 7.4 ) ?

> **[PHP Versions](https://kinsta.com/knowledgebase/devkinsta/php-versions/)**
>
> DevKinsta allows you to use every PHP version that Kinsta supports. Available PHP versions include 7.3, 7.4, 8.0, and 8.1.

If it’s still not working even with PHP 7.4, may want to try to disable the `astra-pro-sites` plugin - and see if that would help. Please let me know your operating system as well?

Cheers,  
Agus

---

<div class="post-metadata">

**Author:** ![cyclonepress](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/cyclonepress/32/1927_2.png) [@cyclonepress](https://community.kinsta.com/u/cyclonepress)\
**Post date:** [February 27, 2023, 6:15am UTC](https://community.kinsta.com/t/critical-error-after-site-name-change/2084/6 "2023-02-27T06:15:44Z")

</div>

OK so switching to 7.4 let me in the backend (thanks for the note about the wrench icon… that’s so hidden I’m not sure I’ve ever noticed that panel. I’m on Mac OSX Monterey). There were a ton more errors like the one I shared above, but there was also a note about missing file permissions and a request to add the below to wp-config.

define( ‘FS\_METHOD’, ‘direct’ );

I added this and the errors disappeared, along with a bunch of requests to re-register the paid (Astra) plugins. I wonder if some sort of security issue was tied to that. I’m updating/reactivating now, then I’ll try switching back to 8.0 and see what happens.

---

<div class="post-metadata">

**Author:** ![cyclonepress](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/cyclonepress/32/1927_2.png) [@cyclonepress](https://community.kinsta.com/u/cyclonepress)\
**Post date:** [February 27, 2023, 6:23am UTC](https://community.kinsta.com/t/critical-error-after-site-name-change/2084/7 "2023-02-27T06:23:15Z")

</div>

OK updating back to PHP 8.0 worked fine. Thanks for your help on that!

One thing I have noticed is that the https certificate is no longer working on this site. I toggled it off and then back on in DevKinsta and it’s still giving me the insecure warning.

![Screen Shot 2023-02-27 at 12.22.58 AM](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/d/db10c8a2511fc5076fc45ad716be632630ad176a.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:** [February 27, 2023, 7:20am UTC](https://community.kinsta.com/t/critical-error-after-site-name-change/2084/8 "2023-02-27T07:20:58Z")

</div>

You’re most welcome! That’s great to hear the above method worked fine for you Sarah! 👏  
So most likely previously any of your plugin(s) might not fully compatible to run on PHP 8.0 (and had to switch to PHP 7.4 first, and you could then work on it/re-registered/updated plugin(s), and was then able to switch back to PHP 8.0).

About the insecure warning, since you mentioned `Mac OSX Monterey` , I remember about similar issue with the SSL cert on Mac OS (on `Ventura` though) - and am wondering if this [solution here](https://community.kinsta.com/t/issue-with-ssl-net-err-cert-authority-invalid/2075/2) may also work to solve the case you’re experiencing perhaps.

Cheers,  
Agus

---

<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:** [March 2, 2023, 7:21am UTC](https://community.kinsta.com/t/critical-error-after-site-name-change/2084/9 "2023-03-02T07:21:00Z")

</div>

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