• Resolved Shamalli

    (@shamalli)


    Just installed your plugin and trying to configure it first of all, but got this error while trying to set up BD search widget in right sidebar, at the frontend I get this error just after widget title:
    Fatal error: Maximum function nesting level of ‘100’ reached, aborting! in \www\wp-includes\wp-db.php on line 1125

    WordPress from the package – no 3rd party plugin and themes except yours.

    http://wordpress.org/plugins/business-directory-plugin/

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

    (@shamalli)

    I found that this error was thrown by xdebug due to recursion limit,
    but when I disable xdebug – frontend pages just hang and then out of time error.
    PHP 5.3.13

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Hi Shamalli,

    First, what version of BD are you running? And what version of WP?

    We don’t see this on a normal installation with our test servers, so I would suggest testing for a plugin/theme conflict. Here is an article about how to test for theme and plugin conflicts with Business Directory, which may help pinpoint the issue: http://businessdirectoryplugin.com/support-forum/faq/how-to-check-for-plugin-and-theme-conflicts-with-bd/

    Report back on what you find.

    Thread Starter Shamalli

    (@shamalli)

    the latest BD and the latest WP,
    no other installed modules and plugins, WP from the box,
    only one default theme installed “Twenty Twelve” – that is distributed with WP in the same archive

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    I suppose we will need to see it in action directly. Please contact me here with admin credentials to your site and we can dig further on it.

    http://businessdirectoryplugin.com/contact/

    Thread Starter Shamalli

    (@shamalli)

    Unfortunately it is on localhost,
    by the way, found the same fatal error when clicked to view new listing
    http://wp/wpbdp_listing/7/

    Thread Starter Shamalli

    (@shamalli)

    Finally we found this bug in your scripts.
    To reproduce this bug – call wpbdp_get_page_link($name=’main’, $arg0=null); function without arguments or with $name=’main’
    and when page with [businessdirectory]’ shortcode doesn’t exist

    In such case this function run into infinite recursion.

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    OK, thanks for the information.

    The page with the shortcode on it must exist as part of the BD installation. I’m not sure how you got into that situation, but the page is required with that shortcode. If you’re doing customization, that’s fine, but it’s something you should be aware of.

    Thread Starter Shamalli

    (@shamalli)

    If you would re-read my posts above – you’ll understand that I placed your BD search widget before created the page with shortcode – this is the reason of the problem. This bug is in the structure of your script, you allow to add widgets before creation of the page with shortcode. The same issue raises when I tried to preview new directory listing.
    I am not doing any customizations, this is WP and BD plugin from the scratch (you may easily found this thing from my messages above).
    Also you didn’t mentioned such thing that the page with shortcode really REQUIRED in you installation instructions: http://businessdirectoryplugin.com/docs/#install

    I just inspect your code, and, by the way, found other much more serious bugs. “much more serious” because they do not related with installation stuff, but may affect already working site.

    And finally, fix this bug in wpbdp_get_page_link() function, when there is any chance to run into infinite recursion – this is really bad style of coding.

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    I will have my developer take a look at this, but I’m still not clear on how this can happen. You can have the widget on the main BD page–that’s not a problem (in fact, so do I on the demo site). Is this a Windows or Linux install?

    I will make sure the instructions are amended. BD will create and install the shortcode on a page automatically, so it’s not mentioned explicitly.

    Also, if there are specific issues you have found with the code, I would welcome feedback on them but it’s hard to act on “found much more serious bugs” without further details.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Fatal error’ is closed to new replies.