8000 ErrorException : Undefined offset: 1 · Issue #47 · duxet/laravel-rethinkdb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ErrorException : Undefined offset: 1 #47
Open
@xcaro

Description

@xcaro

Error
at /vendor/danielmewes/php-rql/rdb/Handshake.php:76

    72|             $serverFirstMessage = $json["authentication"];
    73|             $authentication = array();
    74|             foreach (explode(",", $json["authentication"]) as $var) {
    75|                 $pair = explode("=", $var);
  > 76|                 $authentication[$pair[0]] = $pair[1];
    77|             }
    78|             $serverR = $authentication["r"];
    79|             if (strpos($serverR, $this->myR) !== 0) {
    80|                 throw new RqlDriverError("Invalid nonce from server.");

Code

use Illuminate\Support\Facades\Schema;
use duxet\Rethinkdb\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateRActiveReportTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::connection('rethinkdb')->create('r_active_report', function (Blueprint $table) {
            $table->increments('id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('r_active_report');
    }
}

More info

  • No table have been created

  • Database has bee created

Any idea what had happend ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0