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.


Critical Stack Trace Error

Login / Search

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

Well-settled

I'm getting the following Stack Trace error when I click on a specific page link in my Wiki.  The same error occurs whether clicking on the link in the tree view, or from the "parent" page.

I just upgraded to 9.02 tonight, but haven't tried viewing this page in a while, so no idea if they are related.

Code


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 NOTICE [8] Undefined offset: -1 in sources/comcode_renderer.php on line 2078 (version: 9.0.2, PHP version: 5.3.13, URL: /pg/cedi/misc?id=1/2/56/58/205)

Stack trace…

File -> '/home/seeingsh/public_html/bawiki.com/sources/failure.php'
Line -> 693
Function -> 'die_html_trace'
Args -> array ( 0 => 'PHP NOTICE [8] Undefined offset: -1 in sources/comcode_renderer.php on line 2078 (version: 9.0.2, PHP version: 5.3.13, URL: /pg/cedi/misc?id=1/2/56/58/205)', )

File -> '/home/seeingsh/public_html/bawiki.com/sources/global2.php'
Line -> 1009
Function -> '_fatal_exit'
Args -> array ( 0 => 'PHP NOTICE [8] Undefined offset: -1 in sources/comcode_renderer.php on line 2078', )

File -> '/home/seeingsh/public_html/bawiki.com/sources/failure.php'
Line -> 220
Function -> 'fatal_exit'
Args -> array ( 0 => 'PHP NOTICE [8] Undefined offset: -1 in sources/comcode_renderer.php on line 2078', )

File -> '/home/seeingsh/public_html/bawiki.com/sources/global2.php'
Line -> 872
Function -> '_ocportal_error_handler'
Args -> array ( 0 => 'notice', 1 => 8, 2 => 'Undefined offset: -1', 3 => 'sources/comcode_renderer.php', 4 => 2078, )

File -> '/home/seeingsh/public_html/bawiki.com/sources/comcode_renderer.php'
Line -> 2078
Function -> 'ocportal_error_handler'
Args -> array

File -> '/home/seeingsh/public_html/bawiki.com/sources/comcode_text.php'
Line -> 1379
Function -> '_do_tags_comcode'
Args -> array

File -> '/home/seeingsh/public_html/bawiki.com/sources/comcode_renderer.php'
Line -> 201
Function -> 'comcode_text_to_tempcode'
Args -> array

File -> '/home/seeingsh/public_html/bawiki.com/sources/comcode.php'
Line -> 189
Function -> '_comcode_to_tempcode'
Args -> array

File -> '/home/seeingsh/public_html/bawiki.com/sources/lang3.php'
Line -> 296
Function -> 'comcode_to_tempcode'
Args -> array

File -> '/home/seeingsh/public_html/bawiki.com/sources/lang.php'
Line -> 1071
Function -> '_lang_remap'
Args -> array

File -> '/home/seeingsh/public_html/bawiki.com/sources/lang.php'
Line -> 1052
Function -> 'lang_remap'
Args -> array

File -> '/home/seeingsh/public_html/bawiki.com/sources/lang3.php'
Line -> 401
Function -> 'lang_remap_comcode'
Args -> array

File -> '/home/seeingsh/public_html/bawiki.com/sources/lang.php'
Line -> 1164
Function -> 'parse_translated_text'
Args -> array

File -> '/home/seeingsh/public_html/bawiki.com/site/pages/modules/cedi.php'
Line -> 447
Function -> 'get_translated_tempcode'
Args -> array ( 0 => 2251, )

File -> '/home/seeingsh/public_html/bawiki.com/site/pages/modules/cedi.php'
Line -> 352
Function -> 'page'
Class -> 'Module_cedi'
Object -> Module_cedi::__set_state(array( ))
Type -> '->'
Args -> array ( )

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

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

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

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

Back to the top
 
Posted
Rating:
#91237
Avatar

:(. Are you able to tell me what the precise header structure is for the page content?

e.g.

1
2
2
3
2
1


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:
#91239
Avatar

Well-settled

I'm not sure I understand what you are asking for.  Here is the link to the page:

http://www.bawiki.com/pg/cedi/misc?id=1/2/56/58/205

And another one I found:
http://www.bawiki.com/pg/cedi/misc?id=1/3/213/53

And another one:
Requirements Gathering and Elicitation - BAWiki
Back to the top
 
Posted
Rating:
#91240
Avatar

I mean, how are the titles/headers in the Comcode/HTML for that Wiki+ page?

I fixed a bug in table-of-contents generation, but it seems to have triggered this, so I need an exact test case of what Comcode will cause it so that I can develop a test library.


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:
#91242
Avatar

Well-settled

Unfortunately, I can't tell you.  I can't view the pages even through the Content Management admin menu.  And it's been a while since I wrote any of these.  At least 2 of those should have been moderately long and included tables of contents, but the exact layout structure isn't something I can remember.  Sorry.  I've been evolving the content of the wiki pages over time as I try to add more detailed info and use better layouts, so it's not like I have had a single consistent layout up to now.

Any suggestions on how I could get you the info you need?
Back to the top
 
Posted
Rating:
#91244
Avatar

You could temporarily restore sources/comcode_renderer.php from v9.0.1 (manual installer will have it).


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:
#91246
Avatar

Well-settled

It must be something else Chris.  I just loaded the 9.01 version of comcode_renderer, yet I'm still getting the stack errors.

Just to try and make sure I went into the Cleanup Tools and cleared:

Comcode Field
Language
Template
and Block caches
Back to the top
 
Posted
Rating:
#91247
Avatar

Well-settled

Actually, I just realized it's probably not the 9.01 file.  I thought I had downloaded 9.01, but the tar file I have is dated 6-30-2012, so that's probably a version 8 I'm guessing?

When I went to the downloads page, all that was offered was 9.02 though.
Back to the top
 
Posted
Rating:
#91248
Avatar

Full archive:
Root - ocPortal.com


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:
#91250
Avatar

Well-settled

OK, that worked.  I loaded the 9.01 Comcode renderer and you can see the page layouts for all 3 pages above.

I don't see a single trend other than having a TOC at the start of the page, but there were other pages with TOC at the top where this did not happen.  For reference, the page below was showing correctly with the 9.02 file:

Context Diagrams - BAWiki

Unfortunately, it's nearly 1am (or midnight where you are) and I need to crash.  I'll check back tomorrow.  Have a great day.
Back to the top
 
Posted
Rating:
#91267
Avatar

So this page:
Requirements Gathering and Elicitation - BAWiki

has a heading order of:

2
3
2
3
4
4
4
2
3
2
1
1

As you can see logically there is an issue, which is why the crash was happening. The previous bug fix I did for you fixed a processing error, but introduced the crash. I'll now see if I can build a test set of scenarios and expectations and make a TOC parser that handles them all correctly.


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:
#91276
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:
#91313
Avatar

Well-settled

Thanks Chris.  That seems to have worked.  Although it is interesting how the table now effectively ignores the actual Heading level assigned and starts at Heading 1 no matter what (for TOC display, not text display).  It's not a complaint, just an comment on a solution I would not have thought of.  :)

And while it is 99.99999% likely those odd choices of levels are due to my laziness, there is at least a chance one or two of them may be due to what happens when a wiki page is previewed or saved.  I have noticed that when I preview or save that often blank spacing lines I have inserted may be deleted and I have seen Headings change level (always down 1 notch, so from 1 to 2, 2 to 3, etc).

The blank line removal was occasionally irritating, but I didn't think much that it was anything other than a minor display glitch, so I never bothered to open a ticket.  Especially since I haven't seen it happen consistently in any specific circumstance.

It's just something else for you to keep an eye out for if you feel like it.  Thanks again!  :thumbs:
Back to the top
 
Posted
Rating:
#91314
Avatar

Yeah, the heading levels aren't quite ignored, they control the relative depth/order – but due to the potential for jumps and gaps, they don't directly correspond to the levels in the TOC. Not a simple algorithm to get your head around.

Regarding Comcode lines, it sounds like the HTML to Comcode conversion option may be on, which we now recommend be left off.


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:
#91318
Avatar

Well-settled

Thanks.  I did have that option on.  I'll turn it off and see if I notice a difference.  Much appreciated.  

Have a great weekend.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: