WordPress.org

Forums

Doc It
[resolved] Sub-categories in non-English (21 posts)

  1. noodles91
    Member
    Posted 1 year ago #

    The plugin is really great, just what I was looking for.

    There's one problem though. Naming sub-categories in Russian causes an error when going to pages in those sub-categories:

    "Catchable fatal error: Object of class WP_Error could not be converted to string in /usr/local/apache2/htdocsprod/romm/wordpress/wp-content/plugins/slick-doc-it/includes/di-functions.php on line 370"

    What's interesting is that when you go to the sub-category itself, there's no error. Seems like it's an issue with breadcrumbs.

    So, when the breadcrumb ends in Russian, there's no error. In my case breadcrumb looks like this when you go to a sub-category - "Wiki » Тест", where "Тест" is in Russian characters. And it works fine.

    When there's supposed to be some Russian in the middle of the breadcrumb it breaks. For example if you go to a page in "Тест" sub-category, there's and error and an unfinished breadcrumb: "Wiki »" when it's supposed to look like "Wiki » Тест » Test".

    Help would be much appreciated.

    http://wordpress.org/plugins/slick-doc-it/

  2. noodles91
    Member
    Posted 1 year ago #

    Here are few images - http://imgur.com/UE2xHaf,iD9bd0y

  3. slickremix
    Member
    Plugin Author

    Posted 1 year ago #

    Hey noodles91,
    Thanks for using our plugin. We apologize for an inconvenience this has caused you! Can you please send us a link to a live example. There may be a chance that we need to login to your install to see why its breaking.

    Thanks again for your interest in our plugin!

  4. noodles91
    Member
    Posted 1 year ago #

    Thanks for a quick reply!

    Unfortunately, the website I am working on is for internal use in a company and is based on an intranet server. So I am afraid that you won't be able to look at it live.

    I think you can try to recreate the bug, it should be easy. Just use Russian name for a category/sub-category. For example 'Тест' or 'Проверка', you can just copy-paste it.

  5. noodles91
    Member
    Posted 1 year ago #

    No more replies?

    By the way, I've just found out that your plugin was breaking my WordPress' ordering somehow. Noticed it when using get_posts() function and trying to order by date. And it breaks ordering everywhere, like even in the Admin panel, when you try to order list of pages or posts by anything, it just doesn't work.

    Spent quite some time figuring out what was causing it. I have even deleted the plugin and redownloaded, then tested it by turning off all other plugins and it was definitely Doc It.

    Can't use it unfortunately, until its fixed.

  6. slickremix
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry been under the weather here. Thanks for the update on ordering issues. We will be getting a fix for this and the language thing as soon as we can. We'll keep you updated.

  7. noodles91
    Member
    Posted 1 year ago #

    Cool, waiting for an update then. Good luck with fixing :)

  8. slickremix
    Member
    Plugin Author

    Posted 1 year ago #

    Good news I believe we have found a fix for the language issue. Next is to address the sorting issue. Stay tuned for an update soon! :)

  9. noodles91
    Member
    Posted 1 year ago #

    Great, thanks! :)

  10. slickremix
    Member
    Plugin Author

    Posted 1 year ago #

    We believe this should fixed now please update to newest version and test. :)

    Thanks!

  11. slickremix
    Member
    Plugin Author

    Posted 1 year ago #

    Correction: sorry we still know about the sort order issue.

  12. slickremix
    Member
    Plugin Author

    Posted 1 year ago #

    Update to 1.0.7, fixed many issues including the sort order.

  13. noodles91
    Member
    Posted 1 year ago #

    Awesome, thanks. That took quite some time :)

    I've since come up with my own solution, but will try your plugin again, think it will work better. Good luck with further development!

  14. noodles91
    Member
    Posted 1 year ago #

    I've just tested it and I'm sorry to say that the ordering problem is still there. When Doc It is active, sorting in admin lists (list of pages for example) doesn't work.

    That wouldn't be much of a problem, if it was only that. It also breaks ordering of news in a news widget for example (GK News Show Pro), so the news are not ordered by date.

    I've tried reinstalling the plugin and changing the theme, that didn't help. Hope you can figure out how to fix it.

  15. slickremix
    Member
    Plugin Author

    Posted 1 year ago #

    Maybe I am misunderstanding your issue. When you say the problem still exists are you trying to move the posts around with the mouse on posts and pages or categories outside of docit, and they are moving? Can you take a screen shot of exactly what your talking about... also you say you fixed it for your issue... can you share what you did to fix the problem please and explain clearly the issue? Many thanks!

  16. noodles91
    Member
    Posted 1 year ago #

    I mean wordpress pages and posts and such in wordpress admin panel. Not anything related to Doc It pages/categories.

    And I am talking about sorting the lists of pages/posts by their names or creation dates (clicking on the headers), etc. With Doc It plugin activated, it just doesn't work. It also messes up ordering in that widget I mentioned, it's supposed to display news from newer to older. With Doc It activated it doesnt do it, it just adds the news at the end, when it should be the other way around.

    It's like Doc It somehow messes up the sorting functions in WordPress when activated.

    When I said that I've made my own solution, I meant that I just created a page with similar functionality to Doc It (documention page). I haven't fixed Doc It problems as I dont have time for that.

    Can't make screenshots unfortunately, as I am off work and won't be there for few days. Just try to activate the plugin and then sort the list of pages or posts in wordpress admin panel, see if it works.

  17. slickremix
    Member
    Plugin Author

    Posted 1 year ago #

    Aaah interesting I see now. We will def get this taken care of. Thanks again!

  18. noodles91
    Member
    Posted 1 year ago #

    No problem, hope you will finally fix it now :)

  19. slickremix
    Member
    Plugin Author

    Posted 1 year ago #

    Ok fixed! 1.0.8 update, check it out.. added thanks to you in readme too :) Maybe you could drop a nice review for us when you get a chance. Thanks again for your patience.

    http://wordpress.org/support/view/plugin-reviews/slick-doc-it

  20. noodles91
    Member
    Posted 1 year ago #

    Awesome! Sorry for a late reply, was caught up in some unrelated business.

    Everything seem to be working fine now, all previous issues appear to be fixed - thanks!

    There is one minor problem though, but I'm not sure if it's the plugin's problem or a problem with permalinks. The sub-categories' links in the menu (on the left) have '/wordpress/' in the link path, though my website URL does not use '/wordpress/'. So when I click on sub-categories in the menus, it goes to 'page not found'. All other links in the menu and breadcrumbs work fine, only those sub-categories. I suppose I could just fix it manually, but maybe you should take a look at it as well.

    So, in short:
    links are: http://example.com/wordpress/docs/wiki/sub-category
    links should be: http://example.com/docs/wiki/sub-category

    My website url type is without 'wordpress' - just http://example.com
    Also, my permalink type - 'http://example.com/%post_id%'
    I've tried other permalink types - nothing helped, some just broke my website :)

  21. noodles91
    Member
    Posted 1 year ago #

    Okay, I fixed the previous problem manually. But I noticed that Doc It still messes up the ordering in my GK News Show Pro widget.

    So whenever I add a new document for Doc It or update an existing one, or even update the GK News widget's settings, the ordering of news changes from (by date, descending) to (by date, ascending). And the only way to change it back is to completely disable Doc It and then resave the GK News widget's settings.

    I looked into it, delving deeper into the code. So here is what I discovered:

    Doc It somehow meddles with WordPress function get_posts(), more specifcally with some of the querrying functions used there(wp_query() or query()). For some reason, it changes the ordering part in the resulting queries (from 'ORDER BY smth DESC' to 'ORDER BY smth ASC'). It doesn't matter what the ordering is BY, it just changes 'DESC' to 'ASC'.

    I have analysed the resulting queries of the GK News widget (from get_posts function):

    With Doc It disabled:
    SELECT wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'post' AND ((wp_posts.post_status = 'publish')) ORDER BY wp_posts.post_date DESC LIMIT 0, 6

    With Doc It enabled:
    SELECT wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'post' AND ((wp_posts.post_status = 'publish')) ORDER BY wp_posts.post_date ASC LIMIT 0, 6

    So, I have no idea how Doc It manages to do that, I can't spend too much time looking into it. But it is definitely not good that a plugin can affect the outcome of the WordPress functions like that. Hope you will identify the problem and fix it, as I really want to use your plugin but keep having issues with it :\

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Doc It
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.