[Plugin: WordPress Download Monitor] update issue Fatal error: Call to a m... (3 posts)

  1. maestro2012
    Posted 6 years ago #

    Today I decided to update the plug "downloadmonitor" from version 3.2.3 to 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.


  2. Mike
    Posted 6 years ago #

    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.

  3. maestro2012
    Posted 6 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic