zikula-modules / Pages

Simple HTML Pages
https://ziku.la/
18 stars 4 forks source link

Error: Call to a member function incrementCounter() on null #40

Closed craigh closed 9 years ago

craigh commented 9 years ago

Error: Call to a member function incrementCounter() on null in /Applications/MAMP/htdocs/core.git/src/modules/Pages/lib/Pages/Access/Page.php line 162

500 Internal Server Error - FatalErrorException

Stack Trace

in /Applications/MAMP/htdocs/core.git/src/modules/Pages/lib/Pages/Access/Page.php at line 162 - */ public function incrementReadCount() { $this->_page->incrementCounter(); $this->entityManager->flush(); return true; } at Pages_Access_Page ->incrementReadCount () in /Applications/MAMP/htdocs/core.git/src/modules/Pages/lib/Pages/Api/User.php at line 104 + at Pages_Api_User ->incrementreadcount () in /Applications/MAMP/htdocs/core.git/src/lib/util/ModUtil.php at line 1153 + at call_user_func:{/Applications/MAMP/htdocs/core.git/src/lib/util/ModUtil.php:1153} () in /Applications/MAMP/htdocs/core.git/src/lib/util/ModUtil.php at line 1153 + at ModUtil ::exec () in /Applications/MAMP/htdocs/core.git/src/lib/util/ModUtil.php at line 1229 + at ModUtil ::apiFunc () in /Applications/MAMP/htdocs/core.git/src/modules/Pages/lib/Pages/Controller/User.php at line 197 + at Pages_Controller_User ->display () in /Applications/MAMP/htdocs/core.git/src/lib/util/ModUtil.php at line 1153 + at call_user_func:{/Applications/MAMP/htdocs/core.git/src/lib/util/ModUtil.php:1153} () in /Applications/MAMP/htdocs/core.git/src/lib/util/ModUtil.php at line 1153 + at ModUtil ::exec () in /Applications/MAMP/htdocs/core.git/src/lib/util/ModUtil.php at line 1203 + at ModUtil ::func () in /Applications/MAMP/htdocs/core.git/src/lib/Zikula/Bundle/CoreBundle/EventListener/LegacyRouteListener.php at line 115 + at LegacyRouteListener ->onKernelRequest () in /Applications/MAMP/htdocs/core.git/src/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php at line 59 + at call_user_func:{/Applications/MAMP/htdocs/core.git/src/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php:59} () in /Applications/MAMP/htdocs/core.git/src/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php at line 59 + at WrappedListener ->__invoke () in /Applications/MAMP/htdocs/core.git/src/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php at line 164 + at call_user_func:{/Applications/MAMP/htdocs/core.git/src/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:164} () in /Applications/MAMP/htdocs/core.git/src/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php at line 164 + at EventDispatcher ->doDispatch () in /Applications/MAMP/htdocs/core.git/src/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php at line 53 + at EventDispatcher ->dispatch () in /Applications/MAMP/htdocs/core.git/src/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php at line 167 + at ContainerAwareEventDispatcher ->dispatch () in /Applications/MAMP/htdocs/core.git/src/lib/legacy/Zikula/EventManager.php at line 99 + at Zikula_EventManager ->dispatch () in /Applications/MAMP/htdocs/core.git/src/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php at line 112 + at TraceableEventDispatcher ->dispatch () in /Applications/MAMP/htdocs/core.git/src/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 126 + at HttpKernel ->handleRaw () in /Applications/MAMP/htdocs/core.git/src/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 66 + at HttpKernel ->handle () in /Applications/MAMP/htdocs/core.git/src/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 64 + at ContainerAwareHttpKernel ->handle () in /Applications/MAMP/htdocs/core.git/src/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 185 + at Kernel ->handle () in /Applications/MAMP/htdocs/core.git/src/index.php at line 24 + at {main} ()