Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter lachele

    (@lachele)

    The problem was the zlib installation. Apparently, the system zlib wasn’t updated enough, so that building php “–with-zlib=shared” wasn’t working properly. We installed a new zlib and updated the php, and it works now.

    Thread Starter lachele

    (@lachele)

    That didn’t change anything I can see. I just sent the db dump.

    Thread Starter lachele

    (@lachele)

    There wasn’t any trash to delete on that site. There was a single trash post in one of the other sites. I deleted it, but the behavior hasn’t changed.

    I checked my tables. They are all OK.

    There are some private posts, but they aren’t being miscounted, best I can tell. The Legacy category contains one public post and no private or deleted. The FAQ category contains 6 private posts, but none of the private ones also have the “AMBER” tag. The other two private posts are in category “HOW-TO”.

    There are more incorrect entries in the table now than there were when I first posted this. For example, there are actually 2 Tutorials, total, and neither has tag GLYCAM or Glycoprotein Builder. But, both have do tags “BFMP”, “Downloads”, “ring conformation” and “Software”. Only “ring conformation” shows up as a tag for them.

    I just tried changing the label (not the slug) for “ring conformation” to “Ring Conformation”. I know I had done that for other tags, but doing that didn’t change any behavior that I can tell.

    I said this before, more or less, but here it is in clearer form:

    In the table at the URL below, the tag “AMBER” has 0 FAQ entries and 1 Legacy entry. However, there are actually 3 FAQ entries (all public) and no Legacy entries.

    https://glycam.org/docs/help/

    If you use the URL to access the info, it comes up correctly, logged-in or not:

    3 posts (correct):
    https://glycam.org/docs/help/category/faq/?tag=amber

    0 posts (correct):
    https://glycam.org/docs/help/category/legacy/?tag=amber

    3 posts, total, with tag AMBER, all public and published:
    https://glycam.org/docs/help/tag/amber/

    Let me know if there is any other troubleshooting I can do.

    Thread Starter lachele

    (@lachele)

    No worries.

    I can’t see anything. All of the categories and some of the tags are listed below. The slugs are all really boring, and there are no hierarchies.

    BTW, go to the new site now (glycam.org/docs/help).

    I even deleted the descriptions (I had added one for “Legacy” while testing), then deactivated and reactivated the plugin. But, it still behaves the same.

    In the table on the Dashboard “Categories” page, “Legacy” is listed as having only one associated post, and it is the correct one (one of the two assigned to the tag “Derivatives” in the Cats-by-Tags table).

    The URL-acess works. For example, there should be three posts associated with the tag “AMBER”, all in the category “FAQ”. https://glycam.org/docs/help/category/faq/?tag=amber

    Cats and some tags:

    Category Slug
    FAQ faq
    HOW-TO how-to
    Legacy legacy
    Troubleshooting troubleshooting
    Tutorial tutorial
    Uncategorized uncategorized

    Tag Slug
    AMBER amber
    BFMP bfmp
    Build Options build-options
    Carbohydrate Builder carbohydrate-builder
    Derivatives derivatives
    Downloads downloads
    Files files

    Thread Starter lachele

    (@lachele)

    I did find one workaround for at least one manifestation of the problem.

    Briefly:

    1. For each blog that isn’t showing up, make sure the “Public” Attribute is checked in the Info tab you access from Network Admin via “Sites” and “Edit”.
    2. Network Deactivate the plugin, then Network Activate it.

    More info, including why:

    As has been mentioned elsewhere in relevant forums, the “Attributes” part of the Site Info can have all boxes un-checked (without admins having done anything). This can cause the $wpdb calls in inc/views.php to ignore those blogs because “AND public = ‘1’” will not be satisfied. Even if you check the “Public” box, the plugin will not see that blog because – best I can tell – the information for public blogs doesn’t get updated unless the blog is new (see multisite-global-search.php, particularly the second argument to register_activation_hook). So, if you network deactivate, that forces the plugin to forget previous knowledge of the blogs. Then, when you activate again, it re-discovers them.

    As a fix, I think it might work to give an option “refresh blog info for multisite global search” that does essentially the same thing. I would suggest code, but I really don’t know php, so I can’t do that very well.

    Thread Starter lachele

    (@lachele)

    Although the procedure can make more blogs visible than were, it doesn’t necessarily make *all* blogs visible. Furthermore, one blog lost all its posts when I tried it just now. I had a backup — make a database dump before trying the procedure above!!!.

    So… I think somehow the blogs just aren’t being seen, or aren’t being seen as valid, when the global search happens. I’m not sure how to fix that, though.

    Thread Starter lachele

    (@lachele)

    Thank you! That worked! The login is fine, and I’m still getting some strange behavior (*) when I try to add a new user, but I am able to add new users.

    (*) After clicking “Add User”, I get a blank screen. If I refresh the page, and tell the browser to resend the data, I get a message that the username and email address are taken, but, if I check the user list, the user was added. WP also doesn’t send an email to new users or assign a password. Those two have been broken for a while and aren’t the fault of Easy Captcha. So, maybe the blank screen is also not Easy Captcha, and I’m marking this resolved. I’ll post a report about the other stuff once I have time for some more troubleshooting.

    Thread Starter lachele

    (@lachele)

    Completely by accident, I found that the multisite search was working for some blogs but not others (not the ones I had previously been testing). I tried setting privacy settings the same, but that didn’t matter. I tried comparing the site “Settings” tabs, and there were differences, but none that I knew enough about to know they would make a difference.

    Happily, and surprisingly, I found a behavior that seems to have fixed things. It might also help someone who knows more about WordPress than I do to figure out what happened.

    Here’s what magically seems to have changed things:

    1. Rename a non-searchable blog to a new name.

    Example: The blog currently at https://dev.glycam.org/docs/oldhelp used to be at https://dev.glycam.org/docs/help — until I renamed it. It used to be that global-searching for terms on that site wouldn’t work.

    2. Create a new blog with the old name.

    Example: I then created a new blog at https://dev.glycam.org/docs/help and added some of the posts from the one that was renamed to oldhelp.

    3. Amazingly, multisite global search works again, for both sites.

    More info: I repeated these steps for one blog on our private site, and, I was able to get search results from other blogs in addition to the one I renamed. Before the procedure above, for example, only one blog would return one result from “search term”. Now, there are five results, from five different blogs, one of which is the blog I performed the procedure on.

    Any ideas what that procedure might have affected?

    Thread Starter lachele

    (@lachele)

    I added print statements so that shortcodes.php would run certain info to a file. It appears to be generating a search string, but the database query isn’t returning results.

    Here is an example:

    These are the contents of $request. I know for a fact that a blog contains the term “buttons”.

    SELECT wp_v_posts.* from wp_v_posts left join wp_users on wp_users.ID=wp_v_posts.post_author where ( post_title LIKE ‘%buttons%’ OR post_content LIKE ‘%buttons%’ OR wp_users.display_name LIKE ‘%buttons%’ ) AND ( post_status = ‘publish’ OR post_status = ‘private’ ) AND ( post_type = ‘post’ OR post_type = ‘page’ ) ORDER BY wp_v_posts.blog_id ASC, wp_v_posts.post_date DESC, wp_v_posts.comment_count DESC

    Here are the contents of $search
    Array
    (
    )

    Here is the site where searching locally returns a result, but searching globally does not:

    https://dev.glycam.org/docs/help/
    (the site is still under construction, so I am a bit shy about sharing, but perhaps it will help)

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