Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)
  • danweasel

    (@danweasel)

    Found this fix in a year old patch for the user role issue.

    Assuming you’ve got your unified user database, head into wp-includes/capabilities.php, to line 172 as of 2.12. (It’s in the function _init_caps.)

    Change this:

    if ( ! is_array($this->caps) )
             $this->caps = array();

    To this:

    if ( ! is_array($this->caps) ) {
             $this->caps = array();
             $this->roles = array();
             $this->set_role(get_settings('default_role'));
    }

    This won’t sync all user roles across the board, it will just guarantee that all users will at least be the default role (“Subscriber” in a normal installation), and thus be able to both log in without nasty error messages.

    Any roles or capabilities other than defaults will still be unsynchronized between all blogs involved, but it seems to me that this will be relatively amenable to most people. The major problem with sharing a database is for new users (since you could manually set all existing users roles), and this fix solves that.

    Hopes this helps someone else out there.

    Forum: Plugins
    In reply to: wxr import locally?
    Thread Starter danweasel

    (@danweasel)

    Resolved the situation by slicing up the xml file into 5 pieces and importing each in turn. Guess the importer just doesn’t handle large files very well.

    Forum: Plugins
    In reply to: wxr import locally?
    Thread Starter danweasel

    (@danweasel)

    Now after some pruning I get:

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1516 bytes) in /var/www/html/danweasel/wp-admin/import/wordpress.php on line 84

    Any help in future versions of that importer file?

    Thread Starter danweasel

    (@danweasel)

    Yup that was it. In fact I went to check a little while after I’d sent an email to my host asking about mod_rewrite to find AllowOverride set to All, and permalinks mysteriously working. He confirmed later that he had changed it just then.

    RH based distro too…hmmm.

    Thread Starter danweasel

    (@danweasel)

    Huh. Just got a response from my host saying that there weren’t any apparent issues with apache/mod_rewrite, as it had appeared to me before. They didn’t say they changed anything, but now permalinks are being properly generated.

    Go figure.

    I still wish I knew what the error was, but I’m mostly just happy to have WordPress working properly.

    Thanks for the help all.

    Thread Starter danweasel

    (@danweasel)

    WP is the only item in .htaccess

    And yes, index.php is the main index. Nothing fancy here, just a regular WP install.

    Thread Starter danweasel

    (@danweasel)

    I figured that it was intended behavior–it is a much nicer looking file than before. I’ve clicked “update permalinks” and all with no luck.

    I’ve actually just tried using an old 1.5.2 zip file to install that version of WP and the permalinks don’t work there either, which I can only assume means there’s an issue with the new server.

    Apache does load rewrite_module and mod_rewrite.so does exist in the filesystem, so I’m not certain where the problem might be. I’ve emailed my host and hope to get a response back.

    Thanks for all the help offered.

    Thread Starter danweasel

    (@danweasel)

    Isn’t using index.php in the permalink a workaround for those without access to mod_rewrite? It is enabled on my server so I ought to be able to use .htaccess to have real permalinks.

    Thread Starter danweasel

    (@danweasel)

    I’ve had the problem in both 2.0 and 2.0.1 rc1.

    Thread Starter danweasel

    (@danweasel)

    I didn’t catch the problem soon enough—to prevent new links from being in error I’d rather use a Rewrite

    I’d like to do exactly what offline tried to do unsucessfully—export his entire blog into RSS format. I’m not sure about the memory issues but I’ll see what happens. However, I have no idea how to export the entirety of a blog into RSS. Searched these forums and can’t find an answer. Anyone point me to the right place?

    Thread Starter danweasel

    (@danweasel)

    Seen those already. I’ve got all my feed links redirected to FB except /feed/; I haven’t found anything anywhere about this link, which I’ve never seen until 1.5 anyway.

    Forum: Themes and Templates
    In reply to: Admin Template

    Broken Kode is working on it.

    Thread Starter danweasel

    (@danweasel)

    If I were more comfortable with plugin design, I might go that route; try to design something to this (and other) purposes. Any thoughts on a place to go to get introed to working with plugins?

    Thread Starter danweasel

    (@danweasel)

    So if all I want to keep constant throughout different themes is one page (sidebar.php), which option is better: delete everything from the default directory except my version of sidebar.php (basically hacking default so that it is no longer a theme, but more an “abstract class” in Java terminology) or explicitly including sidebar.php from a newly created “static” theme as desk003 suggests?

Viewing 15 replies - 1 through 15 (of 24 total)