question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[v5 Bug] loadOnce directive is not rendered on edit form after update to v5

See original GitHub issue

Bug report

What I did

Updated from v4.1 to v5 following upgrade guide at: https://backpackforlaravel.com/docs/5.x/upgrade-guide.

What happened

Most of the things went well after update but it seems like new @loadOnce directive is not rendered for form fields on edit form. On top of the page are css and on the bootom js stuff. Rest of the application works fine.

backpack_loadOnce_error

Is it a bug in the latest version of Backpack?

After I run composer update backpack/crud the bug… is it still there? Yes

Backpack, Laravel, PHP, DB version

When I run php artisan backpack:version the output is:

PHP VERSION:

PHP 8.1.3 (cli) (built: Mar 4 2022 17:38:46) (NTS) Copyright © The PHP Group Zend Engine v4.1.3, Copyright © Zend Technologies with Zend OPcache v8.1.3, Copyright ©, by Zend Technologies

LARAVEL VERSION:

v9.3.1@c1c4404511b83fbf90ccbcdf864d4a85537f35e4

BACKPACK VERSION:

5.0.9@d995de2026b6fcb1b13b469f371c929c29d1c1cc

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
olipaynecommented, Mar 8, 2022

You need to pin spatie/laravel-permission to 5.5.0, don’t touch backpack/permissionmanager. Once you have pinned and installed, then you might want to php artisan view:clear.

0reactions
tabacitucommented, Mar 9, 2022

Solved in https://github.com/DigitallyHappy/assets/pull/13 and https://github.com/spatie/laravel-permission/pull/2048

No need to lock spatie/laravel-permission to 5.5.0 any more. A composer update should pull the latest digitallyhappy/assets and have this fixes 💪 Let us know if it doesn’t.

Thanks for sticking with us guys. This has been such a painful one…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Directives not working with FormControl after upgrading to ...
I have used directives for enabling and disabling forms ...
Read more >
Release Notes :: 5.x Docs
Easily Include CSS and JS Assets Only Once Per Page​​ Backpack now ships with a new @loadOnce() directive, which makes sure that piece...
Read more >
DreamGrid Revisions manual
Opensim no longer uses Autobackup as its handled by Dreamgrid. V5.22. Backups not starting on schedule. Frozen regions would not auto restart after...
Read more >
Web on Servlet Stack
Parallel to Spring Web MVC, Spring Framework 5.0 introduced a reactive-stack web framework ... Useful for rendering error pages in a browser application....
Read more >
The Grails Framework 5.2.5
In any text editor, edit the new controller — the HelloController.groovy file — by adding a render line. The edited file's code should...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found