Support » Networking WordPress » Cannot edit pages in a sub-site

  • Resolved wiebedocner

    (@wiebedocner)


    I have a multi-site set up using path-based site separation, using the country code as path ( english on the root path, /br/ for brazilian ).
    Pages have been duplicated when switching to multi-site. When I look in the database, I see that in the database tables for the brazilian site (wp_2_posts) records exist with the content of the pages at the moment of duplication.

    In the site menu I select my brazilian subsite and I choose ‘dashboard’. After reload, I can see the dashboard left menu I click pages to see all pages.

    In the left dashboard menu, all links contain the ‘/br/’ part. All pages in the list do NOT contain the /br/ part. When I click to edit I am editing the english page.

    So I change the URL from http://<hostname>/wp-admin/post.php?post=424&action=edit to http://hostname/br/wp-admin/post.php?post=424&action=edit
    . While the URL is accepted, the content of the page is the english content to be edited.

    How can I start tracking down the problem ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Bet Hannon

    (@bethannon1)

    Are you using some sort of plugin to do translations?

    Have you tried deactivating all plugins and seeing if the problem still exists? It may not be your translation plugin that is creating the conflict, but another plugin that isn’t playing nicely with it. Deactivating all the plugins and (if that makes the issue go away) re-activating them one by one will help you find the problem.

    OR, are you saying this is a new network, and you are having this problem from the beginning with no plugins installed?

    Thread Starter wiebedocner

    (@wiebedocner)

    Thank you for replying.

    The multisite installation was first created as a single-site installation, then converted to a multi-site. There is no automatic translation plugin, because it will be necessary to have pages and blog posts that are different for brazilian readers (regional) from international readers (tourists).

    The multi-site installation has been working correctly, including the language switcher plugin.

    Right now I have disabled all plugins, both in all sites and on network level. The same problem: the dashboard menu has the language part in its links, but the edit.php page list has not.

    It is almost, as if the prefix for the tables of the subsites is not considered and wordpress code still reads from the english tables, which are the original ones. But that it a guess.

    the wp_site table only has 1 entry; the wp_blogs table has three, with the path and domain correctly set.

    Are there any configuration settings to check ? Database fields ?

    Thread Starter wiebedocner

    (@wiebedocner)

    As I work on an Amazon server as a development machine, I restored an older backup on a new instance and started working from that to compare the database.

    I found out, comparing databases, that the newer one had inconsistent site URL usage; there were IP’s from outside our network, probably left there by a freelancer that helped me.

    Exporting the database, and using sed to do a search/replace on the faulty domain names to the correct one solved the problem.

    After that, step by step I enabled all my plugins again and can now continue my work. Thanks for the support.

    Moderator Bet Hannon

    (@bethannon1)

    Great! Glad you got it solved!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot edit pages in a sub-site’ is closed to new replies.