Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phalcon 3.0.0 Error migrate #723

Closed
xerron opened this issue Aug 3, 2016 · 6 comments
Closed

Phalcon 3.0.0 Error migrate #723

xerron opened this issue Aug 3, 2016 · 6 comments

Comments

@xerron
Copy link

xerron commented Aug 3, 2016

I execute:

phalcon migration --action=generate --version=2

and show error message:

PHP Fatal error:  Uncaught Error: Class 'Phalcon\Version\IncrementalItem' not found in /home/xerron/Repo/php/phalcon-devtools/scripts/Phalcon/Version/ItemCollection.php:76
Stack trace:
#0 /home/xerron/Repo/php/phalcon-devtools/scripts/Phalcon/Migrations.php(95): Phalcon\Version\ItemCollection::createItem('2')
#1 /home/xerron/Repo/php/phalcon-devtools/scripts/Phalcon/Commands/Builtin/Migration.php(129): Phalcon\Migrations::generate(Array)
#2 /home/xerron/Repo/php/phalcon-devtools/scripts/Phalcon/Script.php(125): Phalcon\Commands\Builtin\Migration->run(Array)
#3 /home/xerron/Repo/php/phalcon-devtools/scripts/Phalcon/Script.php(150): Phalcon\Script->dispatch(Object(Phalcon\Commands\Builtin\Migration))
#4 /home/xerron/Repo/php/phalcon-devtools/phalcon.php(88): Phalcon\Script->run()
#5 {main}
  thrown in /home/xerron/Repo/php/phalcon-devtools/scripts/Phalcon/Version/ItemCollection.php on line 76
@sergeyklay
Copy link
Contributor

@xerron Fixed in 3.0.x branch. Could you please check now?

@xerron
Copy link
Author

xerron commented Aug 10, 2016

kill memory.

mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory
PHP Fatal error:  Out of memory (allocated 2285903872) (tried to allocate 4294967304 bytes) in /home/xerron/Repo/php/phalcon-devtools/scripts/Phalcon/Version/IncrementalItem.php on line 62

@sergeyklay
Copy link
Contributor

Can't reproduce. Could you please provide full error stack? Can you localize issue? For example run migration with one table in order to find problem.

@danielsilver2
Copy link

danielsilver2 commented Aug 16, 2016

I have the same problem with the latest commit.

PHP Fatal error:  Class 'Phalcon\Version\IncrementalItem' not found in /home/minds04/Projects/010/Gis/vendor/phalcon/devtools/scripts/Phalcon/Version/ItemCollection.php on line 76
PHP Stack trace:
PHP   1. {main}() /home/minds04/Projects/010/Gis/vendor/phalcon/devtools/phalcon.php:0
PHP   2. Phalcon\Script->run() /home/minds04/Projects/010/Gis/vendor/phalcon/devtools/phalcon.php:88
PHP   3. Phalcon\Script->dispatch() /home/minds04/Projects/010/Gis/vendor/phalcon/devtools/scripts/Phalcon/Script.php:150
PHP   4. Phalcon\Commands\Builtin\Migration->run() /home/minds04/Projects/010/Gis/vendor/phalcon/devtools/scripts/Phalcon/Script.php:125
PHP   5. Phalcon\Migrations::run() /home/minds04/Projects/010/Gis/vendor/phalcon/devtools/scripts/Phalcon/Commands/Builtin/Migration.php:142
PHP   6. Phalcon\Mvc\Model\Migration::scanForVersions() /home/minds04/Projects/010/Gis/vendor/phalcon/devtools/scripts/Phalcon/Migrations.php:204
PHP   7. Phalcon\Version\ItemCollection::createItem() /home/minds04/Projects/010/Gis/vendor/phalcon/devtools/scripts/Phalcon/Mvc/Model/Migration.php:516

@sergeyklay
Copy link
Contributor

@danielsilver2 Have you tried Devtools 3.0.x ?

@Zul3s
Copy link

Zul3s commented Aug 16, 2016

Hi, i have same error, but with Devtools 3.0.x, it's work for me. @sergeyklay Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants