最近、ホストサーバーを変更しました。それが問題を引き起こしています。ダッシュボードアップローダーを使用する代わりに新しいテーマまたはプラグインをアップロードしたい場合、FTPホストとユーザー名とパスワードを入力したいのですが、前のアップローダーに戻るにはどうすればよいですか?
2 に答える
these is because you using a shared server. you can add these code to wp-config.php
define('FS_METHOD', 'direct');
for more information see the WordPress Upgrade Constants
The issue you are experiencing is due to file permissions for the site.
While it's more secure in it's current form, it is less convenient for updating WordPress, uploading images, etc.
First:
Have you actually ENTERED the FTP credentials into WP and seen if it works? If you do this, WordPress remembers the credentials, so you should only have to do it one time. This would be the best way to go, if possible.
Then:
What you can do is attempt to change the file permissions through FTP. If that does not work, often you can access the files and try and change permissions through the host provider's cPanel. If that does not work, then you will need to request the host provider changes the file permissions.
Through cPanel:
- Go to "File Manager"
- when prompted which directory to go to, go to your "Web Root" directory.
- Navigate to the appropriate WP folders and give them permissions by right clicking on the folder icon, choosing Change Permissions".
- Some recommended settings can be found here: WordPress file permissions