WordPress.org

Forums

/wp-admin/upload.php NOT working (14 posts)

  1. PHPinder
    Member
    Posted 5 years ago #

    Okay, I am lost here and for once both Google and forms have failed me. I had to reload the website I manage from a back up because of a crash. Everything works again, but for one tiny important page. That would be the media index page on the dashboard (link is /wp-admin/upload) The other users and I can upload images into posts and can see all the images, but there is no way to manage the library. I have tryed replacing the file, and the wp-admin folder for that matter, with a fresh copy from the 2.9.1 download.

    A post said something about the .htaccess file, and I can not find that to look at it, but Im not sure of thats the issue.

    help!

    The site is http://santafesentinel.org/

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Have you tried re-uploading the wp-includes folder from a fresh download of WordPress?

  3. PHPinder
    Member
    Posted 5 years ago #

    Yes, I just tryed that and its still giving me a blank page.

  4. esmi
    Forum Moderator
    Posted 5 years ago #

    Try repairing your database and see if that helps at all.

  5. s_ha_dum
    Member
    Posted 5 years ago #

    By 'blank' do you mean that it is completely white or that it only partially loads?

  6. PHPinder
    Member
    Posted 5 years ago #

    Esmi: How would I try to repair the database?

    Apljdi: When the page loads, its a white blank page. When I look at the source, it shows :

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"  dir="ltr" lang="en-US" xmlns:fb="http://www.facebook.com/2008/fbml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Media Library &lsaquo; Santa Fe Sentinel  — WordPress</title>
    <script type="text/javascript">
    //<![CDATA[
    addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
    var userSettings = {'url':'/','uid':'13','time':'1265744619'};
    var ajaxurl = 'http://santafesentinel.org/wp-admin/admin-ajax.php', pagenow = 'upload', adminpage = 'upload-php',  thousandsSeparator = ',', decimalPoint = '.';
    //]]>
    </script>
    <link rel='stylesheet' href='http://santafesentinel.org/wp-admin/load-styles.php?c=1&dir=ltr&load=global,wp-admin&ver=4198bec071152ccaf39ba26fd81dcd63' type='text/css' media='all' />
    <link rel='stylesheet' id='thickbox-css'  href='http://santafesentinel.org/wp-includes/js/thickbox/thickbox.css?ver=20090514' type='text/css' media='all' />
    <link rel='stylesheet' id='tweeter_css-css'  href='http://santafesentinel.org/wp-content/plugins/tweeter-a-twitter-widget/styles.css?ver=1.0.0' type='text/css' media='screen' />
    <link rel='stylesheet' id='colors-css'  href='http://santafesentinel.org/wp-admin/css/colors-classic.css?ver=20091217' type='text/css' media='all' />
    <!--[if lte IE 7]>
    <link rel='stylesheet' id='ie-css'  href='http://santafesentinel.org/wp-admin/css/ie.css?ver=20091217' type='text/css' media='all' />
    <![endif]-->

    So I guess its only partly loading

  7. esmi
    Forum Moderator
    Posted 5 years ago #

    Sounds like you have a problem in your header.php template file.

  8. s_ha_dum
    Member
    Posted 5 years ago #

    If you browse your database via PhpMyAdmin you should see notices about tables in need of repair.

    It also sounds to me like a problem with header.php. Open your theme's header.php file in a text editor and post the next few (10 or so) lines that come immediately after that last part that loaded (the IE conditional). Hopefully enough of that is hard-coded into the theme that you can find it easily.

  9. esmi
    Forum Moderator
    Posted 5 years ago #

    Or you could drop a complete copy of your theme's header.php file in the WordPress pastebin and post the pastebin url here.

  10. PHPinder
    Member
    Posted 5 years ago #

    I looked at the tables in phpadmin and I didnt see any thing that said a table needed to be repaired.

    Here is the pastbin link to my header.php file: http://wordpress.pastebin.ca/1792158

    Im lost as to how the theme's header file deals with WordPress's upload.php file though.

  11. s_ha_dum
    Member
    Posted 5 years ago #

    Im lost as to how the theme's header file deals with WordPress's upload.php file though.

    That's maybe because I'm an idiot. This is the wp-admin/admin-header.php file and it is failing somewhere in here (2.9.1):

    54  do_action('admin_enqueue_scripts', $hook_suffix);
      55  do_action("admin_print_styles-$hook_suffix");
      56  do_action('admin_print_styles');
      57  do_action("admin_print_scripts-$hook_suffix");
      58  do_action('admin_print_scripts');
      59  do_action("admin_head-$hook_suffix");
      60  do_action('admin_head');
      61
      62  if ( get_user_setting('mfold') == 'f' ) {
      63      $admin_body_class .= ' folded';
      64  }
      65
      66  if ( $is_iphone ) { ?>
      67  <style type="text/css">.row-actions{visibility:visible;}</style>
      68  <?php } ?>

    I'd comment those do_actions one by one until, hopefully, the page loads. That might help narrow down the source of the problem.

    Its probably worth upping the memory limit as well.

  12. PHPinder
    Member
    Posted 5 years ago #

    Got it!!!!
    it was the do_action('admin_print_scripts'); line. It makes me wonder though if that will cause something else to not work down the line. Ah well this problem is fixed and I will cross that bridge if it comes to it

    I also upped the memory limit to, that was something I had done before but I guess new file didnt get backed up afterwards

    Thanks apljdi & esmi for your help!

  13. s_ha_dum
    Member
    Posted 5 years ago #

    It makes me wonder though if that will cause something else to not work down the line.

    It will definitely cause something else to not work down the line. It probably already has. Commenting that was for debugging, not for fixing. You should probably look in your plugins to see if anything is calling that hook.

  14. PHPinder
    Member
    Posted 5 years ago #

    yup I realized really quick what it took out... the ability to edit posts. I will be looking into the last few plugins I have installed though, and contiue trouble shooting now that I know where and what to work with.

Topic Closed

This topic has been closed to new replies.

About this Topic