Viewing 10 replies - 1 through 10 (of 10 total)
  • Check your uploads path in Settings -> Media.

    Thread Starter Ahmed Hamouda

    (@ahmedhamouda)

    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 🙁

    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?

    Thread Starter Ahmed Hamouda

    (@ahmedhamouda)

    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 🙂

    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?

    Thread Starter Ahmed Hamouda

    (@ahmedhamouda)

    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?

    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.

    Thread Starter Ahmed Hamouda

    (@ahmedhamouda)

    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 :$

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

    Thread Starter Ahmed Hamouda

    (@ahmedhamouda)

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Media library uploads dont show’ is closed to new replies.