How to use default laravel exceptions? - laravel-backpack

Laravel Backpack throws it's own exception views but I don't want it to happen. How can I disable this and use default Laravel ones?

Upon installation, Backpack\Base has published some error views in your resources/errors. If you delete those files, Laravel should use its default error files.

Related

How to remove "algolia/algoliasearch-client-php" completely from my Laravel 8 project

I have already removed algolia/algoliasearch-client-php package by using the composer remove command from my Laravel 8 project, but I am still getting below error while calling delete(), redirect().
Please help me to fix the below error.
Exception Please install the Algolia client:
algolia/algoliasearch-client-php.
In the composer.lock file; We have below the message. It can create problem plz confirm also:
"suggest": {
"algolia/algoliasearch-client-php": "Required to use the Algolia engine (^2.2)."
}
If you are not going to be using algolia anymore then you don't need scout most likely. Your models are still setup to use scout which will still be looking for the algolia drivers.
Perhaps you want to remove Searchable from your Models if you are not planning on using any of these services for search indexing.

Security Exception when loading the site after Kentico upgrade from v9 to v10

After upgrading the existing v9 site to Kentico 10 I'm getting a security exception error when loading the site. The CMS admin however loads fine. I already added the FULL trust setting in web.config but it did not work. Any idea?
Problem, based on part that I can see and exception type would be in new SQL parser which was added in one of the hotfixes for v9 and thus it is part of v10.
You seem to be using one of the properties in a web part and than passing incomplete query via ##WHERE## macro. If a where condition is like {%CurrentDocument.DocumentID%} it is not a valid WHERE and whole property has to be complete SQL statement on its own, so it could be like DocumentID = {%CurrentDocument.DocumentID%}.
You can find a bit more in this thread:
https://devnet.kentico.com/questions/invalid-sql-query-error-on-a-page
Try load the template in the Admin UI pages application, then check the event log application, you should see the detail information about the SQL error. Most likely you have a SQL call that is trying to get some data from a column that's no longer there (through upgrade).

Call to a member function getDateFormat() on null, laravel/passport install

I am getting a
[Symfony\Component\Debug\Exception\FatalThrowableError] Call to a member function getDateFormat() on null
when running "php artisan passport:install" on a laravel/mongodb api project. I have tried changing "use Illuminate\Database\Eloquent\Model;" to "use Jenssegers\Mongodb\Eloquent\Model as Model;" in my user and client.php but it still throws the exception.
any ideas??
I also encountered this problem while developing a same type of project. This occurs because Laravel Passport doesn't support Jenssegres\laravel-mongodb. It uses the Illuminate\Database\Eloquent\Model by default.
Now there are two solutions to this.
You can go on changing every Illuminate\Database\Eloquent\Model to Jenssegres\Mongodb\Eloquent\Model in the Laravel Passport's vendor folder(there are about 6 files you will have to change), but this is not recommended, as when you will try you push this project on the production server, the vendor folder is ignored, and you will have to do all the changes again. Also if they change something and you update it, all the changes will be lost.
Another way of doing this, which I would recommend is, using designmynight/laravel-mongodb-passport package. This package will do the above-stated things and will do it efficiently. Installation is also pretty simple. You can go through the documentation here and you can have it up and running in no time.
Hope this can solve your problem.
Documentation link: https://github.com/designmynight/laravel-mongodb-passport

How to display or customize CRUD error messages in Flask Admin

What is the best way to display when there is error in Listing, Create, Delete or Edit? So far I have created model and custom BaseModelView. Everything seem to work in happy path. I tried throwing exception from the various methods that I had to implement my custom BaseModelView. It result in internal server error. This is probably expected, but how do I show custom error messages for these operation. Is there any provision in Flask Admin for showing custom error messages for the CRUD errors?
I tried Flash message. It worked just fine.

Adding oembed plugin to ckeditor

I used ckBuilder to create my own custom editor with certain plugins.I chose the oembed plugin, followed the installation procedures but I kept getting a weird error.
Error:
Uncaught TypeError: Cannot read property 'button' of undefined
Are there other configurations that need to be adjusted before using it?!
Turns out if you modify the ckeditor multiple times, you need to clear your cache in order to reflect any new plugins.