WP Hive » Installation and Configuration

Comments problem in 0.5

(14 posts)
  • Started 2 years ago by sallam
  • Latest reply from ikailo
  • 1 Members Subscribed To Topic

  1. sallam
    Member

    Greetings
    Before upgrading to wp-hive 0.5, everything was fine, and I created several blogs that worked with no problem. But after updating to 0.5, the new blogs that I've created later are having a problem: no comments can be made in posts. Everytime I try to add a reply to a post, and submit, it takes me to the 404 error page, and the comment never shows up in the post.

    Is that a bug in 0.5? because this never happened before upgrading.

    Posted 2 years ago #
  2. ikailo
    Developer

    Are the sites that are experiencing the issue set up as subdomain sites, or subdirectory sites?

    Posted 2 years ago #
  3. sallam
    Member

    subdomain sites. I've changed the root directory of the subdomains and all. I did exactly as I did before. They worked perfectly in 0.42

    Posted 2 years ago #
  4. sallam
    Member

    Hopefully you can find a fix for this..
    until then:

    Can you please guide me to where the old installation instructions are? I've deleted the new blogs and .05, then installed 0.42 back, but seem to have forgot how we were supposed to create a new site then. Currently the new subdomains load the original blog, instead of loading the installation page. (I did manually move the db file to the WP root folder)..

    Posted 2 years ago #
  5. sallam
    Member

    I've found a google cache of the old instructions for 0.42
    Here it is, in cae anyone needed it:

    =====================================
    Installation Instructions:

    1. Setup your first ‘home’ blog according to WP standard instructions.
    2. Upload the wp-hive folder to the /wp-content/plugins/ directory.
    3. Copy or move db.php to the /wp-content/ directory.
    4. Load the homepage of the first blog – this sets up the hive and the first site.
    5. Use your Webserver Administration (Cpanel, IIS, etc..) to point any domains you want to use in the hive to the Wordpress directory.
    6. Run the installation script on the site you added in step 5.
    7. Activate the ‘WP Hive’ plugin on the new site.
    8. Steps 5, 6 and 7 can be repeated any time to add more blogs to the hive.

    Posted 2 years ago #
  6. ikailo
    Developer

    Thanks Sallam. FYI - To completely uninstall WP Hive, you need to remove the wphive_config and wphive_hosts tables (Although you can leave wphive_hosts if you want to keep your sites list active - eg, if you are installing a different version). You also need to delete db.php.

    I will look into the issue with the comments.

    Posted 2 years ago #
  7. sallam
    Member

    Seems that I have to manually delete the wp-hive tables first, because now when I install a new site it gives many a ton of sql errors.
    What are the tables that wp-hive creates please?
    can you give me a query to delete them? I'm newbie in databases..

    Posted 2 years ago #
  8. ikailo
    Developer

    These three SQL Statements will downgrade the database to be 0.4.2 compliant:

    ALTER TABLE wphive_hosts DROP COLUMN path

    INSERT INTO wphive_config (item,val) values ('installed','1')

    INSERT INTO wphive_config (item,val) values ('allow_new_hosts','0')

    The last one will prevent you from adding new hosts (recommended for security). You can set it to 1 if you are adding new sites.

    Posted 2 years ago #
  9. ikailo
    Developer

    And one more query for good measure:

    DELETE FROM wphive_config WHERE item='version'

    Posted 2 years ago #
  10. sallam
    Member

    I acted before I read your reply, sorry..
    Anyhow, I've deleted the 2 wphive tables, and the 10 tables it created for the problematic sites.
    Then I've uploaded and activated 0.42
    But when I loaded my original blog, the wp-admin/install.php was loaded!
    Is that how its supposed to be?
    I don't recall seeing this step done to my original blog before. It was dreadful to see, and I decided to ask you first, because my original blog is many years old and carries many posts.
    So, I deleted wp-hive files again until I get a confirmation from you:
    Am I supposed to see the install.php page when I first go to my original blog? the one that asks for a blog title and admin email?
    Isn't that supposed to happen for newly created bogs only?
    will that give me a new admin password and delete my original tables then and give me an empty blog?

    Posted 2 years ago #
  11. sallam
    Member

    I did take the risk, but nothing bad happened, thank God.

    Anyhow, now will 0.42 installed and activated, new blogs I create still have the same comments issue. So, it seems that its related to something else, not your excellent plugin or its upgrade.

    I went through everything I did in the blogs to find out what caused this issue. The only thing I installed was the Wordpress Thread Comment
    http://wordpress.org/extend/plugins/wordpress-thread-comment/
    Do you know of any conflict between wp-hive and that plugin?
    I deactivated it, and deleted it. But the problem is still there. Maybe it changed something in the db and it was left there?

    I'm seriously thinking of starting a new WP installation, with a new db, then install wp-hive and create new blogs from there..

    Posted 2 years ago #
  12. ikailo
    Developer

    Glad to hear it is OK now.

    I tested WP Hive with that plugin but could not find any issue with a website set up as a subdomain. There did seem to be a problem with a website set up as a subdirectory, but this would not cause issues for you if you are now using 0.4.2.

    It would seem there is another factor involved here.

    Posted 2 years ago #
  13. sallam
    Member

    Thanks ikailo, I've installed a fresh WP 2.8.4 and made it an empty blog just to launch new blogs from. I used 0.5 in it, and it worked fine, with no problems. I've changed the root directory of some recent subdomains to point to the new wp installation. And of course I've avoided that Wordpress Thread Comment plugin to be in the safe side.

    I suppose, if I later on wanted to move a couple of sites from the old wp installation to the new one, how do I go about it?
    Do I have to create them empty first, then import the db tables from the old to the new db?

    Posted 2 years ago #
  14. ikailo
    Developer

    It is relatively easy to add an existing site to the Hive if they are all in the same database. Here are the general steps:

    1. Upgrade all sites to the same version.
    2. Merge plugins, themes, uploads, etc.. into the WP Hive filesystem.
    3. Add the site in the WP Hive Admin console, using the existing domain, path, and prefix.
    4. In your webserver, point the site to the WP Hive directory.

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.