Not able to upload images

[ad_1]

When i Try to upload image or pdf, the file looks like the file uploads but the thumbnail is blank and they file url does not work. I also do not see the file on the server. I checked the permission on the file and they are fine.

In the error log, Every day I get this Error and wonder if this is the problem.

[13-Jun-2023 02:34:16 UTC] PHP Warning:  Undefined array key “host” in /home/xxxx/public_html/wp-includes/canonical.php on line 689

[13-Jun-2023 02:34:16 UTC] PHP Warning:  Undefined array key “host” in /home/xxxx/public_html/wp-includes/canonical.php on line 698

[13-Jun-2023 02:34:16 UTC] PHP Warning:  Undefined array key “host” in /home/xxxx/public_html/wp-includes/canonical.php on line 701

I have disabling the plugins, updated everything, tried php 8 and 8.1.

I am not very technical when it comes to this and I have no idea how to fix it. Any help would be greatly appreciated.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer