HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


While trying to place an entry in a catalogue I got this the error message

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#57464 (In Topic #12495)
Avatar

Community saint

While trying to place an entry in a catalogue I got this the error message

While trying to place my first entry in my created Paleo News catalogue the error message with a stack trace occured after I clicked 'add a paleo news entry' after filling in the catalogue entry fields:



> Content Management > Catalogues > Add a 'paleo_news' entry > Done

An error has occurred

PHP NOTICE [8] Undefined index: effective_value_pure in /home/prehisto/public_html/sources/urls2.php(374) : eval()'d code on line 1 (version: 4.2.2, PHP version: 5.2.11, URL: /~prehisto/cms/index.php?page=cms_catalogues&type=_ad&catalogue_name=paleo_news&uploading=1)

Here is the stack trace:

Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check ocPortal website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File'/home/prehisto/public_html/sources/failure.php'
Line'538'
Function'get_html_trace'
Args



File'/home/prehisto/public_html/sources/global2.php'
Line'807'
Function'_fatal_exit'
Args'PHP NOTICE [8] Undefined index: effective_value_pure in /home/prehisto/public_html/sources/urls2.php(374) : eval()\'d code on line 1'




File'/home/prehisto/public_html/sources/failure.php'
Line'147'
Function'fatal_exit'
Args'PHP NOTICE [8] Undefined index: effective_value_pure in /home/prehisto/public_html/sources/urls2.php(374) : eval()\'d code on line 1'




File'/home/prehisto/public_html/sources/global2.php'
Line'678'
Function'_ocportal_error_handler'
Args'notice'

8

'Undefined index: effective_value_pure'

'/home/prehisto/public_html/sources/urls2.php(374) : eval()\'d code'

1




File'/home/prehisto/public_html/sources/urls2.php(374) : eval()\'d code'
Line'1'
Function'ocportal_error_handler'
Args8

'Undefined index: effective_value_pure'

'/home/prehisto/public_html/sources/urls2.php(374) : eval()\'d code'

1

array ( 'ob_info' => array ( 'table' => 'catalogue_entries', 'id_field' => 'id', 'id_field_numeric' => true, 'parent_category_field' => 'cc_id', 'parent_category_meta_aware_type' => 'catalogue_category', 'title_field' => 'EVAL: require_code(\'catalogues\'); $fields=get_catalogue_entry_field_values(NULL,intval($url_parts[\'id\']),array(0),NULL); $field=array_shift($fields); return strip_comcode($field[\'effective_value_pure\']);', 'title_field_dereference' => false, 'is_category' => false, 'is_entry' => true, 'seo_type_code' => 'catalogue_entry', 'permissions_type_code' => 'catalogues_category', 'view_pagelink_pattern' => '_SEARCH:catalogues:entry:_WILD', 'edit_pagelink_pattern' => '_SEARCH:cms_catalogues:_ed:_WILD', 'view_category_pagelink_pattern' => '_SEARCH:catalogues:category:_WILD', 'support_url_monikers' => true, 'search_hook' => 'catalogue_entries', ), 'url_parts' => array ( 'page' => 'catalogues', 'type' => 'entry', 'id' => '1294', ), 'bak' => false, 'select' => array ( 0 => 'id', 1 => 'cc_id', ), '_moniker_src' => array ( 0 => array ( 'id' => 1294, 'cc_id' => 37, ), ), 'fields' => array ( 0 => array ( 'id' => 47, 'c_name' => 'paleo_news', 'cf_name' => 7743, 'cf_description' => 7742, 'cf_type' => 'short_text', 'cf_order' => 1, 'cf_defines_order' => 0, 'cf_visible' => 1, 'cf_searchable' => 1, 'cf_default' => '', 'cf_required' => 1, 'cf_put_in_category' => 1, 'cf_put_in_search' => 1, ), 1 => array ( 'id' => 48, 'c_name' => 'paleo_news', 'cf_name' => 7745, 'cf_description' => 7744, 'cf_type' => 'date', 'cf_order' => 2, 'cf_defines_order' => 1, 'cf_visible' => 1, 'cf_searchable' => 1, 'cf_default' => '', 'cf_required' => 1, 'cf_put_in_category' => 1, 'cf_put_in_search' => 1, ), 2 => array ( 'id' => 49, 'c_name' => 'paleo_news', 'cf_name' => 7747, 'cf_description' => 7746, 'cf_type' => 'short_text', 'cf_order' => 3, 'cf_defines_order' => 0, 'cf_visible' => 1, 'cf_searchable' => 1, 'cf_default' => '', 'cf_required' => 1, 'cf_put_in_category' => 1, 'cf_put_in_search' => 1, ), ), 'field' => array ( 'id' => 46, 'c_name' => 'paleo_news', 'cf_name' => 7741, 'cf_description' => 7740, 'cf_type' => 'url', 'cf_order' => 0, 'cf_defines_order' => 0, 'cf_visible' => 1, 'cf_searchable' => 1, 'cf_default' => '', 'cf_required' => 1, 'cf_put_in_category' => 1, 'cf_put_in_search' => 1, 'effective_value' => 'http://www.cbsnews.com/stories/2010/01/15/tech/main6100343.shtml', ), )




File'/home/prehisto/public_html/sources/urls2.php'
Line'374'
Function'eval'



File'/home/prehisto/public_html/sources/urls.php'
Line'852'
Function'autogenerate_new_url_moniker'
Argsarray ( 'table' => 'catalogue_entries', 'id_field' => 'id', 'id_field_numeric' => true, 'parent_category_field' => 'cc_id', 'parent_category_meta_aware_type' => 'catalogue_category', 'title_field' => 'EVAL: require_code(\'catalogues\'); $fields=get_catalogue_entry_field_values(NULL,intval($url_parts[\'id\']),array(0),NULL); $field=array_shift($fields); return strip_comcode($field[\'effective_value_pure\']);', 'title_field_dereference' => false, 'is_category' => false, 'is_entry' => true, 'seo_type_code' => 'catalogue_entry', 'permissions_type_code' => 'catalogues_category', 'view_pagelink_pattern' => '_SEARCH:catalogues:entry:_WILD', 'edit_pagelink_pattern' => '_SEARCH:cms_catalogues:_ed:_WILD', 'view_category_pagelink_pattern' => '_SEARCH:catalogues:category:_WILD', 'support_url_monikers' => true, 'search_hook' => 'catalogue_entries', )

array ( 'page' => 'catalogues', 'type' => 'entry', 'id' => '1294', )




File'/home/prehisto/public_html/sources/urls.php'
Line'372'
Function'find_id_moniker'
Argsarray ( 'page' => 'catalogues', 'type' => 'entry', 'id' => '1294', )




File'/home/prehisto/public_html/sources/symbols.php'
Line'156'
Function'_build_url'
Argsarray ( 'page' => 'catalogues', 'type' => 'entry', 'id' => '1294', )

'site'

NULL

false

false

false

''




File'/home/prehisto/public_html/sources/tempcode.php(1362) : eval()\'d code'
Line'1'
Function'evaluate_conventional_variable'
Args'EN'

array ( )

0

'PAGE_LINK'

array ( 0 => 'site:catalogues:entry:1294', 1 => '0', 2 => '0', 3 => '0', )




File'/home/prehisto/public_html/sources/tempcode.php'
Line'1,362'
Function'eval'



File'/home/prehisto/public_html/sources/tempcode.php(1362) : eval()\'d code'
Line'11'
Function'evaluate'
Class'ocp_tempcode'
Type'->'
Objectobject
Args



File'/home/prehisto/public_html/sources/tempcode.php'
Line'1,362'
Function'eval'



File'/home/prehisto/public_html/sources/tempcode.php(1362) : eval()\'d code'
Line'17'
Function'evaluate'
Class'ocp_tempcode'
Type'->'
Objectobject
Args



File'/home/prehisto/public_html/sources/tempcode.php'
Line'1,362'
Function'eval'



File'/home/prehisto/public_html/sources/tempcode.php(1362) : eval()\'d code'
Line'7'
Function'evaluate'
Class'ocp_tempcode'
Type'->'
Objectobject
Args



File'/home/prehisto/public_html/sources/tempcode.php'
Line'1,362'
Function'eval'



File'/home/prehisto/public_html/sources/tempcode.php(1297) : eval()\'d code'
Line'41'
Function'evaluate'
Class'ocp_tempcode'
Type'->'
Objectobject
Args



File'/home/prehisto/public_html/sources/tempcode.php'
Line'1,297'
Function'eval'



File'/home/prehisto/public_html/sources/site.php'
Line'782'
Function'evaluate_echo'
Class'ocp_tempcode'
Type'->'
Objectobject
Args



File'/home/prehisto/public_html/cms/index.php'
Line'50'
Function'do_site'
Args


One other thing - If I go to Content management and edit the catalog entry (don't have to change anything) by just going there and saving it, I can open it from the site menu and no error occurs. But when I add a new entry from anywhere it repeats the whole process again.





Last edit: by friendly


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#57470
Avatar

Hello,

If I recall correct, this is something we fixed a while ago.

This may fix it for you:
Attachment
sources/hooks/systems/content_meta_aware/catalogue_entry.php
» Download: catalogue_entry.php (1.54 Kb, 85 downloads so far)





Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: