PHP error division by zero in shortcodes.php file

Viewing 4 posts - 1 through 4 (of 4 total)
#185480

Hi,

In the latest version of download manager I seem to be getting an error in the shortcodes.php file as per below:

Fatal error: Uncaught Error: Division by zero
in /var/web/site/public_html/wp-content/plugins/download-manager/src/Package/Shortcodes.php on line 130

If I comment the below line out, my page works. Any reason what could be causing the issue as it seems to be getting caught up in a division by zero error.

$cwd_class = “col-lg-” . (int)(12 / __::valueof($params, ‘cols’, [‘default’ ► 3, ‘validate’ ► ‘int’]));

Thanks

#185488

Shahjada
Keymaster

use cols=1 as shortcode parameter.

#185489

Thanks but in the past I was able to use something like this:

cols=”title,download_count|download_link”

Does this no longer work?

#185491

Shahjada
Keymaster

that is for another shortcode [wpdm_all_packages...]

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

The topic ‘PHP error division by zero in shortcodes.php file’ is closed to new replies.