Skip to content
New issue

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

[Bug] #62

Closed
jrbecart opened this issue Feb 7, 2023 · 2 comments
Closed

[Bug] #62

jrbecart opened this issue Feb 7, 2023 · 2 comments

Comments

@jrbecart
Copy link

jrbecart commented Feb 7, 2023

Bug report

What I did

I installed the devtools tools

What I expected to happen

Be able to configure a new model when going to /admin/devtools/model/create
image

What happened

I can see the form but when I click on "+ Add Column" or "More >" or "+ Add Relationship" nothing happen

What I've already tried to fix it

Tried to see errors in console and logs file.

Backpack, Laravel, PHP, DB version

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

PHP VERSION:

PHP 8.1.11 (cli) (built: Sep 29 2022 18:29:40) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.11, Copyright (c) Zend Technologies
with Zend OPcache v8.1.11, Copyright (c), by Zend Technologies
with Xdebug v3.1.2, Copyright (c) 2002-2021, by Derick Rethans

LARAVEL VERSION:

v9.50.2@39932773c09658ddea9045958f305e67f9304995

BACKPACK PACKAGE VERSIONS:

backpack/crud: 5.4.16
backpack/editable-columns: 2.1.1
backpack/logmanager: v4.0.9
backpack/permissionmanager: 6.0.15
backpack/pro: 1.5.0
backpack/revise-operation: 1.0.11
backpack/devtools: 1.3.0
backpack/generators: v3.3.13

Operating System and Server Setup

I encountered the problem above on my Windows with Ubuntu WSL2 machine, and my web server is set up using Nginx with php-fpm.

From the log file I have this warning:
Return type of Backpack\DevTools\CustomFile::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vendor/backpack/devtools/src/CustomFile.php on line 373

EDIT removed console javascript error as it was not related

@jrbecart
Copy link
Author

jrbecart commented Feb 7, 2023

Also from phpinfos() if it can help:

SQLite 3.x driver for PDO => Wez Furlong
SQLite3 => Scott MacVicar, Ilia Alshanetsky, Brad Dewar

PDO
PDO support => enabled
PDO drivers => sqlite, mysql, oci, pgsql

pdo_sqlite
PDO Driver for SQLite 3.x => enabled
SQLite Library => 3.34.1

sqlite3
SQLite3 support => enabled
SQLite Library => 3.34.1
Directive => Local Value => Master Value
sqlite3.defensive => On => On
sqlite3.extension_dir => no value => no value

@jrbecart
Copy link
Author

jrbecart commented Feb 7, 2023

My bad...

My blade template for create was not extending backpack_view('blank') so widgets were not properly loaded.

All is good! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant