View Topics error in line 48: "session_pagestart()"
 
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_tinies
View previous topic :: View next topic  
Author Message
robb montgomery
Apprentice
Apprentice


Joined: 21 May 2004
Posts: 6
Location: chicago

PostPosted: Wed Oct 27, 2004 4:46 am    Post subject: View Topics error in line 48: "session_pagestart()" Reply with quote

Help. This is the error I get when click on the link to 24h, 48h or 72h.

Code:
Fatal error: Call to undefined function: session_pagestart() in /www/v/visualeditors/htdocs/mx/modules/mx_tinies/view_topics.php on line 48


I've read the support threads and still can't figure out what I need to adjust to get the 'View Topics' module to work.

The Welcome screen and Search modules work great - mucho thanks for this great mod! Well, the 24h, 48h links do not work.

My View topics page is http://visualeditors.com/mx/index.php?page=2

I'd love to see what viewtopics can do for my site http://www.visualeditors.com.

Thanks - Robb.
 
Back to top
View user's profile Send private message Visit poster's website
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Wed Oct 27, 2004 6:57 am    Post subject: Re: View Topics error in line 48: "session_pagestart()& Reply with quote

visualeditors.com footer wrote:
Presented by Robb Montgomery, powered by phpBB 2.0.6 2001-2004

Please, add the visible copyright notice for MX-System to your page footer.

Thank you

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
robb montgomery
Apprentice
Apprentice


Joined: 21 May 2004
Posts: 6
Location: chicago

PostPosted: Wed Oct 27, 2004 4:01 pm    Post subject: Re: View Topics error in line 48: "session_pagestart()& Reply with quote

It's been restored!
Changed to cool PHPBB theme and it looks like the footer.tpl didn't have MX info. Thanks.

Now. What's going on with that view topic?
 
Back to top
View user's profile Send private message Visit poster's website
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Wed Oct 27, 2004 6:52 pm    Post subject: Re: View Topics error in line 48: "session_pagestart()& Reply with quote

robb montgomery wrote:
Changed to cool PHPBB theme and it looks like the footer.tpl didn't have MX info.

No problem, it happens. Try to add a break (<br/>) in the copyright info. It now breaks your page footer (using IE6).

robb montgomery wrote:
Help. This is the error I get when click on the link to 24h, 48h or 72h.

Code:
Fatal error: Call to undefined function: session_pagestart() in /www/v/visualeditors/htdocs/mx/modules/mx_tinies/view_topics.php on line 48

robb montgomery wrote:
What's going on with that view topic?

Do you get the error from the Welcome block link (View latest: 24h 48h 72h)? The link is in the form of index.php?page=2&report_id=24h, so that suggests the View_Topics_Page parameter of the Welcome block is set to 2.

It is really strange. It shouldn't happen. session_pagestart() shouldn't be invoked (from view_topics.php) when running in block mode.

Do you have other blocks in that page? It would be nice to get access to that page (as guest or test account), if possible. Now I Can't. I get this message: "Log in to access this page. This page may also be restricted to members of a usergroup".

Please, try to create a new page, then add the ViewTopics block, then set the View_Topics_Page parameter of the Welcome block to the number of the newly created page. Works? Please, post a link (visible to guests if possible).

Do you have modified the MX Core or phpBB code?

Version of PHP? Are you using some PHP cache (check your phpinfo if not sure)?

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
robb montgomery
Apprentice
Apprentice


Joined: 21 May 2004
Posts: 6
Location: chicago

PostPosted: Thu Oct 28, 2004 5:33 am    Post subject: Re: View Topics error in line 48: "session_pagestart()& Reply with quote

OK for some reason - it works now.

http://visualeditors.com/mx/index.php?page=2

AllI did was change permissions to ALL for this page.

Verision is PHP 4.3.9

BTW, I'm on PHPbb 2.0.6 does that matter?

Fixed the footer.

Thanks!
 
Back to top
View user's profile Send private message Visit poster's website
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Thu Oct 28, 2004 5:50 am    Post subject: Re: View Topics error in line 48: "session_pagestart()& Reply with quote

Well, now I get something from my own "You must be logged in to view this report" Crying or Very sad Laughing

If you want to get rid of this message:
Code:
#
# ---[ OPEN ]----------
#
modules/mx_tinies/view_topics.php
#
# ---[ FIND ]----------
#
if( !$userdata['session_logged_in'] )
{
   message_die(GENERAL_ERROR, "You must be logged in to view this report.", 'mx_tinies');
}
#
# ---[ REPLACE WITH ]----------
#
//if( !$userdata['session_logged_in'] )
//{
//   message_die(GENERAL_ERROR, "You must be logged in to view this report.", 'mx_tinies');
//}
#
# ---[ SAVE ]----------
#

...the problem with session_pagestart() seems to be fixed (line 48 is above this message). Confused

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Thu Oct 28, 2004 6:08 am    Post subject: Re: View Topics error in line 48: "session_pagestart()& Reply with quote

robb montgomery wrote:
BTW, I'm on PHPbb 2.0.6 does that matter?

Try to upgrade to 2.0.10. Main reason: Security Issues. There are upgrade scripts available at phpBB site.

mx_tinies should work on 2.0.6. The function session_pagestart() is a standard phpBB function located in includes/sessions.php which is loaded by mx/common.php, which is loaded by view_topics.php when running in standalone mode (ie. not as a block). For instance, like this:
http://visualeditors.com/mx/modules/mx_tinies/view_topics.php?report_id=24h

So maybe that helps to debug the problem yourself. It is not only phpBB admin access required, but also FTP to be able to see the code and add some bits to debug, etc. Try it yourself. I can try to guide you, if necessary.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Thu Oct 28, 2004 6:13 am    Post subject: Re: View Topics error in line 48: "session_pagestart()& Reply with quote

robb montgomery wrote:
OK for some reason - it works now.

Well, there is still something weird when running view_topics.php in standalone mode. That shouldn't happen. Please, let me know if still need to debug this.

Cheers

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> mxBB Modules -> mxBB Module: mx_tinies All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum