Viewing 15 replies - 1 through 15 (of 34 total)
  • Thread Starter jpigford

    (@jpigford)

    Edit, I take that back, it does the same for this link to:

    http://www.website.com/wp-admin/options-general.php?page=subscribe-to-comments.php

    Now i’m just confused.

    ColdForged

    (@coldforged)

    You running straight 1.5 Strayhorn release?

    Thread Starter jpigford

    (@jpigford)

    Yes, I am.

    ColdForged

    (@coldforged)

    And when you say “it just shows the regular WP Admin interface but no content”, what does that mean? Do you mean it has the appropriate headers — including perhaps even a highlighted “tab” for the current page — and then the footer immediately following?

    Thread Starter jpigford

    (@jpigford)

    Here’s a screen shot from one of them:

    http://www.joshpigford.com/misc/wordpress/wpadminissue01.gif

    ColdForged

    (@coldforged)

    Has this always happened or did it just start?

    Thread Starter jpigford

    (@jpigford)

    Has always been that way.

    ColdForged

    (@coldforged)

    Waitaminute… are you on a Windows or Unix or Apple host? Didn’t I recall you having trouble with pathnames before? Or am I thinking of someone different?

    Thread Starter jpigford

    (@jpigford)

    I’m on a *nix box and haven’t had pathnames issues other than this.

    ColdForged

    (@coldforged)

    Save a copy of your wp-admin/admin-functions.php file and edit it. Replace the add_menu_page() function with this version and see if it helps:

    function add_menu_page($page_title, $menu_title, $access_level, $file, $function = '') {
    global $menu, $admin_page_hooks;
    $file = plugin_basename($file);
    $menu[] = array($menu_title, $access_level, $file, $page_title);
    $admin_page_hooks[$file] = sanitize_title($menu_title);
    $hookname = get_plugin_page_hookname($file, '');
    if ( !empty($function) && !empty($hookname) )
    add_action($hookname, $function);
    return $hookname;
    }

    Thread Starter jpigford

    (@jpigford)

    I’m afraid I had no luck with that.

    ColdForged

    (@coldforged)

    In what way? It does the same thing?

    Thread Starter jpigford

    (@jpigford)

    Same thing…no change at all.

    ColdForged

    (@coldforged)

    I’m at a loss. If you know PHP this may be the time to start narrowing it down with echo calls to print out important stuff in the admin.php file. Figure out which path it’s heading down in the part that says

    // Handle plugin admin pages.
    if (isset($_GET['page'])) {

    by echoing the $page_hook variable and such. Goofy indeed.

    Thread Starter jpigford

    (@jpigford)

    Okay, I’ve done some stupid things before when troubleshooting problems…but before i start doing a ton of stuff….where can i make sure and be absoutely positive i’m using strayhorn? i’m 99.999% sure i am….but i’ve been wrong before.

Viewing 15 replies - 1 through 15 (of 34 total)
  • The topic ‘I can’t get to pages in the Admin that use Dir/file.php’ is closed to new replies.