WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#12383 closed defect (bug) (fixed)

Permalinks Fail After Adding New User

Reported by: shodezignz Owned by: ryan
Milestone: 3.0 Priority: normal
Severity: normal Version: 2.9.1
Component: Permalinks Keywords:
Focuses: multisite Cc:

Description

2.9.1 - MU

Have Main Blog and 9 other sub blogs
Using Plug In - WordPress MU Sitewide Tags Pages - to pull posts to main blog
To make problem
Go to Site Admin panel
Users - Add new user on main blog
Go to Blogs under Site Admin Panel
Add user as author to each blog
Check Website and see that posts no longer link back to post

The way i have to fix it is go to each blog and save permalinks (not changing or even clicking anything just clicking save permalinks) and links on site work again.

Write up on forum
http://mu.wordpress.org/forums/topic/16979?replies=5#post-95297

Change History (10)

comment:1 @shodezignz5 years ago

  • Component changed from General to Administration
  • Keywords permalinks add user permalinks fail added
  • Milestone changed from Unassigned to 3.0

comment:2 @dd325 years ago

  • Component changed from Administration to Permalinks
  • Keywords multisite added; permalinks add user permalinks fail removed
  • Owner set to ryan

comment:3 @wpmuguru5 years ago

Testing shows that the Sitewide Tags plugin isn't a factor in this.

Adding a new user through the network admin and then adding the user as an author a the second blog causes the permalinks to fail on the second blog.

comment:4 @wpmuguru5 years ago

(In [13509]) dont flush rewrite rules while in switch_to_blog, see #12383

comment:5 @wpmuguru5 years ago

(In [13511]) use delete_option vs update_option, see #12383

comment:6 follow-up: @Denis-de-Bernardy5 years ago

Just to confirm I'm reading this write: does this bit of code mean that inserting or updating a new blog in a MS installation will fire a .htaccess file update?

comment:7 in reply to: ↑ 6 ; follow-up: @wpmuguru5 years ago

Replying to Denis-de-Bernardy:

Just to confirm I'm reading this write: does this bit of code mean that inserting or updating a new blog in a MS installation will fire a .htaccess file update?

No, WP_Rewrite rewrite rules are stored in the options table.

comment:8 in reply to: ↑ 7 ; follow-up: @Denis-de-Bernardy5 years ago

Replying to wpmuguru:

Replying to Denis-de-Bernardy:

Just to confirm I'm reading this write: does this bit of code mean that inserting or updating a new blog in a MS installation will fire a .htaccess file update?

No, WP_Rewrite rewrite rules are stored in the options table.

of course. but if memory serves, the .htaccess file gets refreshed whenever they're generated unless it's a soft refresh, or something like that.

comment:9 in reply to: ↑ 8 @wpmuguru5 years ago

Replying to Denis-de-Bernardy:

of course. but if memory serves, the .htaccess file gets refreshed whenever they're generated unless it's a soft refresh, or something like that.

The .htaccess rewrite rules are written once during the network install. They aren't refreshed from individual site/blog settings.

comment:10 @wpmuguru5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Closing pending another issue with this.

Note: See TracTickets for help on using tickets.