Error on line 172

Viewing 2 posts - 1 through 2 (of 2 total)


Hi ๐Ÿ™‚

Today we are getting the following error.

Notice: Trying to get property ‘term_id’ of non-object in /nas/content/live/test/wp-content/plugins/download-manager/src/Package/Shortcodes.php on line 172

The code part it refers to is:

* Convert slugs to ID
foreach ($categories as &$cat) {
if (!is_numeric($cat) && $cat !== ”) {
$catObj = get_term_by(‘slug’, $cat, ‘wpdmcategory’);
$cat = $catObj->term_id;

Line 72 is the last line.

Any ideas on what we should do to fix this? Thanks!


Humayon Kabir


Thank you for writing to us.

Please ensure that you are using the latest version of the WPDM plugin.

If still, the problem exists then, โ€‹I request you to please share your website credentials in a private reply so that I can take a closer look and work with you to get this working.

Here are the details I’ll need –

# Website Login URL
# Username
# Password
# Related URL where the error is appearing

Looking forward to hearing from you.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.