WordPress.org Forums » All Posts https://wordpress.org/support/forum/localhost-installs/feed/ Wed, 14 May 2025 21:05:34 +0000 https://bbpress.org/?v=2.7.0-alpha-2 en-US https://wordpress.org/support/topic/error-establishing-a-database-connection-placeholder-problem/#post-18461784 <![CDATA[Reply To: Error establishing a database connection: placeholder problem]]> https://wordpress.org/support/topic/error-establishing-a-database-connection-placeholder-problem/#post-18461784 Mon, 12 May 2025 15:06:37 +0000 threadi You are welcome to leave your address from Core Trac, where developers can evaluate and, if necessary, plan it: https://core.trac.wordpress.org/

]]>
https://wordpress.org/support/topic/error-establishing-a-database-connection-placeholder-problem/#post-18461746 <![CDATA[Error establishing a database connection: placeholder problem]]> https://wordpress.org/support/topic/error-establishing-a-database-connection-placeholder-problem/#post-18461746 Mon, 12 May 2025 14:46:48 +0000 leoscott Hi, I’m gonna explain my one experience.

I installed XAMPP and wordpress, started install. when filling db parameters, I filled host, user, pass, prefix fields, but left dbname untouched, because I thought that the placeholder text is the dbname and I wanted it as untouched(wordpress).

I got an error “Error establishing a database connection”, so I made ‘wordpress’ db for myself but I couldn’t resolve that. I doubted user privileges, so I opened ‘phpmyadmin’ and examined privileges.

There wasn’t any problems. I decided to debug, so I examined ‘class-wpdb.php’. I got the error message ‘select db failed’, so I printed the dbname and got an empty string. After all, I hadn’t filled the dbname field.

I recommend to weaken the placeholder color so that dummies could identify it easily.

Hope your successes!

so

]]>
https://wordpress.org/support/topic/why-so-many-media-files/#post-18459844 <![CDATA[Reply To: Why so many media files?]]> https://wordpress.org/support/topic/why-so-many-media-files/#post-18459844 Sat, 10 May 2025 21:31:43 +0000 bvbaked

Does having a media library of that size, when we’re only using maybe a hundred or so of the images on the site, have any cost (e.g, slowing things down)?

As you are now aware, when you want to move the media library around it does.
For the front-end experience though, it should make things faster or have little effect. As mentioned previously, they are created in order to serve a proper image size for the space it is presented in. So if it is done correctly the images displayed will be the of the optimal size and should result in smaller files getting served

Of course, it might not be done correctly and you still just serve the full image. Having the files and not using them wouldn’t slow the site down though, it’s just a lot of extra files

]]>
https://wordpress.org/support/topic/why-so-many-media-files/#post-18449332 <![CDATA[Reply To: Why so many media files?]]> https://wordpress.org/support/topic/why-so-many-media-files/#post-18449332 Sun, 04 May 2025 20:42:02 +0000 hupe13 Take a look at Disable Media Sizes.

]]>
https://wordpress.org/support/topic/why-so-many-media-files/#post-18448713 <![CDATA[Reply To: Why so many media files?]]> https://wordpress.org/support/topic/why-so-many-media-files/#post-18448713 Sun, 04 May 2025 10:41:10 +0000 wperic Thanks, George. I didn’t realize that WP was treating “all 4” as one item.

Does having a media library of that size, when we’re only using maybe a hundred or so of the images on the site, have any cost (e.g, slowing things down)?

]]>
https://wordpress.org/support/topic/why-so-many-media-files/#post-18448524 <![CDATA[Reply To: Why so many media files?]]> https://wordpress.org/support/topic/why-so-many-media-files/#post-18448524 Sun, 04 May 2025 06:05:08 +0000 George Appiah In a word, thumbnails.

Why serve giant 4032 x 3024 pixel photos (and turn around to squish them down) just to display 150 x 150 post thumbnail? Not only is this wasteful and will cost you more in hosting (bandwidth/visitors limit), but it will also make your site very slow to your users (and expensive for your users on metered internet access) and potentially affect your search engine performance.

For this reason, WordPress, by default, generates 3 smaller dimensions whenever you upload an image: 150 x 150 (thumbnail), 300 x 300 (medium), 1024 x 1024 (large). Your theme then uses the appropriate dimension in different parts of the site.

This means, by default, you have 4 files per image uploaded (assuming the originals are larger than the “large” size): the original + 3 generated thumbnails. Additionally, some themes (and even plugins) can “register” additional image sizes to be generated any time you upload an image.

So 2058 files for a 479 library is not unreasonable. That almost lines up with the 4 files per uploaded image mentioned above.

Of course, this is WordPress land, and users are free to tweak things as they please… even disabling features that are generally considered to be best practices 😀

]]>
https://wordpress.org/support/topic/why-so-many-media-files/#post-18448459 <![CDATA[Why so many media files?]]> https://wordpress.org/support/topic/why-so-many-media-files/#post-18448459 Sun, 04 May 2025 02:26:12 +0000 wperic I just downloaded the content of the media library on my live site to my desktop.

According to the live site, there are 479 items in the media library. Yet filezilla downloaded 2058 files amounting to 1+ gigabites. Why this huge difference?

The live site is hosted at omnis. My laptop runs Fedora 42 with Filezilla 3.69.1.

]]>
https://wordpress.org/support/topic/fields-in-user_usermeta/#post-18446897 <![CDATA[Reply To: Fields in user_usermeta]]> https://wordpress.org/support/topic/fields-in-user_usermeta/#post-18446897 Fri, 02 May 2025 13:31:57 +0000 johnhardy Many thanks threadi cannot name names.

Best regards

John H

]]>
https://wordpress.org/support/topic/fields-in-user_usermeta/#post-18445842 <![CDATA[Reply To: Fields in user_usermeta]]> https://wordpress.org/support/topic/fields-in-user_usermeta/#post-18445842 Thu, 01 May 2025 20:17:42 +0000 threadi No, you never have to do that. Where did you hear that?

]]>
https://wordpress.org/support/topic/fields-in-user_usermeta/#post-18445807 <![CDATA[Reply To: Fields in user_usermeta]]> https://wordpress.org/support/topic/fields-in-user_usermeta/#post-18445807 Thu, 01 May 2025 19:39:58 +0000 johnhardy The software for this site was downloaded about 3 months ago and I heard that
“the details for user_login and the user_pass in the table wp_users must be included in in the table wp_usermeta.”
Is that the case please?
Apologies for the late reply

Thanks

John H

]]>