I have this Error when run pipeline on bitbucket
./yii migrate --interactive=0
Yii Migration Tool (based on Yii v2.0.33-dev)
Error: syntax error, unexpected ';'
2020-03-04T05:30:03.930868636Z stdout P Creating migration history table "migration"...
From where this Error come and how to resolve this
This the version issue in yii2. 2.0.32 is stable and 2.0.33 is not stable. So this issue occure
Related
I am using Yii2 and after updating the framework (composer update), the following error appeared:
Parse error: syntax error, unexpected ‘.’, expecting ‘&’ or variable
in vendor/markbaker\complex\classes\src\operations\add.php on line 18
Does anyone know what this is about?
The vendor dependency markbaker/complex that throws this syntax error simply requires php 5.6
you need to either update your environment or try an older version of that library
I have tried to install Moodle 3.5.1 on my development server (Apache 2.4.29 and MySQL v.5.7).
The installation process went smoothly: The MySQL database has been set up, all required PHP packages are installed, the system has been successfully installed, all file permissions are correct.
After the installation I only get the following error:
"Coding error detected, it must be fixed by a programmer: PHP catchable fatal error"
There are no further error messages. There are no error messages in Apache Error log or PHP log files. In the PHP ini file the display of error messages is activated.
So I can not figure out what did not work or how to fix it.
Put error_reporting(E_ALL); and ini_set('display_errors', 1); in the beggining of the script you see problem in for more debug info
Moodle 3.5 requires PHP 7
https://docs.moodle.org/35/en/PHP
Could that be your problem?
I was following the default documentation and Laracst tutorials to build an application. Here is the source, https://github.com/nasirkhan/laravel-5-starter-application
Installing a new instance form this source shows the following errors, can anyone please assist me to find the issue here?
I run the following commands,
git pull git#github.com:nasirkhan/laravel-5-starter-application.git
composer install then i got the following error.
after getting the error i tried to run php artisan migrate but the error was not resolved.
[Illuminate\Database\QueryException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel-5-starter.permissions' doesn't exist (SQL: select * from `permissions`)
[PDOException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel-5-starter.permissions' doesn't exist
Script php artisan clear-compiled handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output:
found the solution. Updated the repo, thanks for engaging.
Run php artisan migrate from the console. There seems to be a permissions table which is queried but doesn't exist yet.
In the file 2015_09_10_193651_create_roles_tables.php the table gets created, as you can see here.
I pretty much use Migrations every time I work with CakePHP and I never encounter any issues.
This time, however, I am having an issue trying to execute the following command
bin/cake Migrations migrate
I had created the file using
bin/cake bake migrations CreateTaxes state:string[5] ...
The file created successfully, but when I run the command to migrate, I am getting the following error:
PHP Fatal error: Class Migrations\CakeAdapter contains 1 abstract method
and must therefore be declared abstract or implement the remaining methods
(Phinx\Db\Adapter\AdapterInterface::getVersionLog) in
/var/www/taxes/website/vendor/cakephp/migrations/src/CakeAdapter.php
on line 670
I cant figure out why it is throwing this error and not allowing the command to finalize. I have looked at both CakeAdapter.php and AdapterInterface.php for Phinx.
This was actually a bug that has now been fixed. https://github.com/cakephp/migrations/issues/202
Hey I have a problem with my page here. I used a gem 'devise' to create a migration file for "users" I might have forgotten to rake db:migrate after that but I'm really not too sure what I did here to duplicate anything.
I ran the code rails g devise user I may have forgotten to db:migrate and then ran the code rails g devise:views
It's for a TeamTreeHouse project, and I'm sorry if I was too confusing with my question...anyway here is the error message.
== AddDeviseToUsers: migrating ===============================================
-- change_table(:users, :email)
rake aborted!
An error has occurred, this and all later migrations canceled:
SQLite3::SQLException: duplicate column name: email: ALTER TABLE "users" ADD "email" varchar(255) DEFAULT '' NOT NULL
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
It seems you already have an "users" table
Try to run: rake db:reset to run your migrations after drop and recreate your database.
UPDATE
This command will clear all data you have stored (unless is present in your seeds.rb), be careful to use this if you have important data in your database.
his command will clear all data you have stored (unless is present in your seeds.rb), be careful to use this if you have important data in your database.