[horde] Fatal error during initial setup [RESOLVED]

Mike barjunk at attglobal.net
Sun Nov 17 04:00:59 UTC 2024


Quoting Mike <barjunk at attglobal.net>:

> Quoting Michael Schlueter <michael at johalla.de>:
>
>> Hello Mike,
>>
>> Ralf did a fix for this in January:
>> Fix deprecation warning reported by Andreas Mauser. ·  
>> horde/Core at 37dcb14 (github.com)  
>> <https://github.com/horde/Core/commit/37dcb14ad37110100ae8be6758a6b40bd75caacc>
>>
>> @Ralf: Could you please create a new alpha release of horde/Core  
>> with this fix?
>>
>> Thanks
>> Michael
>>
>>
>> Am 16.11.24 um 04:00 schrieb Mike:
>>>
>>> I received this fatal error during initial setup of the "composer"  
>>> version of horde.
>>>
>>> A fatal error has occurred
>>> strrpos(): Argument #1 ($haystack) must be of type string, array given
>>> in /var/www/horde/vendor/horde/core/lib/Horde.php:221
>>>
>>> 1. Horde::verifySignedUrl() /var/www/horde/vendor/horde/horde/login.php:72
>>> 2. strrpos() /var/www/horde/vendor/horde/core/lib/Horde.php:221
>>>
>>>
>>> This error occurs when I click on the "Mail" link in the browser window.
>>>
>>> I'm wondering if I didn't configure something correctly using the  
>>> directions.
>>> It seems that Horde::verifySignedURL expects a string, but an  
>>> array was sent instead.  I'm not sure why $vars->url would return  
>>> an array or where it gets populated from.
>>>
>>> I do have a database set up.
>>> I authenticated using the IMAP server (it did this before I set  
>>> that up as well).
>>>
>>> Has anyone run into this before?
>>>
>>> My search on the internet didn't produce anything helpful.
>>>
>>> Mike B.
>>
>> -- 
>> Horde mailing list
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>

While I know this isn't the proper way to fix this problem, I resolved  
the second problem.

I changed line 12 in vendor/horde/horde/templates/login/login.inc from this:

<input type="hidden" name="url" value="<?php echo  
htmlspecialchars($vars->url) ?>" />


to this:

<input type="hidden" name="url" value="<?php echo  
htmlspecialchars($vars->url[0]) ?>" />


Again, I'm not clear on why $vars->url is getting loaded with an array  
instead of a string, but that seems to be what is at issue.

So this along with the patch Michael suggested above has me working  
using the composer build.

Mike B.



More information about the horde mailing list