partkeepr / PartKeepr

Open Source Inventory Management
http://www.partkeepr.org
GNU General Public License v3.0
1.38k stars 400 forks source link

PartKeepr Fatal Error: Call to a Member Function #782

Closed geoffmomin closed 7 years ago

geoffmomin commented 7 years ago

When installing PartKeepr from git onto Ubuntu 16.04 with LAMP (php7.0), partkeepr fails at "Setting up default footprints" and cites:

Stack Trace in src/PartKeepr/SetupBundle/Services/FootprintSetupService.php at line 142 - $category = new FootprintCategory(); $category->setParent($parentNode); $category->setName($name); $parentNode->getChildren()->add($category); $this->entityManager->persist($category); } at FootprintSetupService ->addFootprintCategoryPath (array('CBGA'), object(FootprintCategory)) in src/PartKeepr/SetupBundle/Services/FootprintSetupService.php at line 98 + at FootprintSetupService ->createFootprint ('CBGA-32', array('description' => '32-Lead Ceramic Ball Grid Array', 'image' => 'BGA/CBGA-32.png', 'category' => 'BGA/CBGA')) in src/PartKeepr/SetupBundle/Services/FootprintSetupService.php at line 73 + at FootprintSetupService ->importFootprints () in src/PartKeepr/SetupBundle/Controller/FootprintSetupController.php at line 28 + at FootprintSetupController ->intCreateFootprints (object(Request)) at call_user_func_array (array(object(FootprintSetupController), 'intCreateFootprints'), array(object(Request))) in app/bootstrap.php.cache at line 3192 + at HttpKernel ->handleRaw (object(Request), '1') in app/bootstrap.php.cache at line 3154 + at HttpKernel ->handle (object(Request), '1', true) in app/bootstrap.php.cache at line 3305 + at ContainerAwareHttpKernel ->handle (object(Request), '1', true) in app/bootstrap.php.cache at line 2498 + at Kernel ->handle (object(Request)) in src/PartKeepr/SetupBundle/Controller/SetupBaseController.php at line 39 + at SetupBaseController ->handleRequest (object(Request), '/setup/_int_create_footprints') in src/PartKeepr/SetupBundle/Controller/FootprintSetupController.php at line 45 + at FootprintSetupController ->createFootprintsAction (object(Request)) at call_user_func_array (array(object(FootprintSetupController), 'createFootprintsAction'), array(object(Request))) in app/bootstrap.php.cache at line 3192 + at HttpKernel ->handleRaw (object(Request), '1') in app/bootstrap.php.cache at line 3154 +

Any help would be much appreciated. Works flawlessly by using just the zip file from partkeepr.org.

Thanks for the amazing software.

pingdynasty commented 7 years ago

I get the same error with master, PartKeepr-776 branch works.

Drachenkaetzchen commented 7 years ago

The branch was just merged, it should work now again.