eZ Community » Forums » eZ Publish 5 Platform » Error opening location
expandshrink

Error opening location

Error opening location

Thursday 03 October 2013 11:28:13 am - 4 replies

Hi all,

Upon opening an url like /content/location/94 I get

 <span>TwigBundle:Exception:error500.html.twig</span>

The log says this:

[2013-10-03 09:54:18] app.NOTICE: Siteaccess not matched against configuration, returning default siteaccess.  
[2013-10-03 09:54:18] request.INFO: Matched route "_ezpublishLocation" (parameters: "_controller": "ez_content:viewLocation", "viewType": "full", "layout": "true", "locationId": "90", "_route": "_ezpublishLocation")  
[2013-10-03 09:54:18] security.DEBUG: Read SecurityContext from the session  
[2013-10-03 09:54:18] security.DEBUG: Reloading user from user provider.  
[2013-10-03 09:54:18] security.DEBUG: Username "anonymous" was reloaded from user provider.  
[2013-10-03 09:54:18] app.DEBUG: Checking secure context token: PreAuthenticatedToken(user="anonymous", authenticated=false, roles="")  
[2013-10-03 09:54:18] app.DEBUG: Trying to pre-authenticate user "-1"  
[2013-10-03 09:54:18] app.INFO: Authentication success: PreAuthenticatedToken(user="anonymous", authenticated=false, roles="")  
[2013-10-03 09:54:18] app.NOTICE: 'location' is not scalar, cannot pass it to legacy content module. Skipping. ["eZ\\Publish\\Core\\MVC\\Legacy\\View\\Provider\\Location::eZ\\Publish\\Core\\MVC\\Legacy\\View\\Provider\\{closure}"]  
[2013-10-03 09:54:18] app.NOTICE: 'content' is not scalar, cannot pass it to legacy content module. Skipping. ["eZ\\Publish\\Core\\MVC\\Legacy\\View\\Provider\\Location::eZ\\Publish\\Core\\MVC\\Legacy\\View\\Provider\\{closure}"]  
[2013-10-03 09:54:18] request.CRITICAL: Uncaught PHP Exception ezpContentNotFoundException: "" at /mysite/ezpublish_legacy/lib/ezutils/classes/ezmodule.php line 615 {"exception":"[object] (ezpContentNotFoundException:  at /mysite/beta/ezpublish_legacy/lib/ezutils/classes/ezmodule.php:615)"}  
[2013-10-03 09:54:19] security.DEBUG: Write SecurityContext in the session

What dows this mean?

(The site runs on 2013.7 on a regular Debian system (not using ACL). Demo site with content.)

Felix

Modified on Thursday 03 October 2013 2:09:45 pm by Nicolas Pastorino

Thursday 03 October 2013 11:53:14 am

Hi Felix. First you should work in dev mode (either pointing your vhost to index_dev.php or to set ENV environment variable to "dev"blunk.gif Emoticon. This will help you a lot for debugging such things blunk.gif Emoticon.

Thursday 03 October 2013 3:13:18 pm

Hi Jérôme!

Thank you very much for your quick answer!

I did switch to dev enviroment, and indeed I got a lot of more info.

However, it still leaves me with the same core error:

 CRITICAL - Uncaught PHP Exception ezpContentNotFoundException: "" at /home/greaterstavanger/beta/ezpublish_legacy/lib/ezutils/classes/ezmodule.php line 615 

The node exists. I can see it if I do a content/view/full in the admin interface.

Felix

Modified on Thursday 03 October 2013 3:13:55 pm by Felix Laate

Thursday 03 October 2013 3:44:36 pm

Please provide the whole stack trace. But as far as I can see, location #94 is not the problem here since your final exception is:

Uncaught PHP Exception ezpContentNotFoundException: ""

So there is no id here...

Friday 04 October 2013 9:49:45 am

Here is the Stack Trace:

Stack Trace
in /mysite/ezpublish_legacy/lib/ezutils/classes/ezmodule.php at line 615   -                
case eZError::KERNEL_NOT_AVAILABLE:                
case eZError::KERNEL_NOT_FOUND:                   
 throw new ezpContentNotFoundException( "" );                
case eZError::KERNEL_LANGUAGE_NOT_FOUND:                       
throw new ezpLanguageNotFound;at eZModule ->handleError ('3', 'kernel', array()) in /mysite/beta/ezpublish_legacy/kernel/classes/eznodeviewfunctions.php 
at line 610   + at eZNodeviewfunctions ::contentViewGenerateError (object(eZModule), '3') in /mysite/beta/ezpublish_legacy/kernel/classes/eznodeviewfunctions.php 
at line 546   + at eZNodeviewfunctions ::contentViewGenerate ('var/ezdemo_site/cache/content/nor/74-d695e88224820db14270a81073d27a1d.cache', array('NodeID' => '74', 'Module' => object(eZModule), 'tpl' => object(eZTemplate), 'LanguageCode' => false, 'ViewMode' => 'full', 'Offset' => false, 'ini' => object(eZINI), 'viewParameters' => array('offset' => false, 'year' => false, 'month' => false, 'day' => false, 'namefilter' => false, 'noLayout' => false), 'collectionAttributes' => false, 'validation' => array('processed' => false, 'attributes' => array()))) at call_user_func_array (array('eZNodeviewfunctions', 'contentViewGenerate'), array('var/ezdemo_site/cache/content/nor/74-d695e88224820db14270a81073d27a1d.cache', array('NodeID' => '74', 'Module' => object(eZModule), 'tpl' => object(eZTemplate), 'LanguageCode' => false, 'ViewMode' => 'full', 'Offset' => false, 'ini' => object(eZINI), 'viewParameters' => array('offset' => false, 'year' => false, 'month' => false, 'day' => false, 'namefilter' => false, 'noLayout' => false), 'collectionAttributes' => false, 'validation' => array('processed' => false, 'attributes' => array())))) 
in /mysite/beta/ezpublish_legacy/kernel/classes/clusterfilehandlers/ezfsfilehandler.php at line 400   + at eZFSFileHandler ->processCache (array('eZNodeviewfunctions', 'contentViewRetrieve'), array('eZNodeviewfunctions', 'contentViewGenerate'), null, null, array('NodeID' => '74', 'Module' => object(eZModule), 'tpl' => object(eZTemplate), 'LanguageCode' => false, 'ViewMode' => 'full', 'Offset' => false, 'ini' => object(eZINI), 'viewParameters' => array('offset' => false, 'year' => false, 'month' => false, 'day' => false, 'namefilter' => false, 'noLayout' => false), 'collectionAttributes' => false, 'validation' => array('processed' => false, 'attributes' => array()))) in /mysite/beta/ezpublish_legacy/kernel/content/view.php at line 184   + at include ('/mysite/beta/ezpublish_legacy/kernel/content/view.php') in /mysite/beta/ezpublish_legacy/lib/ezutils/classes/ezprocess.php at line 46   + at eZProcess ->runFile (array('ViewMode' => 'full', 'NodeID' => '74', 'Language' => false, 'Offset' => false, 'Year' => false, 'Month' => false, 'Day' => false, 'UserParameters' => array('noLayout' => false), 'Module' => object(eZModule), 'ModuleName' => 'content', 'FunctionName' => 'view', 'Parameters' => array('full', '74')), 'kernel/content/view.php', true) in /mysite/beta/ezpublish_legacy/lib/ezutils/classes/ezprocess.php at line 21   + 
at eZProcess ::run ('kernel/content/view.php', array('ViewMode' => 'full', 'NodeID' => '74', 'Language' => false, 'Offset' => false, 'Year' => false, 'Month' => false, 'Day' => false, 'UserParameters' => array('noLayout' => false), 'Module' => object(eZModule), 'ModuleName' => 'content', 'FunctionName' => 'view', 'Parameters' => array('full', '74')), true) 
in /mysite/beta/ezpublish_legacy/lib/ezutils/classes/ezmodule.php at line 1789   + at eZModule ->run ('view', array('full', '74'), false, array('noLayout' => false)) 
in /mysite/beta/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/View/Provider/Location.php at line 83   + at eZ\Publish\Core\MVC\Legacy\View\Provider\{closure} () 
in /mysite/beta/ezpublish_legacy/kernel/private/classes/ezpkernelweb.php at line 1192   + at ezpKernelWeb ->runCallback (object(Closure), false)
in /mysite/beta/ezpublish_legacy/kernel/private/classes/ezpkernel.php at line 68   + at ezpKernel ->runCallback (object(Closure), false)
in /mysite/beta/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/Kernel.php at line 106   + 
at Kernel ->runCallback (object(Closure), false) in /mysite/beta/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/View/Provider/Location.php at line 138   + 
at eZ\Publish\Core\MVC\Legacy\View\Provider\{closure} (array('noLayout' => false, 'location' => object(Location), 'content' => object(Content), 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig')) 
in /mysite/beta/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Legacy/View/TwigContentViewLayoutDecorator.php at line 105   + 
at eZ\Publish\Core\MVC\Legacy\View\{closure} (array('noLayout' => false, 'location' => object(Location), 'content' => object(Content), 'viewbaseLayout' => 'EzPublishCoreBundle::viewbase_layout.html.twig')) in /mysite/beta/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php at line 314  + 
at Manager ->renderContentView (object(TwigContentViewLayoutDecorator), array('noLayout' => false, 'location' => object(Location), 'content' => object(Content))) 
in /mysite/beta/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/View/Manager.php at line 259  + 
at Manager ->renderLocation (object(Location), 'full', array('noLayout' => false)) 
in /mysite/beta/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php at line 191   + 
at ViewController ->renderLocation (object(Location), 'full', true, array()) 
in /mysite/beta/vendor/ezsystems/ezpublish-kernel/eZ/Publish/Core/MVC/Symfony/Controller/Content/ViewController.php at line 104   + 
at ViewController ->viewLocation ('74', 'full', true, array()) at call_user_func_array (array(object(ViewController), 'viewLocation'), array('74', 'full', true, array())) 
in kernel.root_dir/bootstrap.php.cache at line 2805   + 
at HttpKernel ->handleRaw (object(Request), '1') 
in kernel.root_dir/bootstrap.php.cache at line 2779   + 
at HttpKernel ->handle (object(Request), '1', true) 
in kernel.root_dir/bootstrap.php.cache at line 2908   + 
at ContainerAwareHttpKernel ->handle (object(Request), '1', true) 
in kernel.root_dir/bootstrap.php.cache at line 2210   + 
at Kernel ->handle (object(Request), '1', true) 
in /mysite/beta/vendor/ezsystems/ezpublish-kernel/eZ/Bundle/EzPublishCoreBundle/Kernel.php at line 62   + 
at Kernel ->handle (object(Request)) in /mysite/beta/web/index.php at line 64   + 

Modified on Friday 04 October 2013 9:56:37 am by Felix Laate

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from