Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter bopop4

    (@bopop4)

    Here’s what I have in my .htaccess file:

    Options -indexes
    DirectoryIndex ABC_Main.shtml
    
    DirectoryIndex /blog/index.php
    DirectoryIndex /blog/wp-admin/index.php
    
    # BEGIN WordPress
    
    # END WordPress

    Is the DirectoryIndex for “ABC_Main.shtml” conflicting with the DirectoryIndex for “/blog/wp-admin/index.php” ??

    Thread Starter bopop4

    (@bopop4)

    This fix is probably specific to WordPress 2.9.1, and here’s what I did to fix the Site Admin link:

    Edit the file wp-includes\general-template.php

    Look for the function wp_register() on line 232. Inside that function is a line (line 240) that builds the href for the link to Site Admin. I added the filename “index.php” after the call to admin_url().

    $link = $before . '<a href="' . admin_url() . '">' . __('Site Admin') . '</a>' . $after;

    The line of code looks like this now:

    $link = $before . '<a href="' . admin_url() . 'index.php">' . __('Site Admin') . '</a>' . $after;

    Thread Starter bopop4

    (@bopop4)

    My Site Admin link still does not work.

    I can get to the Dashboard page by manually entering
    http://www.YourSite.com/blog/wp-admin/index.php

    Once at the Dashboard page, I can use the link at the top to “Visit Site” I can also navigate to the Dashboard by clicking on the “Edit” link under the sample post.

    So I am really back where I started, except now I don’t have anything in my database. (That’s actually OK with me because I can restore the data after I fix the Site Admin link problem.)

    I deleted everything, including the database tables. I installed a completely new WordPress 2.9.1 and ran the Install routine. My blog is completely empty except for the single message and comment created by the install routine.

    I changed my admin password and the table prefixes (using wp-config), and added this htaccess file:
    # secure htaccess file
    <Files .htaccess>
    order allow,deny
    deny from all
    </Files>

    DirectoryIndex /blog/index.php
    DirectoryIndex /blog/wp-admin/index.php

    # BEGIN WordPress
    # END WordPress

    I really don’t understand the htaccess file so I suspect this could be my problem. Does anybody know what I can do to fix this?

    Thread Starter bopop4

    (@bopop4)

    Here’s an update just so you know I’m not sleeping on the job:

    I found a new administrative user in my database using this SQL:
    SELECT u.user_login, u.user_nicename, m.meta_value
    FROM wp_users u INNER JOIN wp_usermeta m ON u.ID = m.user_id
    WHERE m.meta_key = ‘wp_capabilities’ AND m.meta_value LIKE ‘%administrator%’

    I deleted the rogue user record using the WordPress Site Admin page. Then I changed all my passwords again.

    Next, I deleted the entire contents of my blog and refreshed it with a new download of WordPress 2.9.1. That fixed me up with no themes and no plug-ins, but still did not enable me to navigate to the Site Admin page.

    Since I was having so much fun, I renamed all the table prefixes in my database to make it a little more hacker-proof. Now I am unable to navigate to the Site Admin page even from an edit link. I get the message, “You do not have sufficient permissions to access this page.” every time I logon as administrator.

    It looks like all administrative permissions have been removed. I will continue working on this tomorrow. Maybe I will wipe out the blog and start over.

    Thread Starter bopop4

    (@bopop4)

    I downloaded the entire structure to my local hard drive, where my virus detector alerted me that the header.php file was infected. The virus software deleted that file from my hard drive so I used my FTP utility to delete that file from the blog site. I ran a virus scan on the entire blog structure and found nothing more.

    Next, I upgraded my blog to WordPress 2.9.1 and began testing. The link to Site Admin was broken so I switched to the default theme. The link was still broken.

    Is the admin_url() function in the load-styles.php file supposed to look like this?

    /**
    * @ignore
    */
    function admin_url() {}

    Thread Starter bopop4

    (@bopop4)

    I have already switched to the default theme. I am able to logon, but not able to navigate to the Site Admin page using the navigation link. I can get to the Site Admin page by clicking on an “Edit” link when I am logged on as an administrator, but users are not allowed to edit, so they cannot get to the admin page at all.

    Thread Starter bopop4

    (@bopop4)

    No, that URL takes me to the main blog page.

    I had the same problem using Apache web servers. I moved to a new host and discovered that they didn’t give me the same folder structure as the old host. Using your URL names as an example, here’s what I had:

    OLD URL: http://www.weightlosshelp.u2canhavesuccess.com
    OLD PATH:
    /weightlosshelp/<my blog files>
    /htdocs/<my main web site>

    NEW URL: http://www.u2canhavesuccess.com/weightlosshelp/
    NEW PATH:
    /public_html/<my main web site>/weightlosshelp/<my blog files>

    If that doesn’t fix your problem, you may need to investigate the .htaccess file. I never did figure it out, but I hacked my .htaccess file and managed to make my blog work. Here’s what I put in it:

    Options -indexes
    DirectoryIndex <my web site start page>
    DirectoryIndex /blog/wp-admin/install.php
    DirectoryIndex /blog/wp-admin/index.php
    DirectoryIndex /blog/index.php

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