Skip to content

When creating Model getting Uninitialized string offset 0 #1440

@jboomer007

Description

@jboomer007

Bug report

What I did

Tried to create a model from Our postgresql Database in dev tools
??

What I expected to happen

It to create the model
??

What happened

Got an Error
vendor/composer/ClassLoader.php#497
ErrorException
494
495
496
497
498
499
500
501
// PSR-4 lookup
$logicalPathPsr4 = strtr($class, '\', DIRECTORY_SEPARATOR) . $ext;

    $first = $class[0];
    if (isset($this->prefixLengthsPsr4[$first])) {
        $subPath = $class;
        while (false !== $lastPos = strrpos($subPath, '\\')) {

??

What I've already tried to fix it

looked at logs and everything.
??

Backpack, Laravel, PHP, DB version

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

PHP EXTENSIONS:

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

LARAVEL VERSION:

12.42.0.0

BACKPACK PACKAGE VERSIONS:

backpack/basset: 2.0.0
backpack/crud: 7.0.12
backpack/devtools: 4.0.1
backpack/generators: v4.1.0
backpack/pro: 3.0.2
backpack/theme-tabler: 2.0.0

Operating System and Server Setup

Ubuntu server with nginx and PHP 8.4 fpm

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

No status

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions