I have created an asset listing page which lists assets directly under the asset listing page root. This works well. I have added an asset grouping that uses asset metadata of the assets to be listed. This works well, however I get php errors returned with php error reporting turned on. If I add a group level 2 that also uses metadata then it will work, however return more php errors. I have used standard asset grouping using short name to list descending etc and this works well with no errors, therefore it seems to only be when using asset metadata in asset grouping.
The php error is:
File: [SYSTEM_ROOT]/packages/cms/listing_engine/listing_engine.inc Line: 1574 Message: Undefined index: field
Anyone come across this before? Any suggestions?
Have you told the Asset Listing which field to group on? Check the "Asset Grouping" screen to make sure you've selected a metadata field.
Yes, the metadata gouping works well. In System configuration we have "Hide errors on the Frontend" set to No. However if set to Yes then the page renders without the error messages…The resulting html is the same in both cases.
What version of MySource Matrix are you using?
Squiz MySource v3.10.3
Can you paste in the Backtrace from the error?
0 => array (
"function" => "sq_error_handler",
"args" => array (
0 => 8,
1 => "Undefined index: field",
2 => "[SYSTEM_ROOT]/packages/cms/listing_engine/listing_engine.inc",
3 => 1574,
4 => array (
[Max Depth Reached]
)
)
),
1 => array (
"file" => "[SYSTEM_ROOT]/packages/cms/listing_engine/listing_engine.inc",
"line" => 1574,
"function" => "_printgroups"
),
2 => array (
"file" => "[SYSTEM_ROOT]/packages/cms/listing_engine/listing_engine.inc",
"line" => 1520,
"function" => "_printgroups",
"class" => "page_asset_listing",
"type" => "->",
"args" => array (
0 => array (
[Max Depth Reached]
),
1 => array (
[Max Depth Reached]
)
)
),
3 => array (
"file" => "[SYSTEM_ROOT]/packages/cms/listing_engine/listing_engine.inc",
"line" => 536,
"function" => "printassetlist",
"class" => "page_asset_listing",
"type" => "->",
"args" => array (
0 => array (
[Max Depth Reached]
)
)
),
4 => array (
"file" => "[SYSTEM_ROOT]/packages/cms/listing_engine/listing_engine.inc",
"line" => 354,
"function" => "printcontents",
"class" => "page_asset_listing",
"type" => "->",
"args" => array (
[Empty]
)
),
5 => array (
"file" => "[SYSTEM_ROOT]/core/include/asset.inc",
"line" => 4003,
"function" => "printbody",
"class" => "page_asset_listing",
"type" => "->",
"args" => array (
[Empty]
)
),
6 => array (
"file" => "[SYSTEM_ROOT]/data/private/assets/design/57/design_file.php",
"line" => 243,
"function" => "printbodywithpaintlayout",
"class" => "page_asset_listing",
"type" => "->",
"args" => array (
[Empty]
)
),
7 => array (
"file" => "[SYSTEM_ROOT]/core/assets/designs/design/design.inc",
"line" => 857,
"args" => array (
0 => "[SYSTEM_ROOT]/data/private/assets/design/57/design_file.php"
),
"function" => "require_once"
),
8 => array (
"file" => "[SYSTEM_ROOT]/core/include/asset.inc",
"line" => 3877,
"function" => "paint",
"class" => "design",
"type" => "->",
"args" => array (
0 => new page_asset_listing Object (
[Max Depth Reached]
)
)
),
9 => array (
"file" => "[SYSTEM_ROOT]/core/include/asset.inc",
"line" => 3806,
"function" => "printfrontendasset",
"class" => "page_asset_listing",
"type" => "->",
"args" => array (
0 => new page_asset_listing Object (
[Max Depth Reached]
)
)
),
10 => array (
"file" => "[SYSTEM_ROOT]/core/include/mysource.inc",
"line" => 439,
"function" => "printfrontend",
"class" => "page_asset_listing",
"type" => "->",
"args" => array (
[Empty]
)
),
11 => array (
"file" => "[SYSTEM_ROOT]/core/web/index.php",
"line" => 38,
"function" => "start",
"class" => "mysource",
"type" => "->",
"args" => array (
[Empty]
)
)
I cant see any code on that line for 3.10.3. Can someone else please check it out and see if they can find the code causing this error.
[quote]I cant see any code on that line for 3.10.3. Can someone else please check it out and see if they can find the code causing this error.
[right][post=“13940”]<{POST_SNAPBACK}>[/post][/right][/quote]
Thanks, will be interested in what you guys come up with 
[quote]Thanks, will be interested in what you guys come up with 
[right][post=“13941”]<{POST_SNAPBACK}>[/post][/right][/quote]
Are we able to get access to your system in some way? It looks like there might be a version mismatch between your core system and the packages you have installed.
[quote]Are we able to get access to your system in some way? It looks like there might be a version mismatch between your core system and the packages you have installed.
[right][post=“13943”]<{POST_SNAPBACK}>[/post][/right][/quote]
Anthony Dendle is updating the system with 3.10.3 modules, thanks for the help, I’ll post a comment on the outcome.
[quote]Anthony Dendle is updating the system with 3.10.3 modules, thanks for the help, I’ll post a comment on the outcome.
[right][post=“13944”]<{POST_SNAPBACK}>[/post][/right][/quote]
Okedokey.
Anthony and I have been emailing back and forth on Oracle stuff already, so I’ll be interested to hear the outcome of this as well.
fyi this was rectified and was a mismatch between versions of core system and the packages installed… thanks