Welcome to LegendCS – Free and Open Source gaming forum.

MyDownloads plugin - Unable to upload any files
#1
When you upload the Mydownloads Plugin in your mybb board and want to upload something you might get the following error :

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


Related Threads…
Thread Author Replies Views Last Post
  MyDownloads plugin - Manage Previews fix Berserk 0 174 09-30-2024, 06:45 PM
Last Post: Berserk

Forum Jump:


Recently Browsing 1 Guest(s)