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.


Bail out on Polls

Login / Search

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

Fan in action

When clicking "view" causes critical error bailout

Hi, I'm using Opera & Firefox to test this, but clicking "View" on a polls produces; Im using OCPortal 9 beta3 btw

Critical error – bailing out
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 WARNING [2] array_key_exists() expects parameter 2 to be array, null given in sources/zones.php on line 647 (version: 9 beta3, PHP version: 5.3.13, URL: /index.php?page=polls&type=view&id=did-everyone-watch-the)
Stack trace…

File -> '/home/rbcjhubc/public_html/sources/failure.php'
 Line -> 693
 Function -> 'die_html_trace'
 Args -> array ( 0 => 'PHP WARNING [2] array_key_exists() expects parameter 2 to be array, null given in sources/zones.php on line 647 (version: 9 beta3, PHP version: 5.3.13, URL: /index.php?page=polls&type=view&id=did-everyone-watch-the)', )

File -> '/home/rbcjhubc/public_html/sources/global2.php'
 Line -> 1012
 Function -> '_fatal_exit'
 Args -> array ( 0 => 'PHP WARNING [2] array_key_exists() expects parameter 2 to be array, null given in sources/zones.php on line 647', )

File -> '/home/rbcjhubc/public_html/sources/failure.php'
 Line -> 220
 Function -> 'fatal_exit'
 Args -> array ( 0 => 'PHP WARNING [2] array_key_exists() expects parameter 2 to be array, null given in sources/zones.php on line 647', )

File -> '/home/rbcjhubc/public_html/sources/global2.php'
 Line -> 875
 Function -> '_ocportal_error_handler'
 Args -> array ( 0 => 'warning', 1 => 2, 2 => 'array_key_exists() expects parameter 2 to be array, null given', 3 => 'sources/zones.php', 4 => 647, )

Function -> 'ocportal_error_handler'
 Args -> array

File -> '/home/rbcjhubc/public_html/sources/zones.php'
 Line -> 647
 Function -> 'array_key_exists'
 Args -> array ( 0 => 'cache', 1 => NULL, )

File -> '/home/rbcjhubc/public_html/site/pages/modules/polls.php'
 Line -> 353
 Function -> 'do_block'
 Args -> array ( 0 => 'main_poll', )

File -> '/home/rbcjhubc/public_html/site/pages/modules/polls.php'
 Line -> 250
 Function -> 'view'
 Class -> 'Module_polls'
 Object -> Module_polls::__set_state(array( ))
 Type -> '->'
 Args -> array ( )

File -> '/home/rbcjhubc/public_html/sources/zones.php'
 Line -> 425
 Function -> 'run'
 Class -> 'Module_polls'
 Object -> Module_polls::__set_state(array( ))
 Type -> '->'
 Args -> array ( )

File -> '/home/rbcjhubc/public_html/sources/site.php'
 Line -> 838
 Function -> 'load_module_page'
 Args -> array ( 0 => 'site/pages/modules/polls.php', 1 => 'polls', )

File -> '/home/rbcjhubc/public_html/sources/site.php'
 Line -> 629
 Function -> 'request_page'
 Args -> array ( 0 => 'polls', 1 => true, )

File -> '/home/rbcjhubc/public_html/index.php'
 Line -> 97
 Function -> 'do_site'
 Args -> array ( )

In addition, using either browser, you cannot vote. You select the appropriate answer, click "Vote" and nothing happens other than the radio boxes are all false value.

Be gentle, I'm new to this :)
Back to the top
 
Posted
Item has a rating of 5 (Liked by RoyBoy)  
Rating:
#89414
Avatar

This should be fixed now, I think it may be v9-gold that fixed it. The bug also affected v8.1.3 I think.


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
 
Posted
Rating:
#89423
Avatar

Community saint

Chris Graham said

This should be fixed now, I think it may be v9-gold that fixed it. The bug also affected v8.1.3 I think.

Is there a fix for v8.1.3?

Steve
Back to the top
 
Posted
Rating:
#89425
Avatar



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
 
Posted
Rating:
#89426
Avatar

Community saint

Thanks, Chris.

Looking in the tracker for the fix, that one jumped out at me a few times, but I ignored it.  :lol:

Steve
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: