[mnemo] urlencode error on new notes?

Jan Schneider jan at horde.org
Wed May 12 08:28:09 PDT 2004


Zitat von "Marc G. Fournier" <scrappy at hub.org>:

> On Wed, 12 May 2004, Jan Schneider wrote:
>
>> Zitat von "Marc G. Fournier" <scrappy at hub.org>:
>>
>> > On Wed, 12 May 2004, Jan Schneider wrote:
>> >
>> >> Zitat von "Marc G. Fournier" <scrappy at hub.org>:
>> >>
>> >> > <b>Warning</b>:  urlencode() expects parameter 1 to be string, object
>> >> > given in <b>/usr/local/share/pear/Horde/Util.php</b> on line
>> >> > <b>178</b><br />
>> >>
>> >> Might help if you'd tell us when exactly this shows up.
>> >
>> > When you click on 'New Note' ...
>>
>> Can't reproduce this here.
>
> If I comment out:
>
>   <td>
>     <input type="submit" class="button" value="<?php echo _("Save") 
> ?>" onclick="return checkCategory();" />&nbsp;
>     <?php
>     $memourl = Util::addParameter('memo.php', 'memo', $memo_id);
> //    $memourl = Util::addParameter($memourl, 'memolist', $memolist_id);
>
>     if ($memo_id):
>
> the error goes away ...
>
>   I've checked all my config files, to make sure they are up to date, and
> everything appears fine ... and I updated my framework before putting the
> demo live ...
>
>   If I add code to Util.php to display the parameter/value pairs, I'm
> getting:
>
>   memo =
> memolist = Object
>
> Warning: urlencode() expects parameter 1 to be string, object given 
> in /usr/local/share/pear/Horde/Util.php on line 179
>
>   Should memo have a value:
>
> <form method="post" name="memo" enctype="multipart/form-data" 
> action="/mnemo/memo.php">
> <input type="hidden" name="actionID" value="104" />
> <input type="hidden" name="memo" value="" />
> <input type="hidden" name="new_category" value="" />
> <input type="hidden" name="memolist_original" value="Object" />

Try updating memo.php. You should now get a hopefully more useful error
message.

Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the mnemo mailing list