WordPress.org

Ready to get started?Download WordPress

Forums

Need Help ASAP (15 posts)

  1. cnmreid
    Member
    Posted 4 years ago #

    I am trying to learn wordpress and have been trying to help someone get their site that was already made turned into a multi blog site. I have been using some of the fixes I found in codex where I go into the wp-config.php file and paste the multisite code. Then I went into wordpress and went under tools and network setting up a network. I added the first 2 codes and then when it came to the last part I couldn't get the .htaccess file on the host site to add the code they told me to add to it. I ended up ftping the file and changing the extension to .txt and adding the code that way then saved it and renamed it back to just .htaccess and ftping it back over to the host site. It didn't work so I ended up ftping the original back and overwriting the file. I have gone in several times and taken out the code then went back in and added it back trying different things to make it work to no avail. Now I am getting an error when I try to log in that says "You do not have sufficient permissions to access this page."! To my knowledge those are the only files that I have manipulated and I don't have a clue how to get it back. It seems that each time I went back in and deleted the code out and put it back in for the network and superadmin that the page looked less and less like it was suppose to. The only time it looked right was the first time I did it. Any suggestions would be greatly appreciated.

  2. Douglas Bell
    Member
    Posted 4 years ago #

    If you are having trouble with your .htaccess then you need to contact your web host. Unfortunately multi-site installs of WordPress are a bit heavier and have some extra requirements than normal installs and some web hosts cannot (or are not willing to) handle it. I also would not recommend using Multi-Site if you are just starting to learn WordPress as it is more difficult to manage.

    Were permalinks working properly back when you were using the standalone version of WordPress? That is generally the litmus test to see if your .htaccess was being read by your host. If you weren't able to get permalinks to work, then your host is unable to run Multi-Site.

  3. cnmreid
    Member
    Posted 4 years ago #

    I am not convinced that it is the .htaccess file that is causing the problem. What I think it is....is when I created the network then took the code back off the wp-config.php file then the next day put it back again it said that I needed to delete the old network to create a new one. I couldn't figure out how to do that. I found a site telling someone to undo the network by deleting all these tables in the database but I haven't deleted some of them because I wanted to be sure that the tables I was deleting would not mess up the blog on the main page along with the rest that I made. Everything continued to work after I did what I did with the .htaccess file.

    Is it possible that me not deleting the network and then creating a new one would eventually cause that error?

  4. cnmreid
    Member
    Posted 4 years ago #

    How should I go about doing multiple blogs as a newer user? I learn fast but have literally been working on this for only 4 days. Something that works for now until I become a little more advanced will be fine. At this point I just want to be able to login!!

    Is there a way that I can fix it if it is the .htaccess file? Maybe create a blank one or something? What information should be in that file?

  5. spherical
    Member
    Posted 4 years ago #

    This should get you going again:

    #begin WordPress
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>
    #end WordPress

    Be sure to upload in ASCII mode.

  6. cnmreid
    Member
    Posted 4 years ago #

    Ok so all the links on the page work. So does that mean that the problem is not my .htaccess file? I also did a full backup of the site on doteasy and then deleted the tables that were discussed under the undo network topic on this site. Still tells me I don't have sufficient permissions to access this page. I am really at a loss here. Any other suggestions?

  7. So.. let's backup and recap so we can get you sorted out. You've removed the network as much as possible, and you can't login. Correct?

  8. cnmreid
    Member
    Posted 4 years ago #

    Yes that is correct! Sorry if I am all over the place. Trying to figure this thing out. I deleted all of the network files that was listed on another discussion on this forum...it was actually you andrea_r that listed them on that discussion. The ones that I deleted are;
    wp_blogs
    wp_blog_versions
    wp_registration_log
    wp_signups
    wp_site
    wp_sitemeta

    Still getting the permissions error & not sure where else to go but the .htaccess file seems to be working properly. All the permalinks work fine.

  9. cnmreid
    Member
    Posted 4 years ago #

    I noticed that when I first went in to add the network that when I would create a new site it was adding the name that I gave it in front of the site name. When I went in the next day and was doing this it was adding what I called the new site to the end and the site name was no longer there it was only a /. When I go in to look at the database I notice there are a of tables that are titled wp_13_name....

    wphive_config
    wphive_hosts
    wp_13_commentmeta
    wp_13_comments
    wp_13_links
    wp_13_options
    wp_13_postmeta
    wp_13_posts
    wp_13_terms
    wp_13_term_relationships
    wp_13_term_taxonomy

    could this 13 be the root of my problem?

  10. cnmreid
    Member
    Posted 4 years ago #

    Okay now nothing works. I went into the host site and backed up the database. Then I went in and deleted all the wp_13 tables listed above. Then when it messed everything up then I tried to restore them from the backup and it hasn't changed anything. Now it is giving me an error establishing database.

    I went in and changed the wp-config.php file and placed the 13 in front of the wp and when I went to the site it took me in like a new setup.

    Please Help!

  11. Are you on Dreamhost and did you use the One Click install?

  12. cnmreid
    Member
    Posted 4 years ago #

    I have doteasy.

  13. cnmreid
    Member
    Posted 4 years ago #

    What should I do? I am thinking starting over would be easier than figuring this out.

  14. Yep. And do a manual install, not a one-click one.

    And I just notcied you;re using wp-hive. Can you narrow things down? :) trying to do both at once will be... uh... yeah.

  15. cnmreid
    Member
    Posted 4 years ago #

    I deleted everything and am starting all over. I don't know what I did to mess it up but hopefully I can refrain from doing that ever again. Thanks for your help.

Topic Closed

This topic has been closed to new replies.

About this Topic