You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to uninstall this lovely package. I came from Mcmara localization package and this package just works out of the box, including the URL translation.
I have been using it for the past weeks, adding translations and stuff, until the testing part for using the signed route url. I spent 2 days troubleshooting this issue, until I tried uninstalling this package, and my app works again(for the url creation part).
Step to reproduce, try using the email resend feature included by laravel. I got the error call_user_func() expects parameter 1 to be a valid callback, no array or string given
Upon inspection, the error came from Illuminate/Routing/URLGenerator class, in this function,
` public function hasCorrectSignature(Request $request, $absolute = true)
{
$url = $absolute ? $request->url() : '/'.$request->path();
This part ==>> call_user_func($this->keyResolver)) has the value null in it. When I tried commenting some of the lines in here, the email resend feature works again.
Turns out your package has URLGenerator file and extending the LaravelUrlGenerator in it. I think there is some thing missing in your code.
This is the log, call_user_func() expects parameter 1 to be a valid callback, no array or string given {"exception":"[object] (ErrorException(code: 0): call_user_func() expects parameter 1 to be a valid callback, no array or string given at C:\\project\\app\\portal-x\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\UrlGenerator.php:337)
The text was updated successfully, but these errors were encountered:
Hi, thank you for letting me know the issue. I'm sorry that you spent two days debugging it...
I could probably solve the issue by updating that part of the code to match the latest Laravel version, but... after using this package myself for some time now I came to a conclusion that there must be an even simpler way of implementing it...
My idea, which I failed to implement once, was to extend the Laravel Route with extra methods and properties which would hold the locale data and translated URLs. Something like:
This would mean that the default locale (let us say it is en, as written in app.php) is /about, the hr url is translated and is /o-nama, and the de locale is /de/about. That route supports three locales then: en, hr and de. Two have translated urls (en, hr), and one doesn't(de).
Hi,
I had to uninstall this lovely package. I came from Mcmara localization package and this package just works out of the box, including the URL translation.
I have been using it for the past weeks, adding translations and stuff, until the testing part for using the signed route url. I spent 2 days troubleshooting this issue, until I tried uninstalling this package, and my app works again(for the url creation part).
Step to reproduce, try using the email resend feature included by laravel. I got the error
call_user_func() expects parameter 1 to be a valid callback, no array or string given
Upon inspection, the error came from Illuminate/Routing/URLGenerator class, in this function,
` public function hasCorrectSignature(Request $request, $absolute = true)
{
$url = $absolute ? $request->url() : '/'.$request->path();
This part ==>>
call_user_func($this->keyResolver))
has the value null in it. When I tried commenting some of the lines in here, the email resend feature works again.Turns out your package has URLGenerator file and extending the LaravelUrlGenerator in it. I think there is some thing missing in your code.
This is the log,
call_user_func() expects parameter 1 to be a valid callback, no array or string given {"exception":"[object] (ErrorException(code: 0): call_user_func() expects parameter 1 to be a valid callback, no array or string given at C:\\project\\app\\portal-x\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\UrlGenerator.php:337)
The text was updated successfully, but these errors were encountered: