Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#1451 closed defect (bug) (fixed)

1.2 theme upgrade not idiot proof

Reported by: djpaul's profile DJPaul Owned by:
Milestone: 1.2 Priority: major
Severity: Version:
Component: Keywords:
Cc:

Description

On my trunk (rev 2176), I deleted the v1.1 theme folders from /themes/ and moved in only the new /bp-default/.

WPMU keeps trying to load _inc/ajax.php through the parent theme, creating a White Page of Death. I'm assuming WPMU caches the parent theme name/folder in the TEMPLATEPATH constant, which is where the wrong path is introduced.

Change History (4)

#1 @apeatling
14 years ago

This could be a major issue. Can anyone think of a smart way to get around this (other than naming the theme something else).

#2 @DJPaul
14 years ago

Renaming the folder appears the straightforward way. Otherwise, I suppose you'd have to put checks around the "require_once( TEMPLATEPATH . '/_inc/ajax.php' )" line in functions.php --

Something like checking if "bp-sn-parent" is within TEMPLATEPATH and then calling appropiate WordPress functions to update it quietly.

#3 @apeatling
14 years ago

I think the solution for this is to check for a "bp-sn-parent" and "bp-default" TEMPLATEPATH and STYLESHEETPATH combo on upgrade, and switch the latter to "bp-classic" instead.

#4 @apeatling
14 years ago

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

(In [2385]) Fixes #1451

Note: See TracTickets for help on using tickets.