Closed solexious closed 12 years ago
You need to have apc installed and enabled (apc.enable="1" as well as apc.enable_cli="1").
Additionally, right now we use a dump of the "original" partdb to migrate several data. You need to create a database "partdb" with the user/pw "partdb" and insert the dump in "testing/setup.sql" into that database (I just have added it to the repo, so you need to pull it again). The script then reads the old data from the "partdb" database and inserts it into the "partkeepr" database (or whichever you have configured in the config.php file).
I know this feels very much like a "hack", but an installer is on the list, but not done yet.
Great, thanks.
I'm now stuck on this error:
PHP Fatal error: Call to undefined method Doctrine\ORM\Tools\SchemaTool::dropDatabase() in /home/solexious/public_html/electriclaboratoryPartKeepr/PartKeepr/testing/SetupDatabase.php on line 80
Tried to find out what dependency i'm missing without any luck
Which version of Doctrine do you have installed? I use Doctrine 2.0.5 for development.
solexious reply@reply.github.com schrieb:
Great, thanks.
I'm now stuck on this error:
PHP Fatal error: Call to undefined method Doctrine\ORM\Tools\SchemaTool::dropDatabase() in /home/solexious/public_html/electriclaboratoryPartKeepr/PartKeepr/testing/SetupDatabase.php on line 80
Tried to find out what dependency i'm missing without any luck
Reply to this email directly or view it on GitHub: https://github.com/partkeepr/PartKeepr/issues/70#issuecomment-1416248
I'm on v2.0.2, I have gotten further, but am now stuck on:
If you are sure you want to do this, type YES and hit return. YES Performing actions... Creating footprints from SetupData/footprints.php PHP Fatal error: Call to undefined method Symfony\Component\Yaml\Yaml::load() in /home/solexious/public_html/electriclaboratoryPartKeepr/PartKeepr/testing/SetupDatabase.php on line 109
Regarding doctrine - how did you fix it?
Oh, I really forgot about that Yaml loader. Currently I'm using the Yaml loader from symfony, so you need Symfony2.
By the way, it's very strange that your system complains about "Undefined methods". I feel that it should say something about "Class not found" instead. Any idea what could be causing this?
If you like, we can go through the installation together. Catch me on irc ( Felicitus on freenode/hackint or felicitus@jabber.ccc.de)!
I'm sorry if the process is a bit confusing. For me, Yaml.php was available within the PEAR installation of doctrine (/usr/share/php/Doctrine/Symfony/Component/Yaml/Yaml.php).
I've reworked the install script; it would be cool if you try it out again. You can also choose not to migrate anything (=start with a blank database). Try php SetupDatabase.php --help for commands.
The installer is now done and checks for all dependencies now - closing this issue.
when running the php SetupDatabase.php file I get the error:
PHP Fatal error: Call to undefined function Doctrine\Common\Cache\apc_fetch() in /usr/share/php/Doctrine/Common/Cache/ApcCache.php on line 60
and the database details used seem to be for partdb user/database rather than partkeepr as instructed in the install file