Laravel-Backpack / community-forum

A workspace to discuss improvement and feature ideas, before they're actually implemented.
28 stars 0 forks source link

Couldn’t work out with the DevTool #921

Closed backpack-operations closed 1 month ago

backpack-operations commented 2 months ago

Hello team,

I just received this on email: "Hi,

I really liked Backpack but couldn’t work out with the DevTools. It seems so buggy on model creations especially when I try to add fields with foreign ids (or belongs to, it doesn’t matter)

Admin panel works perfectly. I use Herd to handle php and other stuff for me. I use MySQL. Recently ran the composer update command.

Here is the version command output.

PHP VERSION:

8.3.3

PHP EXTENSIONS:

Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, FFI, fileinfo, filter, ftp, gd, gmp, json, iconv, SPL, session, intl, standard, ldap, mbstring, mysqlnd, mysqli, pcntl, exif, imap, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, random, readline, redis, Reflection, imagick, shmop, SimpleXML, soap, sockets, sodium, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, Zend OPcache

LARAVEL VERSION:

11.2.0.0

BACKPACK PACKAGE VERSIONS:

backpack/basset: 1.3.0 backpack/crud: 6.7.5 backpack/devtools: 3.1.1 backpack/generators: v4.0.5 backpack/pro: 2.1.12 backpack/theme-tabler: 1.2.8

Can you help me about it? Am I doing something wrong with the installation? I just used the composer to install everything on a fresh project.

Thanks!

"

jcastroa87 commented 2 months ago

Hello,

Could you please provide more details about the issue you're facing? It would be helpful if you could share screenshots or additional information to better understand the problem you're encountering. Thank you for your cooperation.

Cheers.

jcastroa87 commented 2 months ago

Hello, do you have any updates on the issues with Devtools? We'd like to investigate further. Thank you.

luckylads commented 2 months ago

Hi,

I am running in a similar situation. I have bought backpack pro & dev-tools but that's not working as intended.

For example, Model creation with a belongsto throws a crash image

Backpack\CRUD\app\Library\Database\DatabaseSchema::getForTable(): Argument #1 ($connection) must be of type string, null given, called in /app/vendor/backpack/devtools/src/Generators/BlueprintGenerator.php on line 387

Moreover, I downgraded to backpack 3.0.1 where this works, but the fields are not showing correctly. See screenshot with a belongsto. The fields stay as a textbox image

backpack-operations commented 2 months ago

https://www.youtube.com/watch?v=kyIFrTS1eb0 @jcastroa87, Hi, the customer just sent me this video in relation with the bug!

jcastroa87 commented 2 months ago

Thanks @luckylads i confirm this bug:

Screenshot 2024-04-22 at 3 34 28 PM Screenshot 2024-04-22 at 3 34 11 PM

@backpack-operations i will check about video now and let you know.

Meanwhile i will ask to @pxpm to check about the first bug.

Cheers.

jcastroa87 commented 2 months ago

I confirm the second bug with "ForeignId", when this is selected bring to front this error page:

Screenshot 2024-04-22 at 3 37 46 PM

@pxpm it was test on this versions:

### PHP VERSION:
8.3.6

### PHP EXTENSIONS:
Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, FFI, fileinfo, filter, ftp, gd, gmp, json, iconv, SPL, session, intl, standard, ldap, mbstring, mysqlnd, mysqli, pcntl, exif, imap, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, random, readline, redis, Reflection, imagick, shmop, SimpleXML, soap, sockets, sodium, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, Zend OPcache

### LARAVEL VERSION:
11.4.0.0

### BACKPACK PACKAGE VERSIONS:
backpack/basset: 1.3.3
backpack/crud: 6.7.10
backpack/devtools: 3.1.1
backpack/generators: v4.0.5
backpack/pro: 2.1.13
backpack/theme-tabler: 1.2.8

Cheers.

pxpm commented 2 months ago

Thanks @jcastroa87 and @luckylads for the bug confirmation.

I've released devtools 3.1.3 that should fix this.

Let me know if you guys still experiencing issues.

Cheers