WordPress.org

Ready to get started?Download WordPress

Forums

Media library uploads dont show (11 posts)

  1. Ahmed Hamouda
    Member
    Posted 3 years ago #

    I have a problem with media library which is the uploads dont show even after uploading.. The screenshot speaks better:
    http://i52.tinypic.com/30j699v.png

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Check your uploads path in Settings -> Media.

  3. Ahmed Hamouda
    Member
    Posted 3 years ago #

    Sorry esmi for not explaining my problem properly..
    The problem is when am trying to add a new image in a new post by choosing one from the library I cant see any uploads even I have 222 images uploaded as the image shows.

    Problem stays even after checking the uploads path :(

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    What is your uploads path set to?

    Have you tried:

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Ten theme to rule out any theme-specific problems?

  5. Ahmed Hamouda
    Member
    Posted 3 years ago #

    Tried the first solution and the problem still not fixed but after trying to switch to 20-10 theme the problem seems to be fixed.. So now I have to check the theme.. In your opinion esmi, what could cause the problem and how I can get it fixed?!

    ps: thanks alot for helping me fixing this problem so far :)

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    Difficult to say. I'd start by looking at any javascript that the theme may be executing. If jQuery scripts haven't been implemented carefully, scripts intended for the front end of the site might also be loading in the Admin area and causing your problems.

    Is it a custom theme?

  7. Ahmed Hamouda
    Member
    Posted 3 years ago #

    ya it is a custom theme. I tried to remove all the javascript and jquery codes but the problem still there :/
    So is it something related to the functions.php file?

  8. esmi
    Forum Moderator
    Posted 3 years ago #

    Possibly. If the theme is loading jQuery scripts via functions.php, try placing the relevant code loading the scripts inside a if( !is_admin()) ... endif; conditional to stop them loading within the Admin area.

  9. Ahmed Hamouda
    Member
    Posted 3 years ago #

    I checked the functions.php and the only code I put to load jquery was this

    if ( !is_admin() ) {
    	   wp_deregister_script('jquery');
    	   wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"), false);
    	   wp_enqueue_script('jquery');
    	}

    and even after removing it, the problem is still there..

    ps: my functions.php has 677 lines and they are all about changing the admin footer, admin header, login page, post thumbnail, 3 custom post types with custom fields and categories and sidebar widgets

    and there is no kind of jquery scripts except the code I previously mentioned :(

    I wanna add the functions.php file here but I dunno if I should. I know that you are trying to help me but I know my limits and wont put it to force you to read 677 lines so I'll just be satisfied with the suggestions for solving the problem :$

  10. esmi
    Forum Moderator
    Posted 3 years ago #

    Can you pull some of the functions out one-by-one?

  11. Ahmed Hamouda
    Member
    Posted 3 years ago #

    I'll try to do it and tell you the results.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.