When you upload the Mydownloads Plugin in your mybb board and want to upload something you might get the following error :
To fix this
inc/plugins/mydownloads.php
Change line 2886 to
PHP
Select All
mydownloads.php (in the root of your board)
change line 2739 to
PHP
Select All
Code:
Fatal error: Uncaught Error: Undefined constant " true" in /home/ztzvyayl/public_html/inc/plugins/mydownloads.php:2886 Stack trace: #0 /home/ztzvyayl/public_html/mydownloads.php(2758): mydownloads_upload_attachment(Array) #1 {main} thrown in /home/ztzvyayl/public_html/inc/plugins/mydownloads.php on line 2886
To fix this
inc/plugins/mydownloads.php
Change line 2886 to
Code:
$filename = "download_".$mybb->user['uid']."_".TIME_NOW."_".md5(uniqid(rand(),' true')).".".$ext;
PHP
Select All
mydownloads.php (in the root of your board)
change line 2739 to
Code:
$preview = "preview_".$mybb->user['uid']."_".TIME_NOW."_".md5(uniqid(rand(),' true')).".".get_extension($preview);
PHP
Select All