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.


not sure what this means...

Login / Search

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

Fan in training

installation went without error, but clicking on recommended setup link caused this.

This is an error that has been elevated to critical error status because it occurred during the primary error mechanism reporting system itself (possibly due to it occuring within the standard output framework). It may be masking a secondary error that occurred before this, but was never output - if so, it is likely strongly related to this one, thus fixing this will fix the other.
PHP NOTICE [8] Object of class ocp_tempcode could not be converted to int in sources/menus.php on line 181 (version: 8.1.1, PHP version: 5.1.6, URL: /adminzone/index.php?page=login&type=login)

Stack trace…

File -> '/var/www/ocp/sources/failure.php'
Line -> 675
Function -> 'die_html_trace'
Args -> array ( 0 => 'PHP NOTICE [8] Object of class ocp_tempcode could not be converted to int in sources/menus.php on line 181 (version: 8.1.1, PHP version: 5.1.6, URL: /adminzone/index.php?page=login&type=login)', )

File -> '/var/www/ocp/sources/global2.php'
Line -> 983
Function -> '_fatal_exit'
Args -> array ( 0 => 'PHP NOTICE [8] Object of class ocp_tempcode could not be converted to int in sources/menus.php on line 181', )

File -> '/var/www/ocp/sources/failure.php'
Line -> 217
Function -> 'fatal_exit'
Args -> array ( 0 => 'PHP NOTICE [8] Object of class ocp_tempcode could not be converted to int in sources/menus.php on line 181', )

File -> '/var/www/ocp/sources/global2.php'
Line -> 857
Function -> '_ocportal_error_handler'
Args -> array ( 0 => 'notice', 1 => 8, 2 => 'Object of class ocp_tempcode could not be converted to int', 3 => 'sources/menus.php', 4 => 181, )

File -> '/var/www/ocp/sources/menus.php'
Line -> 181
Function -> 'ocportal_error_handler'
Args -> array

File -> '/var/www/ocp/sources/menus.php'
Line -> 299
Function -> 'build_management_menu'
Args -> array ( )

File -> '/var/www/ocp/sources/blocks/side_stored_menu.php'
Line -> 86
Function -> 'build_stored_menu'
Args -> array ( 0 => 'dropdown', 1 => '_management', 2 => false, )

File -> '/var/www/ocp/sources/zones.php'
Line -> 703
Function -> 'run'
Class -> 'Block_side_stored_menu'
Object -> Block_side_stored_menu::__set_state(array( ))
Type -> '->'
Args -> array ( 0 => array ( 'param' => '_management', 'type' => 'dropdown', 'block' => 'side_stored_menu', ), )

File -> '/var/www/ocp/sources/tempcode.php'
Line -> 740
Function -> 'do_block'
Args -> array ( 0 => 'side_stored_menu', 1 => array ( 'param' => '_management', 'type' => 'dropdown', 'block' => 'side_stored_menu', ), )

File -> '/var/www/ocp/sources/tempcode.php'
Line -> 1017
Function -> 'handle_symbol_preprocessing'
Args -> array ( 0 => array ( 0 => array ( ), 1 => 0, 2 => 'BLOCK', 3 => array ( 0 => 'param=_management', 1 => 'type=dropdown', 2 => 'block=side_stored_menu', ), ), 1 => NULL, )

File -> '/var/www/ocp/sources/tempcode.php'
Line -> 829
Function -> 'handle_symbol_preprocessing'
Class -> 'ocp_tempcode'
Object -> object
Type -> '->'
Args -> array ( )

File -> '/var/www/ocp/sources/tempcode.php'
Line -> 1017
Function -> 'handle_symbol_preprocessing'
Args -> array

File -> '/var/www/ocp/sources/failure.php'
Line -> 310
Function -> 'handle_symbol_preprocessing'
Class -> 'ocp_tempcode'
Object -> object
Type -> '->'
Args -> array ( )

File -> '/var/www/ocp/sources/global2.php'
Line -> 943
Function -> '_generic_exit'
Args -> array

File -> '/var/www/ocp/sources/global2.php'
Line -> 429
Function -> 'warn_exit'
Args -> array

Function -> 'init__global2'
Args -> array ( )

File -> '/var/www/ocp/sources/global.php'
Line -> 316
Function -> 'call_user_func'
Args -> array ( 0 => 'init__global2', )

File -> '/var/www/ocp/sources/global.php'
Line -> 553
Function -> 'require_code'
Args -> array ( 0 => 'global2', )

File -> '/var/www/ocp/adminzone/index.php'
Line -> 48
Args -> array ( 0 => '/var/www/ocp/sources/global.php', )
Function -> 'require'
Back to the top
 
Posted
Rating:
#88303
Avatar

Hi,

I think this will fix it. I think this happens on just some PHP versions.

Attachment
sources/menus.php
» Download: menus.php (29 Kb, 69 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
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: