Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Turns out it was an issue with my sunrise.php that didn’t properly set the $current_site->blog_ID which screwed up the WP is_main_site() call.

    I’ve had this same issue since upgrading to 3.0.x. No backups run, and BackWPUp isn’t visible in the network admin. Going to /wp-admin/network/admin.php?page=backwpup leads to an insufficient privileges message. Rolling back to 2.1.17 fixes the issue. It’s been driving me insane for days.

    After hours of digging, it doesn’t seem to actually be a roles/capabilities issue, and not actually a BackWPUp problem. The culprit line for me was line 66 of backwpup.php: “if ( is_multisite() && ! is_main_site() )” The call to is_main_site() is returning false when it should be true, because the global $current_site variable doesn’t have the blog_id set. It should be set to the ID of your main blog, usually 1.

    Not sure yet why this is happening. But a quick workaround is to remove that conditional in backwpup.php (and the line after it), or to manually set your $current_site->blog_id to whatever your main blog ID is. Be careful: both may lead to unexpected results, and changes to a plugin file will be erased every time you upgrade the plugin.

    Thread Starter matthiaswh

    (@matthiaswh)

    Yes, that fixes the problem.

    I (finally) found the source of this bug. The author archive redirecting to the homepage is saved in the options under the key ‘disable-author’. The problem for me was that this key was in two different options records: wpseo & wpseo_titles. This is most likely due to the author changing the location where this setting is saved at some point, but the upgrade process didn’t clear the old record.

    To fix this:

    1. In the WordPress admin go to SEO -> Titles & Meta, click the Other tab & ensure Disable The Author Archives is unchecked.
    2. Go to your database and find the options table for your site (wp_options or wp_XX_options most likely)
    3. Find both rows with option_name set to wpseo and wpseo_titles
    4. If the key “disable-author” is set in either of them you can remove it entirely, or change the value of it to “off”

    If it is on, the option_value for either/or both of those rows will include: s:14:”disable-author”;s:2:”on”; That’s the part you can remove.

Viewing 4 replies - 1 through 4 (of 4 total)