Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
Broken links with WP 3.0 MS
14 July, 2010
5:33 am
mitch
Member
Forum Posts: 7
Member Since:
14 July, 2010
Offline

Hi,

I'm running the latest version of SermonBrowser and WP 3.0 with multi-site enabled.

Most of the url links work fine except for the edit and delete links on the wp-admin/admin.php?page=sermon-browser/sermon.php page.

It is stripping out the site name in the link and reverting back to the main site.

Example:
http://churchpress.org/wp-admi…..amp;mid=83

should be:
http://churchpress.org/hanover…..amp;mid=83

14 July, 2010
5:40 am
mitch
Member
Forum Posts: 7
Member Since:
14 July, 2010
Offline

More broken links:

"Import Options" link found on the

hanover4square/wp-admin/admin.php?page=sermon-browser/new_sermon.php page

and on the

wp-admin/admin.php?page=sermon-browser/files.php page

The "Files" link found on the

wp-admin/admin.php?page=sermon-browser/options.php page

I believe that's all for now.

14 July, 2010
3:39 pm
mitch
Member
Forum Posts: 7
Member Since:
14 July, 2010
Offline

Ok — Also when I try to add a new sermon it redirects to the main site — and the sermon is not saved.

It is not saved on the main site or the sub-site.

I am using a sub-directory install of WP 3.0 MS.

I have also tried to install Sermon Browser in both the plugins and mu-plugins directory (not at the same time) and both experience the same results.

15 July, 2010
6:14 am
mitch
Member
Forum Posts: 7
Member Since:
14 July, 2010
Offline

sb-includes/admin.php needs to be updated in order for this plugin to work with 3.0 with Multi-Sites enabled.

Ok I've fixed the problem.

Apparently this code:

<?php echo $_SERVER['PHP_SELF'] ?>

More specifically:

$_SERVER['PHP_SELF']

Was breaking the links.

I had to strip all references to the previous code out of sb-includes/admin.php and now all of the links and functions are working!

I'll try to include my amended admin.php here.

PS – I also noticed that the plugin is referencing a wpmu-functions.php which has been replaced by ms-functions.php.

15 July, 2010
6:22 am
mitch
Member
Forum Posts: 7
Member Since:
14 July, 2010
Offline

It's not letting me post the code.

So here's a link to a zipped version.

http://churchpress.org/2010/07…..x-for-3-0/

I'm not really sure what I'm doing so if I took out something important – please let me know!

26 July, 2010
2:55 am
mitch
Member
Forum Posts: 7
Member Since:
14 July, 2010
Offline

Update -
Ok – so when you change the page to older sermons – the links are still not right?

Anybody?

28 July, 2010
3:52 pm
mitch
Member
Forum Posts: 7
Member Since:
14 July, 2010
Offline

Ok – so

$_SERVER['PHP_SELF']

also occurs in ajax.php.

I've removed the code and now the links are corrected – but I'm still not sure that it's all correct.

I'm not sure I edited line 182 correctly.

Here's the original code:

<?php if (isset($_POST['fetchU'])) { ?><a id="" href="<?php echo $_SERVER['PHP_SELF']."?page=sermon-browser/new_sermon.php&amp;getid3={$file->id}"; ?>"><?php _e('Create sermon', $sermon_domain) ?></a> | <?php } ?>

And here's how I tried to correct it:

<?php if (isset($_POST['fetchU'])) { ?><a id="" href="?page=sermon-browser/new_sermon.php&amp;getid3={$file->id}"; ?>"><?php _e('Create sermon', $sermon_domain) ?></a> | <?php } ?>

But I'm really not sure it's correct. I don't see that it's causing any issues but I'm not confident that it won't?

Anybody?

Forum Timezone: Europe/London

Most Users Ever Online: 40

Currently Online:
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

malpan: 2453

jogen: 2440

VanWatterson: 652

GeraldSebring: 364

LucasWoltman: 362

RandellFeenstra: 362

Member Stats:

Guest Posters: 7

Members: 2062

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1071

Posts: 4042

Newest Members: richdorm, Aaron Velasquez, aaronv, dave5884, tomduckering, ccwebb

Moderators: Ben Miller (386)

Administrators: Mark Barnes (425)

Comments are closed.