Skip to content

bad sort specification in ../vendor/mongodb/mongodb/src/Operation/Find.php #1739

Open
@ludo1960

Description

@ludo1960

I am struggling to resolve an issue, trying to install laravel-admin, all seem well with the install, but when I try to browse the site I get the following error
/var/www/slimmongo.local.com/vendor/mongodb/mongodb/src/Operation/Find.php
/**
* Execute the operation.
*
* @see Executable::execute()
* @param Server $server
* @return Cursor
* @throws UnsupportedException if collation or read concern is used and unsupported
* @throws DriverRuntimeException for other driver errors (e.g. connection errors)
*/
public function execute(Server $server)
{
if (isset($this->options['collation']) && ! \MongoDB\server_supports_feature($server, self::$wireVersionForCollation)) {
throw UnsupportedException::collationNotSupported();
}

    if (isset($this->options['readConcern']) && ! \MongoDB\server_supports_feature($server, self::$wireVersionForReadConcern)) {
        throw UnsupportedException::readConcernNotSupported();
    }

    $cursor = $server->executeQuery($this->databaseName . '.' . $this->collectionName, new Query($this->filter, $this->createQueryOptions()), $this->createExecuteOptions());

    if (isset($this->options['typeMap'])) {
        $cursor->setTypeMap($this->options['typeMap']);
    }

    return $cursor;
}

public function getCommandDocument(Server $server)
{
    return $this->createCommandDocument();
}

/**
 * Construct a command document for Find
 */
private function createCommandDocument()
{
    $cmd = ['find' => $this->collectionName, 'filter' => (object) $this->filter];

Arguments
"bad sort specification (View: /var/www/slimmongo.local.com/vendor/encore/laravel-admin/resources/views/partials/sidebar.blade.php) (View: /var/www/slimmongo.local.com/vendor/encore/laravel-admin/resources/views/partials/sidebar.blade.php) (View: /var/www/slimmongo.local.com/vendor/encore/laravel-admin/resources/views/partials/sidebar.blade.php) `

The contents of the partial are:

`

<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">

    <!-- Sidebar user panel (optional) -->
    <div class="user-panel">
        <div class="pull-left image">
            <img src="{{ Admin::user()->avatar }}" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
            <p>{{ Admin::user()->name }}</p>
            <!-- Status -->
            <a href="#"><i class="fa fa-circle text-success"></i> {{ trans('admin.online') }}</a>
        </div>
    </div>
    <!-- Sidebar Menu -->
    <ul class="sidebar-menu">
        <li class="header">{{ trans('admin.menu') }}</li>

        @each('admin::partials.menu', Admin::menu(), 'item')

    </ul>
    <!-- /.sidebar-menu -->
</section>
<!-- /.sidebar -->
`

Can anybody suggest where to start digging?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions