Forums / Install & configuration / Can't fetch custom user objects?

Can't fetch custom user objects?

Author Message

Siniša Šehović

Monday 20 November 2006 2:04:30 am

Hi

I have a custom user class and I can't fetch objects of that class.

$nodes =& eZContentObjectTreeNode::subTree(
                 array(
                    'ClassFilterType' => 'include',
                    'ClassFilterArray' => array( 16 )
                        ),
                       60
                         );

NodeID of user_group is 60.

Strange is this, if I change ClassFilterArray to 4 (default user class) fetch return objects?!?

What could be the problem?

I am using ez 3.8.6 and mysql.

Best regards,
Sinisa

---
If at first you don't succeed, look in the trash for the instructions.

Xavier Dutoit

Monday 20 November 2006 2:32:10 am

Hi Sinisa,

Stupid questions:

Are you sure the current user has the right to read the custom user class ?

Also, are they under the node 60 (both users) ?

on your parameters array, add a limitations=array() to skip the access right control (might help).

X+

http://www.sydesy.com

Siniša Šehović

Monday 20 November 2006 3:05:36 am

Hi Xavier

Thanx for tip.

Anonymous user have read access to custom class.

Under the node 60 are both users.

Fetch is not working ( I have put 'Limitations' =>array() )

Please help!

S.

---
If at first you don't succeed, look in the trash for the instructions.

Siniša Šehović

Monday 20 November 2006 6:44:24 am

Hi Xavier

I think I have problem with my database data.

For test I have dropped custom user class, recreated and imported users.
Now I can fetch ...

BUT with remove of class my objects lost information about owners.

How to recreate information?

Best regards,
S.

---
If at first you don't succeed, look in the trash for the instructions.

Siniša Šehović

Monday 27 November 2006 6:06:52 am

Problem solved after adding Language parameter in fetch.

S.

---
If at first you don't succeed, look in the trash for the instructions.

eZ debug

Timing: Jan 18 2025 11:16:58
Script start
Timing: Jan 18 2025 11:16:58
Module start 'content'
Timing: Jan 18 2025 11:16:58
Module end 'content'
Timing: Jan 18 2025 11:16:58
Script end

Main resources:

Total runtime0.2229 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 588.9531180.8281
Module start 'content' 0.00850.0082 769.781398.0547
Module end 'content' 0.01670.2060 867.8359526.5781
Script end 0.2226  1,394.4141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00391.7303200.0002
Check MTime0.00150.6903200.0001
Mysql Total
Database connection0.00170.769510.0017
Mysqli_queries0.164473.75351410.0012
Looping result0.00291.28601390.0000
Template Total0.205592.210.2055
Template load0.00110.480510.0011
Template processing0.204491.721410.2044
Override
Cache load0.00060.285010.0006
Sytem overhead
Fetch class attribute can translate value0.00512.302710.0051
XML
Image XML parsing0.00050.212710.0005
General
dbfile0.00241.0764200.0001
String conversion0.00000.003230.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