Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Edit page spits error: Undefined method 'getLockAmount'. The method name must start with either findBy or findOneBy! #172

Closed
MrMontesa opened this issue Sep 29, 2016 · 1 comment
Assignees

Comments

@MrMontesa
Copy link

Hey,
I just installed zk 1.4.3 and the master branch of Content. Trying to edit the default page via "edit button" ends up in an "error 500" with the following error message:

The server returned a "500 Internal Server Error".

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

Undefined method 'getLockAmount'. The method name must start with either findBy or findOneBy!

The stack trace contains the following information:

Stack Trace
in vendor/doctrine/orm/lib/Doctrine/ORM/EntityRepository.php at line 226   -
                break;
            default:
                throw new \BadMethodCallException(
                    "Undefined method '$method'. The method name must start with ".
                    "either findBy or findOneBy!"
                );
at EntityRepository ->__call ('getLockAmount', array('contentPage1', 'u027eccr7seobet8894oo331g5')) 
in system/PageLockModule/Api/LockingApi.php at line 198   + 
at PageLockRepository ->getLockAmount ('contentPage1', 'u027eccr7seobet8894oo331g5') 
in system/PageLockModule/Api/LockingApi.php at line 198   + 
at LockingApi ->requireLock ('contentPage1', 's.waitz', '217.110.92.161') 
in system/PageLockModule/Api/LockingApi.php at line 143   + 
at LockingApi ->addLock ('contentPage1', 'http://staging.amc-idstein.de/index.php?module=content&type=admin&func=main', false) 
in system/PageLockModule/Api/UserApi.php at line 44   + 
at UserApi ->pageLock (array('lockName' => 'contentPage1', 'returnUrl' => 'http://staging.amc-idstein.de/index.php?module=content&type=admin&func=main')) 
at call_user_func (array(object(UserApi), 'pageLock'), array('lockName' => 'contentPage1', 'returnUrl' => 'http://staging.amc-idstein.de/index.php?module=content&type=admin&func=main')) 
in lib/util/ModUtil.php at line 1222   + 
at ModUtil ::exec ('PageLock', 'user', 'pageLock', array('lockName' => 'contentPage1', 'returnUrl' => 'http://staging.amc-idstein.de/index.php?module=content&type=admin&func=main'), true, null) 
in lib/util/ModUtil.php at line 1298   + 
at ModUtil ::apiFunc ('PageLock', 'user', 'pageLock', array('lockName' => 'contentPage1', 'returnUrl' => 'http://staging.amc-idstein.de/index.php?module=content&type=admin&func=main')) 
in modules/Content/lib/Content/Form/Handler/Admin/EditPage.php at line 78   + 
at Content_Form_Handler_Admin_EditPage ->initialize (object(Zikula_Form_View)) 
in lib/legacy/Zikula/Form/View.php at line 283   + 
at Zikula_Form_View ->execute ('admin/editpage.tpl', object(Content_Form_Handler_Admin_EditPage)) 
in modules/Content/lib/Content/Controller/Admin.php at line 54   + 
at Content_Controller_Admin ->editpage (array('pid' => '1', 'back' => '1')) 
at call_user_func_array (array(object(Content_Controller_Admin), 'editpage'), array(array('pid' => '1', 'back' => '1'))) 
in lib/legacy/Zikula/AbstractController.php at line 153   + 
at Zikula_AbstractController ->__call ('editpageAction', array(array('pid' => '1', 'back' => '1'))) 
at Content_Controller_Admin ->editpageAction (array('pid' => '1', 'back' => '1')) 
at call_user_func (array(object(Content_Controller_Admin), 'editpageAction'), array('pid' => '1', 'back' => '1')) 
in lib/util/ModUtil.php at line 1222   + 
at ModUtil ::exec ('Content', 'admin', 'editpage', array('pid' => '1', 'back' => '1'), false, null) 
in lib/util/ModUtil.php at line 1272   + 
at ModUtil ::func ('Content', 'admin', 'editpage', array('pid' => '1', 'back' => '1')) 
in lib/Zikula/Bundle/CoreBundle/Controller/LegacyController.php at line 176   + 
at LegacyController ->getLegacyResponse ('Content', 'admin', 'editpage', array('pid' => '1', 'back' => '1'), false) 
in lib/Zikula/Bundle/CoreBundle/Controller/LegacyController.php at line 90   + 
at LegacyController ->legacyAction (object(Zikula_Request_Http)) 
at call_user_func_array (array(object(LegacyController), 'legacyAction'), array(object(Zikula_Request_Http))) 
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 144   + 
at HttpKernel ->handleRaw (object(Zikula_Request_Http), '1') 
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 64   + 
at HttpKernel ->handle (object(Zikula_Request_Http), '1', true) 
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 69   + 
at ContainerAwareHttpKernel ->handle (object(Zikula_Request_Http), '1', true) 
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 185   + 
at Kernel ->handle (object(Zikula_Request_Http)) 
in index.php at line 23   + 

Version information:
Content: 4.2.1 / Zikula 1.4.3 / Symfony 2.8.9 / PHP 5.6.25

Let me know if I can be of any help solving this issue.
Thanks

@Guite
Copy link
Member

Guite commented Sep 29, 2016

Thanks for reporting. This is fixed by zikula/core#3089

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

No branches or pull requests

2 participants