Debug page

Author Message

Coulibaly Ibrahim

Tuesday 29 August 2006 7:04:20 am

I've this code under in n/node/view/full.tpl overrides

{section show=count($node.object.can_create_class_list)}
  <center><form method="post" action={"/content/action"|ezurl}>
    <input type="hidden" name="NodeID" value="{$node.node_id}" />
    <select name="ClassID">
    {section var=class loop=$node.object.can_create_class_list}
     <option value="{$class.id}">{$class.name|wash}</option>
    {/section}
    </select>
    <input type="submit" name="NewButton" value="{'Create here'|i18n('design/standard/node/view')}" />
  </form></center>
<br />
  {/section}

and i obtain this warnings in my debug :
<i>Undefined index: classes in /var/www/html/projet7/kernel/classes/ezcontentobject.php on line 3638

Undefined index: language_codes in /var/www/html/projet7/kernel/classes/ezcontentobject.php on line 3639
Invalid argument supplied for foreach() in /var/www/html/projet7/kernel/classes/ezcontentobject.php on line 3647
array_diff(): Argument #1 is not an array in /var/www/html/projet7/kernel/classes/ezcontentobject.php on line 3658</i>

Does someone knows where these warnings come from?
I've predefined a role that will be limited to sections.
i'me testing it. and i receive this warning.

the code comes from here:
http://ez.no/products/ez_publish/documentation/customization/tips_tricks/editing_creating_and_removing_content_from_the_user_page

thanks .

Marcin Drozd

Tuesday 29 August 2006 7:27:20 am

Hi
Which version of ez publish do you use? 3.8 or earlier?

if 3.8 try to add:
<input type="hidden" name="ContentLanguageCode" value="lang-code" />
where lang-code U can use ezini() to get language settings.

http://ez-publish.pl

Coulibaly Ibrahim

Tuesday 29 August 2006 9:15:35 am

Thanks, Marcin
i'm using eZP 3.8 and php 4.4.2
but i tested, and steel remaining the same errors.

my EzP Regional setings is :

[RegionalSettings]
Locale=fre-FR
ContentObjectLocale=fre-FR
TextTranslation=enabled
SiteLanguageList[]=fre-FR
ShowUntranslatedObjects=enable

is it correct?
i'm using only one language: french-->fre-FR

Claudia Kosny

Wednesday 30 August 2006 12:27:04 pm

Hello Coulibaly Ibrahim

There seems to be a problem with the roles of the current user. So could you please post the permissions the user/role has?
Has your user permission to create something under the node that you are viewing?
Does the same happen if you remove the section limitation?

Greetings from Luxembourg

Claudia

Coulibaly Ibrahim

Wednesday 30 August 2006 12:52:39 pm

Hi Claudia and thanks:
exple af Policy:

 content create Class( Actualité , Evenement ) , ParentClass( Dossier actualité )

but
yes the same problem appears when there's no limitaition

I thought it comes from Languages problem.
because -->Languages code is not define. perhap i must set Rôle defining language??

Marcin Drozd

Thursday 31 August 2006 12:40:13 am

Hi
Do U have:
content <b>edit</b> Class( Actualité , Evenement ) , Owner( Self )
??

http://ez-publish.pl

Claudia Kosny

Friday 01 September 2006 4:31:55 pm

Hello Coulibaly Ibrahim

Unfortunately I don't know what is going on - I have tried a similar role and did not get any errors. Somehow EZ can't fetch the policies array properly. I don't think is has to do with the languages - the error message just mentions the languages because at a certain point during the retrieval of the information on cancreateclasslist EZ tries to fetch the policies into an array with the keys 'classes' and 'language_codes'. As the whole thing fails the language codes are mentioned as well.

Maybe the user or the user group you assigned the role to has become invalid somehow - I really do not know - sorry.

Claudia

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 04:27:18
Script start
Timing: Jan 31 2025 04:27:18
Module start 'layout'
Timing: Jan 31 2025 04:27:18
Module start 'content'
Timing: Jan 31 2025 04:27:19
Module end 'content'
Timing: Jan 31 2025 04:27:19
Script end

Main resources:

Total runtime1.4081 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.0078151.1953
Module start 'layout' 0.00450.0028 739.203136.6016
Module start 'content' 0.00741.3999 775.8047988.6094
Module end 'content' 1.40730.0008 1,764.414115.8906
Script end 1.4080  1,780.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2160160.0002
Check MTime0.00130.0947160.0001
Mysql Total
Database connection0.00060.043010.0006
Mysqli_queries1.340495.1959710.0189
Looping result0.00060.0443690.0000
Template Total1.370697.320.6853
Template load0.00190.135620.0010
Template processing1.368797.198920.6843
Template load and register function0.00150.106510.0015
states
state_id_array0.00160.110110.0016
state_identifier_array0.00260.188220.0013
Override
Cache load0.00160.1141550.0000
Sytem overhead
Fetch class attribute can translate value0.00070.046430.0002
Fetch class attribute name0.00220.157670.0003
XML
Image XML parsing0.00030.024230.0001
class_abstraction
Instantiating content class attribute0.00000.001070.0000
General
dbfile0.00610.4334100.0006
String conversion0.00000.000440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
13content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 41
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs