Call to undefined function dl() error when users try to change or upload Avatar

Started by invince, April 28, 2020, 04:32:48 AM

Previous topic - Next topic

invince

As the subject says, my users receive the error: Call to undefined function dl(), whenever they try to change their avatar or upload the new one. I request help for this.

vbgamer45

It's a known issue fixed in this next update.

You can remove this code in the check_mime_type function in sources/subs-package.php


if (empty($safe) && !empty($dl_ok))
$loaded = @dl(((PHP_SHLIB_SUFFIX === 'dll') ? 'php_' : '') . 'fileinfo.' . PHP_SHLIB_SUFFIX);
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

jbridges87

I was able to resolve this by enabling the 'fileinfo' tag under 'selectPHPversion' applet of cPanel.
If you do a search, you will find a few threads on the matter that explain the issue, and provide the fix.
Come by and check out my sports forum, here.
Running SMF v2.0.17

Advertisement: