The MU forums have moved to WordPress.org

"Cannot redeclare fix_upload" issue with WPMU 2.6 release candidate (UPDATED) (21 posts)

  1. billdennis5
    Member
    Posted 16 years ago #

    OK, the nameserver switch has apparently resolved itself.

    Now, I'm getting the following error message whenever I try to access a WPMu page:

    Fatal error: Cannot redeclare fix_upload_details() (previously declared in /home/bpeoria/public_html/wp-includes/wpmu-functions.php:1522) in /home/bpeoria/public_html/wp-content/mu-plugins/misc.php on line 6

    So, I checked wpmp-functions.php and got rid of the trailing carriage return.

    This is the segment of the file that includes line 1522:

    /* Misc functions */
    
    function fix_upload_details( $uploads ) {
    	$uploads['url'] = str_replace( UPLOADS, "files", $uploads['url'] );
    	return $uploads;
    }

    Still getting the same error messsage. I don't want to disable or remove misc.pgp cause it seems like I need it.

    What am I missing here?

    By the way, I'm running the newest release candidate.

    Site URL: http://blogpeoria.com

  2. MrBrian
    Member
    Posted 16 years ago #

    misc.php is old and should be removed. It was combined into wpmu-functions awhile back, hence you're getting errors about duplicate functions.

  3. billdennis5
    Member
    Posted 16 years ago #

    THAT is an elegant solution. I'll do it and let you know.

  4. billdennis5
    Member
    Posted 16 years ago #

    OK, done. Now I'm getting on this error message:

    Fatal error: Cannot redeclare class delete_blog in /home/bpeoria/public_html/wp-content/mu-plugins/delete-blog.php on line 3

    Should I delete that file, too? I'm not seeing this file in the "mu-plugins" folder that I downloaded, then uploaded to my server...

  5. MrBrian
    Member
    Posted 16 years ago #

    Your install is like 1.3 huh, which is like last year. Your mu-plugins folder should be empty, except for the plugins you've added yourself.

  6. billdennis5
    Member
    Posted 16 years ago #

    What I did was this ... I installed the bring new version, then I used FTP to upload everything in the 1.3 version mu-plugins folder.

    Probably not smart, huh?

    So, I take it there's soem stuff I need to get out of there, delete-blog.php being one of them.

  7. MrBrian
    Member
    Posted 16 years ago #

    get rid of any of these: dashboardswitcher.php, delete-blog.php, global-categories.php, misc.php, pluggable.php, and sync-taxonomy.php

  8. billdennis5
    Member
    Posted 16 years ago #

    Now I'm getting somewhere:

    I can open http://blogpeoria.com

    Im's getting a generic front page listing all member blogs.

    I do get totally white pages when I try to go to any member blog.

    And I get the following message when I try to login:

    `Fatal error: Call to undefined function wp_register_sidebar_widget() in /home/bpeoria/public_html/wp-admin/includes/dashboard.php on line 34'

    That's not a plugin. How do I fix this?

    And thanks for your patience.

  9. MrBrian
    Member
    Posted 16 years ago #

    Just a reminder unrelated to the errors at the moment - Make sure all your file permissions are correct since you uploaded with FTP. Best way to upgrade is to upload the zip file and extract from the server, it keeps the permissions intact but some people don't know how or are unable to extract zips on the server.

  10. billdennis5
    Member
    Posted 16 years ago #

    disabled the sidebar widget plugin ...

    Same error message, though.

    Help.

  11. MrBrian
    Member
    Posted 16 years ago #

    Boy your server sure is a tad bit slow... shared hosting? Not sure why you would get that error, because that function is right inside wp-includes/widgets.php. Try reuploading the file.

  12. billdennis5
    Member
    Posted 16 years ago #

    Sure thing.

    Did it.

    Same error. It IS perplexing.

  13. MrBrian
    Member
    Posted 16 years ago #

    Rename your mu-plugins directory to something else to see if it's a plugin causing the problem. You can rename it back after, no harm done.

  14. billdennis5
    Member
    Posted 16 years ago #

    Well, that did it. It was a plugin.

    Now here's the problem.

    All member blogs render at totally white pages.

    But when I try to go to a specific post on any member blog, I get redircted to a 404 message.

    for example, I try to go here:

    http://peoriastation.blogpeoria.com/2008/07/08/hello-world/

    and I get redircted here:

    http://blogpeoria.com/2008/07/08/hello-world/ and it renders as a 404 page.

    I have already uploaded the database from the old installation. What can I do to fix this.

  15. MrBrian
    Member
    Posted 16 years ago #

    Sorry for the delay. check your .htaccess file and if you can, turn on php error_reporting so you can see the errors on the blank white page.

  16. billdennis5
    Member
    Posted 16 years ago #

    Thanks for the help, but not necessary.

    The server I was using ended up not workign right, so I asked my friend to delate my account, filed, datebases, everything.

    I am trying, instead, to install wordpress mu on a mediatemple (gs).

    Trouble is that at the install isn't working. I'm consistently getting messages about being unable to establish a datebase connection.

    Being unfamiliar with mediatemple, I submited a support request for information about what to enter in the installaton screen (the documentation from mt is unclear), and 8 1/2 hours later, there is no reply. Which is odd, because I would assume this is information any tech rep would KNOW.

    I tried to get online support. No reps are available.

    So much for advertised 24/7/365 service.

  17. billdennis5
    Member
    Posted 16 years ago #

    And seriously. Thanks for your advice. The next attempt at installation will go MUCH more smoothly (assuming I can get some advice from my host).

  18. MrBrian
    Member
    Posted 16 years ago #

    Did you create the database and check that the username/password to the database user is correct, and that the connection part is "localhost". That's pretty bad support tbh. I'd really suggest knownhost.com and get a VPS. I've been around the block with hosting and it would be a good fit for you. They have extremely good support and reliability.

  19. lunabyte
    Member
    Posted 16 years ago #

    For Media Temple, you should have a "number". It would be in the basic link they sent you when you signed up, to use while your name resolved.

    Something like 278532 or whatever.

    Using that as an example, your connection info should be similar to:
    DB_NAME: db278532
    DB_PASS: --your pass--
    DB_HOST: internal-db.s278532.gridserver.com

    The Media Temple GS should work out of the box, even for subdomains. They already have the necessary items in their vhosts to support it.

  20. billdennis5
    Member
    Posted 16 years ago #

    Thank you all.

    I feel pretty bad, 'cause the problem with the slow response was that many mediatemple sites were down because of a problem with Comcast.

    MT did reply, and gave me the information I needed. And at midnight, I sent another support question and they responded almost instantly. AT MIDNIGHT.

    This time, I am going to wait until the nameserver switcheroo has time to take effect, at least at my house. Then I will install WPMu THEN upload plugins, themes, etc, and then database.

  21. lunabyte
    Member
    Posted 16 years ago #

    If you had modified your hosts file previously, don't forget to undo those changes.

About this Topic

  • Started 16 years ago by billdennis5
  • Latest reply from lunabyte