WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WordPress Download Monitor] update issue Fatal error: Call to a m…

[Plugin: WordPress Download Monitor] update issue Fatal error: Call to a m…

  • Today I decided to update the plug “downloadmonitor” from version 3.2.3 to 3.3.3.5. Unfortunately the plug does not updated the database correctly. Not have changed the name of the table pitl_DLM_CATS. An error has occurred
    “Fatal error: Call to a member function get_decendents () on a non-object in / www / danieltrt / www / pitland / wp-content / plugins / download-monitor / shortcodes.php on line 220”

    I would add that the problem occurred on an external server:
    MYSQL Version: 5.0.90-log
    PHP Version: 5.2.10

    On a local test server there were no problems with the update.

    http://wordpress.org/extend/plugins/download-monitor/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Mike

    @jolley_small

    It does not remove DLM_CATS – you should have a new table called download_monitor_taxonomies – this is for categories and tags.

    How many categories do you have? The code in question is one which loops through them getting the children categories.

    if ($r['digforcats']) $the_cats = array_merge($the_cats, $download_taxonomies->categories[$cat]->get_decendents());

    You could fix it by doing this:

    if ($r['digforcats'] && is_object($download_taxonomies->categories[$cat])) $the_cats = array_merge($the_cats, $download_taxonomies->categories[$cat]->get_decendents());

    But there must be another problem or you wouldn’t need to.

    Yes i have “download_monitor_taxonomies” table.
    I have 9 main categories without subcategories.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress Download Monitor] update issue Fatal error: Call to a m…’ is closed to new replies.
Skip to toolbar