WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP BUSINESS DIRECTORY MANAGER] Categories Not Displaying (44 posts)

  1. kga245
    Member
    Posted 4 years ago #

    I've got the directory plugin installed and it appears to be working. I've got categories linked to it. And they display correctly in the directory page:

    /business-directory/
    shown here:
    http://img.skitch.com/20100402-8x5pg46qncgieiu4gm26i5dg34.jpg

    the problem is once I submit a new listing, the listing appears to have been saved but it fails to update the tally for that category in the directory page above. and then when i click on a category to see all the listings for that category, i get an error message - for example:

    /category/directory-listings/accounting/

    Warning: Invalid argument supplied for foreach() in /usr/sites/mvn/htdocs/wp-content/plugins/wp-business-directory-manager/wpbusdirman.php on line 236

    any ideas why this is happening?

    -----------
    http://wordpress.org/extend/plugins/wp-business-directory-manager/

  2. Themestown
    Member
    Posted 4 years ago #

    kga245, looking into this. In the meantime, do you have new posts set to "pending" or "publish"? The default and recommended is "pending". If it's set to "pending", did you publish the pending listing (the same way you publish a pending post). Is this happening even while the listing has a status of published?

  3. lyricalbiz
    Member
    Posted 4 years ago #

    I'm also getting alot of invalid arguments. I've uninstalled the plugin and reinstalled without any luck. This is what happens when I try to upload an image file:

    Warning: move_uploaded_file(home/mha55/public_html/wp-content/wpbdm/1270320063_0.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/mha55/public_html/wp-content/plugins/wp-business-directory-manager/wpbusdirman.php on line 4466

    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpxvFKAn' to 'home/mha55/public_html/wp-content/wpbdm/1270320063_0.jpg' in /home/mha55/public_html/wp-content/plugins/wp-business-directory-manager/wpbusdirman.php on line 4466

    [1270320063_0.jpg]could not be moved to the destination directory home/mha55/public_html/wp-content/wpbdm

  4. Tom
    Member
    Posted 4 years ago #

    Having same problem:

    Warning: Invalid argument supplied for foreach() in /usr/sites/mvn/htdocs/wp-content/plugins/wp-business-directory-manager/wpbusdirman.php on line 236

    ..appearing in the header of my page when I try to view the category listings.

    Shame as this seems like it could be a very good plugin.

  5. intlhpassoc
    Member
    Posted 4 years ago #

    Great plugin however I am receiving an error message whenever someone tries to submit a listing or I update a page. The error message is: Fatal error: Call to a member function get_page_permastruct() on a non-object in /data/0/0/83/117/83932/user/85262/htdocs/ihpa/wp-includes/link-template.php on line 223. In addition I have the categories listed as child categories under a main heading. Could this be an issue? Big $$$ if you can fix this problem or any others.

  6. kga245
    Member
    Posted 4 years ago #

    @ Themestown

    i'm not sure what you mean. to my knowledge no posts are pending. how would I find that out? is each new listing a "post" ?

  7. kga245
    Member
    Posted 4 years ago #

    i went into the control panel and changed the "Default new post status" status to "publish" and i get the same error.

  8. jarvo1980
    Member
    Posted 4 years ago #

    I too get this error. I can see my categories but if I click on a category I get:
    Warning: Invalid argument supplied for foreach() in C:\...\wordpress\wp-content\plugins\wp-business-directory-manager\wpbusdirman.php on line 237

    Hmmm...

  9. Themestown
    Member
    Posted 4 years ago #

    Everyone, sorry to have taken so long to respond. I am getting these issues fixed and should have an update ready by the middle of the coming week.

  10. Themestown
    Member
    Posted 4 years ago #

    For those of you getting the [function.move-uploaded-file]: failed to open stream: error messages, make sure the upload folders actually exist. You should have wp-content/uploads/wpbdm and wp-content/uploads/wpbdm/thumbnails. The plugin is supposed to be creating these folders on the first upload attempt but it seems for some that's not happening so you will need to create the folders manually. You can check the post below for more info if you have the folders but still get the error

    http://themestown.com/wp-business-directory-manager/wp-business-directory-manager-image-upload-error

  11. Themestown
    Member
    Posted 4 years ago #

    Warning: Invalid argument supplied for foreach() in /usr/sites/mvn/htdocs/wp-content/plugins/wp-business-directory-manager/wpbusdirman.php on line 236

    The above warning appears to be associated with categories that don't have any posts in them. I have added some code to the core to fix the warning. You can try going to the "Configure/Manage Options" admin page and setting Hide Empty Categories to yes for now.

  12. Themestown
    Member
    Posted 4 years ago #

    Hi intlhpassoc, I'll try to track down and fix this problem. No need to promise big $$$. I will fix any bugs that are found so that the product works as intended.

  13. tdcsupport
    Member
    Posted 4 years ago #

    Hi, I just installed v1.1 and now I get this error when clicking on my Business Directory page.

    Warning: Invalid argument supplied for foreach() in /homepages/1/d322814613/htdocs/wp-content/plugins/wp-business-directory-manager/wpbusdirman.php on line 3219

  14. Themestown
    Member
    Posted 4 years ago #

    tdcsupport do you have any listings in the directory? I've updated to 1.2 with a fix but since I don't know the condition under which the warning is popping up then I can't be sure the fix will work so let me know; and if it doesn't work then anything else you can tell me such as whether or not you have any listings might help. Or better yet if you could point me to where I can see the problem in action.

  15. tdcsupport
    Member
    Posted 4 years ago #

    Hi, I have been working with v1.2 over the last hour and discovered the error below.

    I have "must be logged in" to join the directory turned off, so I simply tried to Join the Directory by populating the required fields and clicked on submit button. This is what I got back.

    Fatal error: Call to undefined function sanitize() in /homepages/1/d322814613/htdocs/wp-content/plugins/wp-business-directory-manager/wpbusdirman.php on line 3572

  16. Themestown
    Member
    Posted 4 years ago #

    Thanks for that info tdcsupport. Will get it fixed and update as soon as fixed.

  17. rockinr
    Member
    Posted 4 years ago #

    Why does Business Directory manager create a post on my home page when i submit a new listing? How do i get it to stop?

  18. tdcsupport
    Member
    Posted 4 years ago #

    Hi, I have been working with v1.3 over the last hour and discovered the same fatal error as v1.2.

    Fatal error: Call to undefined function sanitize() in /homepages/1/d322814613/htdocs/wp-content/plugins/wp-business-directory-manager/wpbusdirman.php on line 3575

    System Info:
    WordPress Version WP 2.9.2
    PHP Version 5.2.13

  19. Luis Rivera
    Member
    Posted 4 years ago #

    Thats a great plugin but i dont know why when i try to submit the information dont do anything :( just send me to an error page.

    Themestown
    The web site is http://clasificadosfacil.net if need more information reply me please thats a great feature but i dont know why dont work.

  20. Luis Rivera
    Member
    Posted 4 years ago #

    If anywone have some info tweet me at @prwebdesign thankx people

  21. Luis Rivera
    Member
    Posted 4 years ago #

    Ups the directory category are here http://clasificadosfacil.net/negocios/

  22. Themestown
    Member
    Posted 4 years ago #

    tdcsupport, my apologies but I did forget to check that one before updating to 1.3

  23. Themestown
    Member
    Posted 4 years ago #

    anselmox, any chance you could print the text of the error that shows when you try to submit the info? Or is it sending you to a 404 page?

  24. akingston47
    Member
    Posted 4 years ago #

    Themestown - I really like the plugin, its definitely a lot better than any other business directory plugins available. However the problem I'm having is that none of my normal blog posts will display on my main blog page when I have the plugin activated. If I select the category page for these posts they will display or if I write a post and categorise it as one of the directory categories (which I know you're not supposed to do) it will show up on the home page.

    Is there a setting I can change to fix this or is it a bug? Is anybody else experiencing the same problem?

  25. acowboyswife
    Member
    Posted 4 years ago #

    I LOVE this plugin but I am having one issue. When I set it so that I do NOT require login, it doesn't allow them to upload an image. Is that a flaw or is that how you have it built? I really don't want people to have to register? So like, will the email the business function work if they are not registered or is that another reason they would have to?

  26. acowboyswife
    Member
    Posted 4 years ago #

    Btw, just also wanted to say thank you for all your hard work! I know that you probably get bombarded with questions so know that your work is appreciated:)

  27. Themestown
    Member
    Posted 4 years ago #

    acowboyswife, thank you. I appreciate your thoughtfulness. Regarding the login image upload issue, I checked and found there were problems with the listing submission process for non-logged in users. I've fixed the problem and will be releasing the update today but want to test a few more things first.

    The email the business function will work even if the user is not logged in. At least is should work. If you are finding that it is not working please let me know.

  28. Themestown
    Member
    Posted 4 years ago #

    tdcsupport, I have fixed the below in version 1.4 which I plan to release today after I have done some more testing

    Fatal error: Call to undefined function sanitize() in /homepages/1/d322814613/htdocs/wp-content/plugins/wp-business-directory-manager/wpbusdirman.php on line 3575

    That error was related to some problems with the listing submission process for non-logged-in users.

  29. Themestown
    Member
    Posted 4 years ago #

    rockinr, the plugin uses a filter that excludes the directory posts from showing on the homepage, but I've found that depending on your theme, the filter sometimes does not work. I've redone the filter in version 1.4. If you update and the problem is still occurring please use the contact form at http://www.themestown.com to send me the URL of your site and let me know what theme you're using. Or you're free to post that info here if you prefer.

  30. Themestown
    Member
    Posted 4 years ago #

    akingston47, regarding the problem you've reported, I suspect it has something to do with the filtering function being used to keep the business directory posts from showing on your homepage. The function being used in current version conflicts with certain themes. I have changed the function in version 1.4. I'll be releasing version 1.4 at some point today. If you upgrade and it doesn't fix the problem please let me know.

Topic Closed

This topic has been closed to new replies.

About this Topic