Media library
-
Hi all,
I use some plugins on my website, but I discovered a few weeks ago (while it was OK before) that when trying to list medias as grid, no pictures were displayed and the cursor turns round and round, endlessly…
when I click to the list display button, the pictures are displayed correctly.
So I tried to deactivate all the plugins I use, but the result is the same. The plugins I use are the following: BackUpWordPress, Broken Link Checker, Contact Form 7, Daily Cleaner & Optimizer Lite,
Enhanced Media Library, Insert PHP, MailPoet Newsletters, Meta Slider, NextCellent Gallery, Print Friendly and PDF, Quick Event Manager, Recently updated posts widget, Regenerate Thumbnails, Simple Shortcodes, TinyMCE Advanced, Use jQuery jsDelivr, User Role Editor, WP Maintenance, WP Smush, WP-Memory-Usage, WP-PageNavi.
Maybe theay are too much but even if they are all deactivated, the result is not OK.
I often update the plugins or the wp core itself, each time a new release is announced.Please could you help me ?
Thanks a lot
-
Hi, windo31, & welcome to the WordPress support forum.
You’ve got an awful lot of plugins there. Think about using only those that are necessary for the functioning of your site. Excessive plugins can slow a site down, create conflicts, & risk containing vulnerabilities that criminals can exploit in order to compromise your site.
You don’t give us a site url, which is often decidedly helpful in troubleshooting problems such as this. If you are not running a default theme, then I would suggest switching to one & see if the problem resolves. If it does, then you know your theme is at fault. If that does not fix the problem, then please proceed to the suggestions below.
You don’t tell us what version of WordPress you’re actually running, although you do indicate that you update frequently, which would lead us to believe you’re running the latest version. Please confirm or deny that.
The first thing to try in situations like these is to try to determine if your site is throwing any errors. To do this, try the following:
1) Open wp-config.php in either your hosting provider’s file manager or using an FTP (preferably secure FTP) client.
2) Change wp-debug from false to true. Visit your dashboard to see if any errors are being displayed. Please copy & paste those into your next reply. Turn this off immediately once you’ve obtained the information, as it is a security risk to your site.
3) Look in your WordPress folder, & perhaps themes & plugins folders as well, for files called error.log or error_log. See if those contain any recent entries & copy & paste representative examples into your next reply.
4) Often hosts provide an aplet in their control panel that displays error entries from the server logs. Try logging into your hosting control panel & see if your host provides that. If so, & if there are entries, then copy & paste a representative sampling into your next response as well. You may wish to enclose the entries in, i.e.,
entry 1 entry 2 entry 3
Hi Jackie McBride and thank you for your answer.
You where right on the 1st topic; I use a child theme that I modified from Smpl Skeleton. When I switched to the original one, the issue disapeared ! so I have to identify the differences, for each file I modified.
Of course I use a lot of plugin and I try as far as I can, to modify my functions.php file instead of using a plugin. But I’m quite a beginner in php/html5, so when it is too hard and a plugin exists, i used it, including preferably the most appreciated.
I confirm that I use the latest version of WP (4.5.3) and every time I update a plugin, I check if it is compatible. But in fact I discovered that 14/29 have not been certified with the last version of WP.So I have to work hard now to find where is the cause of the issue.
Thank you very much for your help, I’ll try to post the reason and how I fixed it.
Thank you for all the rules you gave me to check for troubleshooting.
windoI have same problem. WordPress 4.5.3 Images not displaying in Media Library are template independent. Strange thing is it all works in a subdomain but not in the main domain. Subdomain has same version of WP and template. The template however is old and no longer developed. Still the issue occurs in the “TwentyFour” template also.
If when in Media Library, I go to edit image mode, the image displays. Otherwise it is a blank placeholder. Three images do display properly however. The drag & drop feature did not display properly. I uploaded 3 images individually and they are showing fine. Subsequent uploads all just give blank placeholders.
I do not know what is being refered to below as depreciated or how to fix it. Hostgator says it is a WordPress issue.
Error in functions.php file refers to depreciated function.
* @since 4.3.0
*
* @param bool $trigger Whether to trigger the error for deprecated functions. Default true.
*/
if ( WP_DEBUG && apply_filters( ‘deprecated_constructor_trigger_error’, true ) ) {
if ( function_exists( ‘__’ ) ) {
if ( ! empty( $parent_class ) ) {
/* translators: 1: PHP class name, 2: PHP parent class name, 3: version number, 4: __construct() method */
trigger_error( sprintf( __( ‘The called constructor method for %1$s in %2$s is deprecated since version %3$s! Use %4$s instead.’ ),
$class, $parent_class, $version, ‘__construct()
‘ ) );
} else {
/* translators: 1: PHP class name, 2: version number, 3: __construct() method */
trigger_error( sprintf( __( ‘The called constructor method for %1$s is deprecated since version %2$s! Use %3$s instead.’ ),
$class, $version, ‘__construct()
‘ ) );
}
} else {
if ( ! empty( $parent_class ) ) {
trigger_error( sprintf( ‘The called constructor method for %1$s in %2$s is deprecated since version %3$s! Use %4$s instead.’,
$class, $parent_class, $version, ‘__construct()
‘ ) );
} else {
trigger_error( sprintf( ‘The called constructor method for %1$s is deprecated since version %2$s! Use %3$s instead.’,
$class, $version, ‘__construct()
‘ ) );
Hello, RMIGHTY1 & welcome to the WordPress support forum.
Please start your own thread, as per the guidelines here:
https://codex.www.ads-software.com/Forum_Welcome
Specifically,
“Posting your own topic is smiled upon. Unless you are using the same version of WordPress on the same physical server hosted by the same hosts with the same plugins, theme, and configurations as the original poster, do not post in someone else’s thread. Start your own topic. Choose your section from the forum front page. After following the appropriate link, start a new topic by clicking the “Add New??” button to the right of the section’s title.”The problem appears to be that you’ve got an outdated theme or plugin. But having said that, please do start your own topic.
Hi,
Effectively we are not in the same context exactly, but I’d like to follow this new post, if it could give me some ideas for investigations…
I tried to comment large parts of my ‘function.php’ file (the one I modified mostly) and I cannot fix the issue. I wonder if it is not due to the database broken, but I tried to upload nex pictures and the same problem still occurs.
I tried to log errors thanks to the wp-debug in the file wp-config.php. nothing is reported.
No recent *error* file has been generated in the complete directory of the website.
I think the last possibility is the 4th you gave me Jackie McBride: I have to ask my host to setup my web space with error logging feature.wait and see……
windo31, I thought we’d already determined that your child theme is the cause of your problem, because you said when you reverted back to the parent, the problem disappeared. I would think that if you had wp-debug set to true in your wp-config.php file & then switched back to your child theme, you’d see errors, & likely plenty of them.
OK, I am STILL learning ??
I will post new topic and then share link here.
I usually DO read all the rules but my eyes are bloodshot and my brain is frazzeled from all the TOS’s I read.
Thank you for your kindness.
OK, I have made a NEW post here: https://www.ads-software.com/support/topic/media-library-only-displays-blank-placeholder?replies=1
Jackie, you can delete my prior (inappropiate) post in this thread and thank you.
Thank you Jackie and windo31! I hope we all get our problems fixed!
Here are the errors reported when wp-debug is set to true:
Strict Standards: Redefining already defined constructor for class wp_memory_usage in /srv/d_pic/pic/home/ascl-v1/wordpress/wp-content/plugins/wp-memory-usage/wp-memory-usage.php on line 39 ? Notice: Undefined offset: 1 in /srv/d_pic/pic/home/ascl-v1/wordpress/wp-content/plugins/quick-event-manager/quick-event-manager.php on line 1383 Notice: Undefined variable: eventbackground in /srv/d_pic/pic/home/ascl-v1/wordpress/wp-content/plugins/quick-event-manager/quick-event-manager.php on line 1430 Notice: Undefined index: eventgridborder in /srv/d_pic/pic/home/ascl-v1/wordpress/wp-content/plugins/quick-event-manager/quick-event-manager.php on line 1451
the 3 last one are new, and I’m going to check what they mean.
Sounds to me like your memory usage & quick event manager plugins are problematic, though again, I still feel your child theme may be contributory as well.
RMIGHTY1, it’s ok–don’t worry. I’ll keep a lookout for your topic & try to help if I spot it & if someone doesn’t jump on in to help you first. There are some applicable things I posted to windo31 which you might wish to try as well. It just makes things a bit confusing when 2 different scenarios are being covered in 1 topic, which is why we ask that each person start their own. I know how hard & overwhelming all this can be, just post another topic if what I said to windo31 didn’t help, & someone will try to assist you. Like I said, I’ll keep a lookout.
windo31, I found the problem with my Media Library not rendering images. The solution may not work for you because as you said, there are so many variables. If you go to the link in my post above, you can read my solution.
Of all places, it was in my .htaccess file on my server. That is why the main directory WP program did not work but the sub-directory WP program did work and why it did not matter which template I used.
I hope it works for you. To speed things up, let me tell you that I renamed my .htaccess file then created a new one. I added blocks of info slowly from the old file to the new one and it worked until I added the bad line. That is how I narrowed it down to resolve the issue.
I am a very happy camper now ??
Thank you RMIGHTY1, I read your post and checked my .htaccess file but the problem is stille there.
So I checked my theme by deleting all the files. The problem disappeared. Then I copied the files one by one and checked the medias menu in the dashboard. Only the functions.php file caused the problem.
But what is amazing is that I commented every function one by one and the problem is still there ???
I changed the file format (UTF8 instead of UTF8 without BOM) but nothing changed. I’m quite disappointed !
Please do you have any idea ?
ThxHo ho !
the problem comes from one line where I include_once a file containing the functions to connect to the database.
when i remove it, the medias are displayed properly, but I cannot lo as a user
when i insert it, i can log as a user but the medias are not displayed (as grid only).
I’m really not a friend with php ??OK !!!! YESSSSS !!
I fixed it !
The functions.php file is encoded in UTF8, while the file loaded by ‘include_once’ is encoded in UTF8 without BOM.
I was however meticulous about that but I missed this bug ! what a misery !
I hope my experience will be useful for anyone.Thank you all for your help, I can mark this topic as resolved.
You know what ? I’m happy ??
I’m sorry windo31. I have no idea. I was indeed blessed to discover and resolve my issue. The only thing I can think of is to try reinstalling WordPress from the Dashboard/updates.
I wish you well windo31.
OK, I see you resolved it. Congratulations windo31!!!
- The topic ‘Media library’ is closed to new replies.