Page 1 of 1

Problems with Downloadmanager

Posted: Fri Oct 15, 2010 12:48 pm
by willis
Hello everyone, I am new to Serendipity but love it already :P

The problem I have now is the Downloadmanger plugin. I installed it but as soon as I activate it, the error message

Code: Select all

Deprecated: Call-time pass-by-reference has been deprecated in /home/users/lll/mysite.com/web/plugins/serendipity_event_downloadmanager/serendipity_event_downloadmanager.php on line 1085 Deprecated: Call-time pass-by-reference has been deprecated in /home/users/lll/mysite.com/web/plugins/serendipity_event_downloadmanager/serendipity_event_downloadmanager.php on line 1085 
and the same for lines:
1089 1593 1628  1647 1667 1674 1686 2214 2300  2303 2306
This error message shows in my Administration page and in ALL my pages in he bottom, which is really annoying. Other than this, DM is working fine.

I have a feeling that there is an easy way around this but I just don´t know about it. I am using s9 1.5.4, bulletproof template, all folders are 777.

Or suggest to me a way for a simple download page for 4-10 download files.

thank you in advance :D

Re: Problems with Downloadmanager

Posted: Fri Oct 15, 2010 5:48 pm
by Timbalu
Hi Willis

I am sorry you have problems with the Downloadmanager Plugin.

This does not solve the problem itself but helps to get around it quickly!
There are 3 quick way possible solutions to get around this:
First
Put

Code: Select all

     error_reporting(0);
in the first line of serendipity_event_downloadmanager.php after the opening <?php
or
Second
Edit your php.ini and set:

Code: Select all

allow_call_time_pass_reference = On
or
Third
Edit the Serendipity .htaccess file and add:

Code: Select all

php_value allow_call_time_pass_reference 1
I cant reproduce this behaviour here, so you could at least tell us which Php Version you are running to come close to the problem.

hth,
Ian

Re: Problems with Downloadmanager

Posted: Sat Oct 16, 2010 9:01 pm
by willis
Thanks for the brilliant solution(s).

First I tried the first one, with no effect at all.

To the second one: I don´t have a php.ini file (this may be the cause, but everything is/was working without it and don´t know how to, in case I need to, create one).

Third time is a charm, working great!

I belive I am using PHP 5.3.3, at least that´s what my Administration page says in the bottom.

Re: Problems with Downloadmanager

Posted: Sun Oct 17, 2010 9:54 am
by Timbalu
Glad it worked!
Next dlm version will be corrected, while new php 5.3.x versions tell us that pass-by-reference is deprecated in some cases and that there is no need to give objects by references any more.
Thank you.

Ian

Re: Problems with Downloadmanager

Posted: Sun Oct 17, 2010 11:13 am
by willis
thank you once again, cannot wait for the new version already.

Re: Problems with Downloadmanager

Posted: Sun Oct 17, 2010 11:24 am
by Timbalu
Why? Is there any need to be in a hury?

Re: Problems with Downloadmanager

Posted: Sun Oct 17, 2010 11:43 am
by willis
no, I only love new things :-D