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.


Page view statistics shows stack trace

Login / Search

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

Community saint

Page view statistics shows stack trace

While viewing USAGE/SITE STATISTICS/PAGE VIEW STATISTICS I came across this ERROR with STACK TRACE. The stack trace is the same (except for the final page file)for each of these pages listed below:

404.txt
start.txt
login.php
join.php
rules.txt
recommend_help.txt
panel_top.txt
feedback.txt
recommend.php
exp_test_pg2.txt
keymap.txt
privacy.txt

An error has occurred

PHP NOTICE [8] Undefined offset: 2 in /home/prehisto/public_html/adminzone/pages/modules/admin_stats.php on line 1003 (version: 4.3.2, PHP version: 5.2.11, URL: /~prehisto/adminzone/index.php?page=admin_stats&type=_page&iscreen=pages%2Fcomcode%2FEN%2F404.txt)

Here is the stack trace:

Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check ocPortal website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File'/home/prehisto/public_html/sources/failure.php'
Line'557'
Function'get_html_trace'
Args

File'/home/prehisto/public_html/sources/global2.php'
Line'862'
Function'_fatal_exit'
Args'PHP NOTICE [8] Undefined offset: 2 in /home/prehisto/public_html/adminzone/pages/modules/admin_stats.php on line 1003'


File'/home/prehisto/public_html/sources/failure.php'
Line'156'
Function'fatal_exit'
Args'PHP NOTICE [8] Undefined offset: 2 in /home/prehisto/public_html/adminzone/pages/modules/admin_stats.php on line 1003'

false


File'/home/prehisto/public_html/sources/global2.php'
Line'725'
Function'_ocportal_error_handler'
Args'notice'

8

'Undefined offset: 2'

'/home/prehisto/public_html/adminzone/pages/modules/admin_stats.php'

1003


File'/home/prehisto/public_html/adminzone/pages/modules/admin_stats.php'
Line'1,003'
Function'ocportal_error_handler'
Args

File'/home/prehisto/public_html/adminzone/pages/modules/admin_stats.php'
Line'182'
Function'show_page'
Class'Module_admin_stats'
Type'->'
ObjectModule_admin_stats::__set_state(array( ))
Args

File'/home/prehisto/public_html/sources/zones.php'
Line'330'
Function'run'
Class'Module_admin_stats'
Type'->'
ObjectModule_admin_stats::__set_state(array( ))
Args

File'/home/prehisto/public_html/sources/site.php'
Line'935'
Function'load_module_page'
Args'adminzone/pages/modules/admin_stats.php'

'admin_stats'


File'/home/prehisto/public_html/sources/site.php'
Line'727'
Function'request_page'
Args'admin_stats'

true


File'/home/prehisto/public_html/adminzone/index.php'
Line'51'
Function'do_site'
Args





Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#59464
Avatar

Hi,

This should fix the problem…

Attachment
adminzone/pages/modules/admin_stats.php
» Download: admin_stats.php (59 Kb, 128 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
 
Posted
Rating:
#59480
Avatar

Community saint

I added the file and now I am getting this stack:

An error has occurred

PHP WARNING [2] Division by zero in /home/prehisto/public_html/adminzone/pages/modules/admin_stats.php on line 1020 (version: 4.3.2, PHP version: 5.2.11, URL: /~prehisto/adminzone/index.php?page=admin_stats&type=_page&iscreen=pages%2Fmodules%2Flogin.php)

Here is the stack trace:

Below is a stack trace revealing the state the software was in when the error occurred. If this represents a bug in the unmodified software, you may want to check ocPortal website for a fix, and if there isn't one, report this as a bug. Please note that merely posting a stack trace is not sufficient for us to solve your problem; the stack trace is just an aid that presents us with additional information. We still need to know the error message, what you tried to do, how you tried to do it, version numbers, and any other appropriate information.
We apologise for this problem and if it's a bug we hope you will work with us so that we can fix it for you promptly.

File'/home/prehisto/public_html/sources/failure.php'
Line'557'
Function'get_html_trace'
Args

File'/home/prehisto/public_html/sources/global2.php'
Line'862'
Function'_fatal_exit'
Args'PHP WARNING [2] Division by zero in /home/prehisto/public_html/adminzone/pages/modules/admin_stats.php on line 1020'


File'/home/prehisto/public_html/sources/failure.php'
Line'156'
Function'fatal_exit'
Args'PHP WARNING [2] Division by zero in /home/prehisto/public_html/adminzone/pages/modules/admin_stats.php on line 1020'

false


File'/home/prehisto/public_html/sources/global2.php'
Line'725'
Function'_ocportal_error_handler'
Args'warning'

2

'Division by zero'

'/home/prehisto/public_html/adminzone/pages/modules/admin_stats.php'

1020


File'/home/prehisto/public_html/adminzone/pages/modules/admin_stats.php'
Line'1,020'
Function'ocportal_error_handler'
Args

File'/home/prehisto/public_html/adminzone/pages/modules/admin_stats.php'
Line'182'
Function'show_page'
Class'Module_admin_stats'
Type'->'
ObjectModule_admin_stats::__set_state(array( ))
Args

File'/home/prehisto/public_html/sources/zones.php'
Line'330'
Function'run'
Class'Module_admin_stats'
Type'->'
ObjectModule_admin_stats::__set_state(array( ))
Args

File'/home/prehisto/public_html/sources/site.php'
Line'935'
Function'load_module_page'
Args'adminzone/pages/modules/admin_stats.php'

'admin_stats'


File'/home/prehisto/public_html/sources/site.php'
Line'727'
Function'request_page'
Args'admin_stats'

true


File'/home/prehisto/public_html/adminzone/index.php'
Line'51'
Function'do_site'
Args



Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#59500
Avatar

Hi,

Could you try this one please.

Attachment
admin_stats.php
» Download: admin_stats.php (59 Kb, 116 downloads so far)


It looks like your site hasn't got any keyword hits from Google yet, but it has got some hits from Google that look like one, so it's getting a bit confused.



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

Community saint

Thanks Chris that appears to have gotten rid of the stack trace error.


Art and Imagination
of David L Friend

http://davidlfriend.com

  My Art Gallery
powered by ocPortal
Back to the top
 
Posted
Rating:
#77873
Avatar

Fan in training

Chris I am getting this error:


20-Dec-2011 06:20:20ocPortalPHP WARNING [2] Division by zero in sources/ocf_topicview.php on line 81 (version: 7.1.5, PHP version: 5.2.17, URL: /forum/index.php?page=topicview&type=first_unread&id=2&keep_no_swfupload=1)
20-Dec-2011 06:20:20PHP WarningDivision by zero in sources/ocf_topicview.php on line 81
20-Dec-2011 05:44:48ocPortalPHP WARNING [2] Division by zero in sources/ocf_topicview.php on line 36 (version: 7.1.5, PHP version: 5.2.17, URL: /forum/index.php?page=topicview&type=findpost&id=5&keep_no_swfupload=1&redirected=1)
20-Dec-2011 05:44:48PHP WarningDivision by zero in sources/ocf_topicview.php on line 36
20-Dec-2011 05:32:20ocPortalPHP WARNING [2] Division by zero in sources/ocf_topicview.php on line 36 (version: 7.1.5, PHP version: 5.2.17, URL: /forum/index.php?page=topicview&type=findpost&id=4&keep_no_swfupload=1&redirected=1)
20-Dec-2011 05:32:20PHP WarningDivision by zero in sources/ocf_topicview.php on line 36
20-Dec-2011 04:31:32ocPortalPHP WARNING [2] Division by zero in sources/ocf_topicview.php on line 36 (version: 7.1.5, PHP version: 5.2.17, URL: /forum/index.php?page=topicview&type=findpost&id=3&keep_no_swfupload=1&redirected=1)
20-Dec-2011 04:31:32PHP WarningDivision by zero in sources/ocf_topicview.php on line 36
20-Dec-2011 04:28:47ocPortalPHP WARNING [2] Division by zero in sources/ocf_topicview.php on line 81 (version: 7.1.5, PHP version: 5.2.17, URL: /forum/index.php?page=topicview&type=first_unread&id=2&keep_no_swfupload=1)
20-Dec-2011 04:28:47PHP WarningDivision by zero in sources/ocf_topicview.php on line 81
20-Dec-2011 04:26:55ocPortalPHP WARNING [2] Division by zero in sources/ocf_topicview.php on line 36 (version: 7.1.5, PHP version: 5.2.17, URL: /forum/index.php?page=topicview&type=findpost&id=2&keep_no_swfupload=1&redirected=1)
20-Dec-2011 04:26:55PHP WarningDivision by zero in sources/ocf_topicview.php on line 36
Back to the top
 
Posted
Rating:
#77890
Avatar

Hi,

Did you set the 'Posts per page' config option to zero or blank?

It breaks down the maths. We'll suppress the errors but 0 makes no sense as a setting so please change.


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

Fan in training

Thanks alot, i was stuck trying to figure out what I was doing wrong
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: