We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"laravel/framework": "5.6.*", "vsch/laravel-translation-manager": "~2.1"
When accessing the web interface, and clicking on "Add references" button, it triggers "500 (Internal Server Error)".
500 (Internal Server Error)
In debugger,
BadMethodCallException Method Vsch\TranslationManager\Controller::postFind does not exist.
There is an apiFindReferences function in controller,
apiFindReferences
public function apiFindReferences() { if (Gate::allows(Manager::ABILITY_ADMIN_TRANSLATIONS)) { $connection = Request::get('connectionName'); $this->useConnection($connection); $numFound = $this->manager->findTranslations(); return Response::json(array('status' => 'ok', 'counter' => (int)$numFound)); } return $this->respondNotAdmin(false); }
Duplicated the code block to create method "postFind", and it does work now.
postFind
public function postFind() { if (Gate::allows(Manager::ABILITY_ADMIN_TRANSLATIONS)) { $connection = Request::get('connectionName'); $this->useConnection($connection); $numFound = $this->manager->findTranslations(); return Response::json(array('status' => 'ok', 'counter' => (int)$numFound)); } return $this->respondNotAdmin(false); }
Thanks 👍
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When accessing the web interface, and clicking on "Add references" button, it triggers "
500 (Internal Server Error)
".In debugger,
BadMethodCallException Method Vsch\TranslationManager\Controller::postFind does not exist.
There is an
apiFindReferences
function in controller,Duplicated the code block to create method "
postFind
", and it does work now.Thanks 👍
The text was updated successfully, but these errors were encountered: