• I set up networking using the subdirectories option.
    My base site functions OK.
    When I add a site I can visit the added site and it appears OK, but when I try to access the added site’s backend, I get no error, but remain in the main site’s backend.

Viewing 10 replies - 16 through 25 (of 25 total)
  • and you went to

    https://FanHappy.com/celinedion/wp-admin/themes.php?page=custom-header

    to upload the header for that blog?

    Thread Starter djlinden

    (@djlinden)

    Yes, that is the exact URL that was displayed in my browser address field when I uploaded the custom header.

    Thread Starter djlinden

    (@djlinden)

    I just had a chat with HostGator support that may help to resolve the issue:
    ———————————————————————–
    HostGator: The path your theme is using is wrong.
    It is looking for the image here https://fanhappy.com/files/2010/10/CelineDion3.jpg
    There is no image uploaded there.
    What I can advise is you need to look into the theme configuartion, it is looking to the wrong area for the pictures.

    Me: I guess the question is, where did that file go, and why is WordPress looking for it in the wrong place?

    HostGator: It may be that permalink structures were changed for the upload path as it is looking for a file in a location that isn’t even on the server.

    Me: On the main blog the Permalink structure is defined as /blog/%category%/%postname%/
    On the secondary blog it is defined without the “/blog” prefix, but that was changed after the secondary blog was created.

    HostGator: Unfortunately I am not able to really troubleshoot this issue. The problem is that it is looking to the wrong place for files.
    I would recommend contacting the admins back at www.ads-software.com and asking them how to modify the location it is looking to.

    Me: Do you think it would fix the problem if I deleted the secondary blog then defined its Permalink structure correctly from the first?

    HostGator: It may but it depends on where the files are. I am not really able to provide support with this as it is not a direct product we offer.

    Me: Do you have any way of telling if the file CelineDion3.jpg is anywhere on the server?

    HostGator: The image is located at /public_html/FanHappy/wp-content/blogs.dir/4/files/2010/10

    Me: Thank you. With that information I may be able to get the issue resolved through the www.ads-software.com forum.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    HostGators an idiot. And wrong about the /files folder being wrong. WordPress redirects images from domain.com/files/yyyy/mm/image.jpg to the correct blogs.dir folder. Ignore them about that.

    However. What’s the full and complete content of your .htaccess file?

    The support person you were talking to has no idea how multisite works. *sigh*.

    This is correct:

    HostGator: The image is located at /public_html/FanHappy/wp-content/blogs.dir/4/files/2010/10

    That is where the image is supposed to be. The htaccess files will rewrite that url so it *appears* to be at this address:

    https://fanhappy.com/celinedion/files/2010/10/CelineDion3.jpg

    By default, the 2010 theme know how to handle it. It works fine. You should not have to change *anything* in WordPress.

    Do me a quick check: go to your celine blog in the admin area, use the media uploader and upload an image. Give me the URL.

    (you done some stuff in setting the blog up with a plugin, so I’m thinking that messed stuff up.)

    Thread Starter djlinden

    (@djlinden)

    Here is my .htaccess file content:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    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 . index.php [L]
    ——————————————————————–
    I just uploaded another custom header, named CelineDion4.jpg.
    Then from this URL: https://fanhappy.com/celinedion/wp-admin/upload.php,
    when I click Edit under the filename CelineDion4.jpg,
    I am taken to https://fanhappy.com/wp-admin/media.php?attachment_id=13&action=edit
    where I see a picture of Keith Richards.
    Thus I am unable to discern the URL of CelineDion4.jpg.
    This is another example of the “backend” problems I’ve been having, i.e., even though I logged in via the celinedion subdirectory, some of the menu items cause me to stray into the main blog’s territory.
    ———————————————————————
    I am inclined to agree that my propagating the Permalink structure from the main blog to the secondary blog, then changing it manually, may have messed things up. If you think it would cure the problem, I could delete the secondary blog again and recreate it without carrying over the Permalink structure.

    Thread Starter djlinden

    (@djlinden)

    Update: the HostGator file manager shows the file CelineDion4.jpg as being in the following location:
    FanHappy/wp-content/blogs.dir/4/files/2010/10

    When I view the file there, it has the expected appearance.

    If you think it would cure the problem, I could delete the secondary blog again and recreate it without carrying over the Permalink structure.

    Do that. Create a fresh blog, upload a header and see if it magically works now.

    Thread Starter djlinden

    (@djlinden)

    I plan to delete the entire blog and start from scratch, as it seems that deactivating and deleting the YD Network-wide options (3.0.1) plugin does not remove its settings, and I want to avoid problems it may have caused. Do you know of any other plugin that purports to offer similar functionality, i.e., replication of selected settings from main blog to secondaries?

    What I will do is to create a new main blog and a couple of secondaries with NO plugins, then add plugins one at a time until something breaks, or, maybe, it all hangs together.

    Thanks, again, for your generous support.

    djlinden: i had the same trouble with the uploads not showing up. I am not sure if this happened after the update from 3.0 to 3.0.1. Getting desperate, I just overwrote my .htaccess file with yours and I am happy to report that “everything works” – for now.

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘WP 3.0.1 Multisite subdirectories cannot access backend’ is closed to new replies.