Recent Topics

1 Nov 29, 2018 17:07    


The "main" /var/www/html/b2evolution/index.html in my test invokes


// That's it, now let b2evolution do the rest! :)
require $inc_path.'';

and the then invokes

    $Timer->log_duration( 'SKIN DISPLAY' );

    // We probably don't want to return to the caller if we have displayed a skin...
    // That is useful if the caller implements a custom display but we still use skins for RSS/ Atom etc..


My issue, I'm trying to understand the logic that happens, and why??

My debugging shows the
/inc/_core/_misc.funcs.php app is somehow called/invoked, with the "shutdown" function being invoked.
I have no clue how/why it gets instantiated and I'd like to know how it gets triggered.

To debug the app. I added debug/print statements that write out to an external file when a file/app gets included/used, or when a func/method is invoked or exited.. This gives a fairly good track of the flow of the app.

But I'm flumoxed in this instance.

Any help would be greatly appreciated.


ps. I can easily post the complete debug data list that I have for the test.

ps. I seem to be running into a prob where my posts are only viewed by logged in users. How can I make the posts "public" for everyone to view????

thanks again!!

2 Nov 29, 2018 17:18

1) Could you say what version you are using
2) Provide a screen shot of where you see the problem
3) Regarding public accessibility :: Under Settings > General do you have as in the image

3 Nov 29, 2018 18:28

Hi "Amoun"

Sorry.. my bad. I'm not dealing with an "error".. rather I'm trying to understand the logic/flow of the app/code. So there's no "screenshot" to speak of.

I pasted the section of code for the "index.php" file, as a bit of the associated calls/funcs that I'm trying to get my head around.

As to the "public/private" issue.. this pertains to my questions/posts in this "support" forum... As far as I can tell, all my posts in the support forum are not public..


ps... ooops... the actual file....

/var/www/html/b2evolution/index.php <<< not html... sorry...

4 Nov 29, 2018 18:57

As to the "public/private" issue.. this pertains to my questions/posts in this "support" forum... As far as I can tell, all my posts in the support forum are not public..

Posts on this site are seen by the Community until some Admin/Moderator has checked and deemed them appropriate then they go Public

5 Nov 29, 2018 19:01

$Timer->log_duration( 'SKIN DISPLAY' );

Have you seen file [/inc/_core/model/_timer.class.php]

6 Nov 29, 2018 19:08


Ok. I think I've got the aha moment!

It appears that PHP has a
register_shutdown_function( 'foo' );

where a process can invoke a "function" to be used as a "shutdown" function/process sto be run on shutdown.

In this case
register_shutdown_function( 'shutdown' ); << which is called from the init_session process..

It appears that you can in fact have a number of register_shutdown_function( 'foo' ); throughout an app.. Not sure how the different funcs/processes would be run.. Probably a FIFO kind of process...

So this solves my issue for the "shutdown"...

On to my next issues..!

ps.. In case anyone cares/curious.. I'm looking to rip out the logic used to run/implement the user login/logout/lost password/register for the app... So I'm looking to rip out/extract the logic used to implement this function... which means getting rid of the blogging related logic/stuff...


Form is loading...