vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - Yet Another Awards System (https://vborg.vbsupport.ru/showthread.php?t=232684)

squidsk 11-05-2012 04:30 PM

Quote:

Originally Posted by SpikedRocker (Post 2378412)
I just stumbled upon a HTTP 500 error on the awards.php page. http://www.tns-gaming.com/awards.php

And its nothing I've added to the website today that is causing this error. The php is the same as i've installed it.

I visited the page and get no such error. An http 500 error usually refers to an unknown http error condition when communicating with the server.

CAG CheechDogg 11-06-2012 07:00 AM

Wow! I clicked on the link and I too got a 500 Internal Server Error and is not making me wonder if that is the reason I am also getting 500 Internal Server Errors on my site too.

Squidsk, after the patch I started getting these errors and I thought it was something to do with server overloads. I never had these errors in the past and I do get them regularly, up to 5-10 times a day now.

Can you please take a look, I can confirm I got that error when I visiting his link and like I said, I have gotten these myself on my site.

psico 11-06-2012 11:06 PM

Someone tested it on a big board?
I have a forum with 2.5MM users and 15MM posts.

squidsk 11-07-2012 03:07 PM

Quote:

Originally Posted by CAG CheechDogg (Post 2378787)
Wow! I clicked on the link and I too got a 500 Internal Server Error and is not making me wonder if that is the reason I am also getting 500 Internal Server Errors on my site too.

Squidsk, after the patch I started getting these errors and I thought it was something to do with server overloads. I never had these errors in the past and I do get them regularly, up to 5-10 times a day now.

Can you please take a look, I can confirm I got that error when I visiting his link and like I said, I have gotten these myself on my site.

I'd need the server logs for the time that someone gets one of the 500 errors to have any chance of figuring it out. I'm unable to re-create the problem, but that certainly doesn't mean it doesn't exist.

Any other details about when it happens would help. Are you logged in, what are you trying to do on the awards.php page, etc.

Quote:

Originally Posted by psico (Post 2378978)
Someone tested it on a big board?
I have a forum with 2.5MM users and 15MM posts.

The main board I use it on has 120K members and 12M posts and it works fine.

SpikedRocker 11-07-2012 11:36 PM

Quote:

Originally Posted by squidsk (Post 2379152)
I'd need the server logs for the time that someone gets one of the 500 errors to have any chance of figuring it out. I'm unable to re-create the problem, but that certainly doesn't mean it doesn't exist.

Any other details about when it happens would help. Are you logged in, what are you trying to do on the awards.php page, etc.

I'll try to pull some logs, but I do have the problem when I am logged in, when logged out no issues.

CAG CheechDogg 11-08-2012 09:57 AM

Quote:

Originally Posted by squidsk (Post 2379152)
I'd need the server logs for the time that someone gets one of the 500 errors to have any chance of figuring it out. I'm unable to re-create the problem, but that certainly doesn't mean it doesn't exist.

Any other details about when it happens would help. Are you logged in, what are you trying to do on the awards.php page, etc.

Squid it is very random, sometimes just going to the awards.php it happens, sometimes not even in the awards.php , this started happening after the update never had this problem before.

I thought it was something to do with server overload but my host said nothing like that has been an issue with my site.

They said it was caused by a php file.

If I come across any more information I will let you know.

SpikedRocker 11-11-2012 05:30 PM

The error being tossed is: [11-Nov-2012 18:19:30 UTC] PHP Fatal error: Cannot redeclare construct_depth_mark() (previously declared in C:\inetpub\wwwroot\forum2\awards.php:99) in C:\inetpub\wwwroot\forum2\includes\adminfunctions. php on line 1922

The fix I've done is just comment out the if statement of makemarkdepth starting at line 97 going through line 109.

Its my opinion that this bit of code is not needed as the function is now being declared by vB itself now.

squidsk 11-12-2012 01:48 AM

Quote:

Originally Posted by SpikedRocker (Post 2380310)
The error being tossed is: [11-Nov-2012 18:19:30 UTC] PHP Fatal error: Cannot redeclare construct_depth_mark() (previously declared in C:\inetpub\wwwroot\forum2\awards.php:99) in C:\inetpub\wwwroot\forum2\includes\adminfunctions. php on line 1922

The fix I've done is just comment out the if statement of makemarkdepth starting at line 97 going through line 109.

Its my opinion that this bit of code is not needed as the function is now being declared by vB itself now.

Its declared by vbulletin, always was, but isn't accessible to the awards.php page unless you're including inlcudes/adminfunctions.php, which YaAS does not do by default. One of your other plugins is making a connection to includes/adminfunctions.php that isn't there normally. The real problem is the mod is doing it badly. If you notice the code you commented out is surrounded by an if statement checking if the function exists, so if their code was working correctly the construct_depth_mark wouldn't be (re)declared by awards.php. The fact that its generating an error with the if statement there means there's a flaw in the code of another plugin you're using.

What other plugins do you have installed?

Abominus 11-12-2012 12:40 PM

Great mod! :)

Can you tell me how to get it straight in the middle of the postbit? :)

squidsk 11-12-2012 05:23 PM

A screenshot to show what you're talking about please.


All times are GMT. The time now is 09:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03429 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete