validating tld throws error in laravel 4.2.8
While trying to validate a tld, Laravel throws the following error:
Missing argument 1 for Hampel\Validate\Laravel\TldCache::Hampel\Validate\Laravel{closure}(), called in /Users/tim/Sites/fooapp/vendor/laravel/framework/src/Illuminate/Cache/Repository.php on line 131 and defined
BTW: When app lang is set to "de" instead of "en", hampel validator stumbles over the missing translation file.
Comments (5)
-
repo owner -
repo owner - changed status to open
confirmed
-
repo owner I wonder if you should perhaps set a fallback language?
http://laravel.com/docs/localization#language-files
"You may also configure a "fallback language", which will be used when the active language does not contain a given language line. Like the default language, the fallback language is also configured in the app/config/app.php configuration file:"
'fallback_locale' => 'en',
I think this was added in Laravel 4.1 ... I wasn't even aware of it until I checked the docs just now.
-
repo owner - changed status to closed
Pretty sure this is fixed in the latest version and the language issue should be solved using a fallback_locale in the config.
-
reporter tim@arthur:~/Sites/foo/composer update Loading composer repositories with package information Updating dependencies (including require-dev) - Removing hampel/validate (2.0.4) - Installing hampel/validate (2.1.1) Downloading: 100%
Writing lock file Generating autoload files Generating optimized class loader
Unfortunately the error persists:
Missing argument 1 for Hampel\Validate\Laravel\TldCache::Hampel\Validate\Laravel{closure}(), called in /Users/tim/Sites/foo/vendor/laravel/framework/src/Illuminate/Cache/Repository.php on line 131 and defined
- Log in to comment
Try the latest version - turns out I was using a function call from Illuminate/Filesystem which was removed in 4.1 !!
I've released a new version today - same functionality.
Will look at the language issue - it's possible I'm not handling translation correctly.