Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter praiford

    (@praiford)

    Well, I have found one issue and corrected it. He had an htaccess file that was rerouting 404, 301, and 400 error codes back to his home page. Removing the 301 redirect fixed the problem with it going to the home page when trying to log in. Now the problem that I have is when I am logged in, the links under the dashboard are not correct. Instead of going to the path qualityantiquestuff.com/qawp/wp-admin, it goes to qualityantiquestuff.com/qawp/ so you can’t access any of the wordpress functions. You can’t get to settings, users, plugins, posts or any other setting. However the logout link has the correct link and if I access my profile, I can access all the other links as they will now have the correct links on them. I can’t figure out how or where to fix this problem. Please Help!!!!

    Another issue that I have found, is it seems that child themes are broken. I am using the Pinboard theme and I created a child theme which works perfectly on my localhost testing site but when I put it on the live site, it says the child is broken because the Pinboard theme is not installed which it clearly is installed.

    Thread Starter praiford

    (@praiford)

    Ok, I have solved most of my problems. The child theme issue was due to a capital letter in the style.css file for the parent template. It worked fine with mamp but the live site is case-sensitive so as soon as I made everything lower case, it worked.

    Also apparently wordpress uses a 301 redirect to direct traffic through its php code so removing the 301 redirect command from the root .htaccess file fixed the problem of going to the wrong place when trying to log in.

    Now I just have the one issue which is a minor issue but I would like to solve it but I can work around it for now and that is the Dashboard links not linking properly. The links show the path to where the wordpress is installed but they do not link to the wp-admin directory. The logoff menu in the top right corner does have the wp-admin link and I can access the user settings from that menu. Once I have clicked on that link, all the other links are corrected and I can click on any of the links under the Dashboard to get to where I need to go. I just need to find out why they are not using the correct link when you first log in.

    Thread Starter praiford

    (@praiford)

    Here is some more information if someone could please help me on this.

    The system appears be running the light speed hosting system with php version 4.0.2. I know that’s old and I will ask the person I am helping if he knows who to contact to update the php to the latest version. Is that what is causing the problem? Also the permalink are not working unless I used the base permalink with the page id. If try to use the permalink, I get a 404 error code.

    The htaccess with the permalink looks like this:

    # BEGIN WordPress
    <IFModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /qawp/
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [L]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule ./qawp/index.php [L]
    </IFModule>
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Without the permalink it looks the same as above except everything after the second #Begin WordPress is gone. The first set is the only way I could get wordpress to work normally. I would be grateful is some could please help me figure what is wrong with the wordpress. Why permalinks don’t work and why are the dashboard links messed up.

    Moderator James Huff

    (@macmanx)

    The system appears be running the light speed hosting system with php version 4.0.2. I know that’s old and I will ask the person I am helping if he knows who to contact to update the php to the latest version. Is that what is causing the problem?

    Most definitely, yes. WordPress requires PHP 5.2.4 or greater, and recommends PHP 5.6 or greater: https://wordpress.org/about/requirements/

    The PHP 4.0 branch was discontinued over 14 years ago in June of 2001: http://php.net/eol.php

    Thread Starter praiford

    (@praiford)

    Thank you James,
    I have informed the person that I am helping to contact his hosting service and have them upgrade the php. I will post the results back after its been done. Thank you for the response.

    Moderator James Huff

    (@macmanx)

    You’re welcome!

    Thread Starter praiford

    (@praiford)

    Ok, we upgraded php to 5.6 and I managed to get the dashboard links to work after remming out the admin trailing slashes rule which I am not sure why that worked since the links still work if I unrem the line but it worked so everything is now working except permalinks. I have the home set to qualityantiquestuff.com/qawp and site set to qualityantiquestuff.com/ with the .htaccess file and index.php file copied over and the index.php file modified to point to the /qawp directory. I don’t understand why permalinks are not working. The basic permalink works but all the others will give a 404 error code. Any ideas how to fix this issue?

    Moderator James Huff

    (@macmanx)

    Why are you doing it that way by modifying index.php directly? Why not just set the front page at Settings -> Reading?

    https://codex.wordpress.org/Creating_a_Static_Front_Page

    Thread Starter praiford

    (@praiford)

    I did set the front page as a static page. The only thing modified in the index.php was the link to the wordpress dir as the codex shows for keeping wordpress in a separate directory from the site.

    The original html site was on qualityantiquestuff.com and the wp was installed into a subdirectory of that site. So in the section were you set the Home url and Site url, I modified them so the home points to the wp directory and the site points to the parent directory

    Moderator James Huff

    (@macmanx)

    Ah sorry, I misunderstood.

    Try re-saving your permalink structure at Settings/Permalinks in your admin panel. If WordPress cannot automatically edit the .htaccess file, it will provide manual instructions after saving.

    Thread Starter praiford

    (@praiford)

    Yep, I have tried that and it writes the second piece of code that I showed at the top. If I set it to the basic permalink than everything above the second #BEGIN WordPress stays but everything below is deleted. When I turn the permalink on, then it writes the code in that empty space.

    I also tried removing the mod_rewrite statement in the first section, leaving the code but just taking out the if module part but that didn’t have any effect at all.

    Moderator James Huff

    (@macmanx)

    You have *two* #BEGIN WordPress sections?

    Would you mind sharing the contents of your .htaccess file?

    Thread Starter praiford

    (@praiford)

    Well, I deleted the htaccess file from the qualityantiquestuff.com directory and then changed the permalink to post type and it worked. It was because I had two #Begin WordPress in the file. Should have figured that was a problem. I think the first set came from when I first installed WordPress as a multisite WordPress in an attempt to get it working and when I reinstalled it as a single WordPress, I managed to keep the htaccess file. Anyway everything is working now.

    The htaccess file is the one posted above. If you scroll up you should see where I had posted it here. Thank you James for your help and patience. I know just enough WordPress to be dangerous. I have never had a problem setting WordPress up until now.

    Moderator James Huff

    (@macmanx)

    Thanks for letting us know what it was!

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

The topic ‘wp-admin not working’ is closed to new replies.