Quote:
Originally Posted by cosy
my error when i try to put a link or upload a file whit this add-on enabled
is this because old php ? not for php 5?
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fetch_foruminfo(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /......downloads.php(1392) : eval()'d code on line 65
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fetch_foruminfo(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /......downloads.php(1392) : eval()'d code on line 67
|
Look for the code below in plugins "DownloadsII Create Thread on Edit" and "DownloadsII Create Thread on Add" (admincp -> Plugins & Products -> Plugin Manager)
PHP Code:
if ($cat['dl_forumid_cat'] > 0)
{
$foruminfo = fetch_foruminfo(&$cat['dl_forumid_cat'], 1);
} else {
$foruminfo = fetch_foruminfo(&$globalforum['downloadsIIforumid'], 1);
}
remove the & in after "fetch_foruminfo(" so you have:
PHP Code:
if ($cat['dl_forumid_cat'] > 0)
{
$foruminfo = fetch_foruminfo($cat['dl_forumid_cat'], 1);
} else {
$foruminfo = fetch_foruminfo($globalforum['downloadsIIforumid'], 1);
}