Forums / Developer / Debug page

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

eZ debug

Timing: Jan 31 2025 01:14:51
Script start
Timing: Jan 31 2025 01:14:51
Module start 'content'
Timing: Jan 31 2025 01:14:51
Module end 'content'
Timing: Jan 31 2025 01:14:52
Script end

Main resources:

Total runtime0.1945 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.7578370.3125
Module start 'content' 0.00610.0127 958.07031,005.4766
Module end 'content' 0.01880.1757 1,963.54693,895.8750
Script end 0.1945  5,859.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00442.2575200.0002
Check MTime0.00130.6920200.0001
Mysql Total
Database connection0.00070.359310.0007
Mysqli_queries0.098850.78991410.0007
Looping result0.00211.05501390.0000
Template Total0.175390.110.1753
Template load0.00080.389610.0008
Template processing0.174689.731010.1746
Override
Cache load0.00050.269310.0005
Sytem overhead
Fetch class attribute can translate value0.00211.072210.0021
XML
Image XML parsing0.00020.121310.0002
General
dbfile0.00854.3451200.0004
String conversion0.00000.002130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs