These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

TEA (v1.2.1) - Member Management Mod for SMF 2, TeamSpeak 3 and Jabber

First post
Author
Shin Chogan
Federal Navy Academy
Gallente Federation
#541 - 2013-08-26 10:31:38 UTC
Ynot Eyob wrote:
When you run a standard check it takes 100 at a time, and you can see the Progress.


Not sure what you mean by this ... the cron job runs as many as it can in an allotted time period.

Quote:

Im constantly getting a error 500 when running the full reset check, and it stops. This Means i have a number of people not getting updated with right Corp / Alliance tags and nore get their Avatar updated.

Else great work, keeping the mod running


Hmmmm ... I'd not considered the full check when I put in all the protections for CCP's fail. ... now it's my fail Oops I'll take a look at that at some point.
Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#542 - 2013-08-26 10:58:44 UTC  |  Edited by: Ynot Eyob
Shin Chogan wrote:
Ynot Eyob wrote:
When you run a standard check it takes 100 at a time, and you can see the Progress.


Not sure what you mean by this ... the cron job runs as many as it can in an allotted time period.



Via SMF you have two options for checks. A simpel which takes 100 members at a time and update on screen so you can see Progress and a full reset, which you need if you change theme and want bigger avatars, or someone update their avatar in EVE, and you wana transfer that to the forum.

This Reset check takes all member at once which result tin a timeout and server 500 error.

Nisroc - Angel of Freedom Nisroc is known as "The Great Eagle".

foxden
Russian Specnaz
Red Alliance
#543 - 2013-08-26 13:10:28 UTC
Shin Chogan wrote:
foxden wrote:
hi,
Api key when checking the error.
http://i58.fastpic.ru/big/2013/0826/44/2d95a246fc2e55d1792e1b727e25b944.jpg

In this case, the log file is issued php is such a error.
http://i57.fastpic.ru/big/2013/0826/4e/ed185e9c5141e8038d5259e6bd4d684e.jpg

Tell me what the problem is and how to fix it?



You might want to use the current version ... 1.2.1 doesn't support the new style keys.
Where can I get the current version? Automatically download the update menu does not work. On Google, the latest 1.2.1
Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#544 - 2013-08-26 13:12:30 UTC  |  Edited by: Ynot Eyob
On page 24 i belive in this forum :p

https://forums.eveonline.com/default.aspx?g=posts&m=3410664#post3410664

Nisroc - Angel of Freedom Nisroc is known as "The Great Eagle".

Shin Chogan
Federal Navy Academy
Gallente Federation
#545 - 2013-08-26 14:41:14 UTC  |  Edited by: Shin Chogan
Ynot Eyob wrote:
Shin Chogan wrote:
Ynot Eyob wrote:
When you run a standard check it takes 100 at a time, and you can see the Progress.


Not sure what you mean by this ... the cron job runs as many as it can in an allotted time period.



Via SMF you have two options for checks. A simpel which takes 100 members at a time and update on screen so you can see Progress and a full reset, which you need if you change theme and want bigger avatars, or someone update their avatar in EVE, and you wana transfer that to the forum.

This Reset check takes all member at once which result tin a timeout and server 500 error.


Just to ensure we are on the same page you mean the 2 options :

Run Full Member Check Now
Reset All Names, Avatars to those Set with Main Character

and the 2nd one is the one that is causing the error ?

If this is the case then it does no API fetching at all ... and error 500 is a server error ... can you get me what is in your apache error logs when you get this ?
Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#546 - 2013-08-27 07:19:34 UTC
Im running Windows 2003 Server IIS
But ill check the log there, its never been an issues before.

Nisroc - Angel of Freedom Nisroc is known as "The Great Eagle".

Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#547 - 2013-08-27 07:31:16 UTC
Well this is a bit bull.

Nothing in Windows Event Log
Only error 500 in the IIS Log, but no indication of what is failing. Does PHP have its on log file?

Nisroc - Angel of Freedom Nisroc is known as "The Great Eagle".

Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#548 - 2013-08-27 07:32:36 UTC
Shin Chogan wrote:
Ynot Eyob wrote:
Shin Chogan wrote:
Ynot Eyob wrote:
When you run a standard check it takes 100 at a time, and you can see the Progress.


Not sure what you mean by this ... the cron job runs as many as it can in an allotted time period.



Via SMF you have two options for checks. A simpel which takes 100 members at a time and update on screen so you can see Progress and a full reset, which you need if you change theme and want bigger avatars, or someone update their avatar in EVE, and you wana transfer that to the forum.

This Reset check takes all member at once which result tin a timeout and server 500 error.


Just to ensure we are on the same page you mean the 2 options :

Run Full Member Check Now
Reset All Names, Avatars to those Set with Main Character

and the 2nd one is the one that is causing the error ?

If this is the case then it does no API fetching at all ... and error 500 is a server error ... can you get me what is in your apache error logs when you get this ?


You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
File: XXXXXXX\TEA.php
Line: 2408

Nisroc - Angel of Freedom Nisroc is known as "The Great Eagle".

Shin Chogan
Federal Navy Academy
Gallente Federation
#549 - 2013-08-27 08:35:03 UTC
Ynot Eyob wrote:
Shin Chogan wrote:
Ynot Eyob wrote:
Shin Chogan wrote:
Ynot Eyob wrote:
When you run a standard check it takes 100 at a time, and you can see the Progress.


Not sure what you mean by this ... the cron job runs as many as it can in an allotted time period.



Via SMF you have two options for checks. A simpel which takes 100 members at a time and update on screen so you can see Progress and a full reset, which you need if you change theme and want bigger avatars, or someone update their avatar in EVE, and you wana transfer that to the forum.

This Reset check takes all member at once which result tin a timeout and server 500 error.


Just to ensure we are on the same page you mean the 2 options :

Run Full Member Check Now
Reset All Names, Avatars to those Set with Main Character

and the 2nd one is the one that is causing the error ?

If this is the case then it does no API fetching at all ... and error 500 is a server error ... can you get me what is in your apache error logs when you get this ?


You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
File: XXXXXXX\TEA.php
Line: 2408


You didn't say which option you are clicking on ... the line of code you refer to is from the "Run Full member check now" but that is the one that does a group at a time which doesn't gel with what you said about it doing it all in one go.

Can you also let me know which version you are running just to make sure I'm looking at the right line of code.
Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#550 - 2013-08-27 08:40:14 UTC  |  Edited by: Ynot Eyob
Server Windows 2003 IIS 6
MySQL 5
PHP 5

TEA Your Version: 1.3.0 r179

SMF 2.0.5

I just updated the SMF Database to 2.0.5 as it was 2.0.2 but that didnt help.

Are the old TEA files from 169 cashed somewhere? Iv look at the TEA fil and the line its reffering to seems to be commented out.

Im clicking on: Reset All Names, Avatars to those Set with Main Character

The other Works.

Nisroc - Angel of Freedom Nisroc is known as "The Great Eagle".

Shin Chogan
Federal Navy Academy
Gallente Federation
#551 - 2013-08-27 08:44:13 UTC
Ynot Eyob wrote:
Server Windows 2003 IIS 6
MySQL 5
PHP 5

TEA Your Version: 1.3.0 r179

SMF 2.0.5

I just updated the SMF Database to 2.0.5 as it was 2.0.2 but that didnt help.


I really need to know exactly which link are you following.
Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#552 - 2013-08-27 08:45:19 UTC
Im clicking on: Reset All Names, Avatars to those Set with Main Character

Nisroc - Angel of Freedom Nisroc is known as "The Great Eagle".

Shin Chogan
Federal Navy Academy
Gallente Federation
#553 - 2013-08-27 08:49:53 UTC  |  Edited by: Shin Chogan
Ynot Eyob wrote:
Im clicking on: Reset All Names, Avatars to those Set with Main Character


Sorry ... missed that in your last reply :)

Which makes no sense as line 2408 isn't executed when you go to that link. Can you paste the url that appears in the url bar when you get the 500 error ?

Does the error occur immediately or does it take some time to happen ?

Can you post the line of code plus a few either side so I can verify what it thinks it is doing ?
Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#554 - 2013-08-27 08:55:54 UTC
Sorry this error is new

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
File: XXXXXX\TEA.php
Line: 2408

Thats when clicking First link as you wrote.
Run Full Member Check Now

The other link just come with a error 500 still but with noting in any error logs.

Nisroc - Angel of Freedom Nisroc is known as "The Great Eagle".

Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#555 - 2013-08-27 08:56:54 UTC
Shin Chogan
Federal Navy Academy
Gallente Federation
#556 - 2013-08-27 09:03:04 UTC  |  Edited by: Shin Chogan
I can't follow that link it needs a login :)

There should be an error log entry for all error 500's ... I know nothing of IIS but if it doesn't then I'd hope there was an option to increase the logging level coz without it I can't help. Is there anything in the logs in SMF ?

Can we concentrate on one problem at a time please ... lets track down what is happening with the first issue - the problem with the Reset all Names/Avatars one first then we can move onto the other one.
Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#557 - 2013-08-27 09:33:17 UTC  |  Edited by: Ynot Eyob
Right so i found a log file:

http://forum.obsidianfront.com/index.php?action=admin;area=tea;sa=checks;reset
Filter: Only show the errors with the same message
8: Undefined variable: name
Filter: Only show the errors from this fileFile: C:/XXXXX/Sources/TEA.php
Line: 2736

Quote:

function format_name($memID, $char, $type='name')
{
$chars = $this -> get_all_chars($memID);

$smfgroups = $this -> smf_groups($memID);
if(!empty($chars))
{
// $rules = $this -> smcFunc['db_query']('', "SELECT id, smf, ts, tst, nf FROM {db_prefix}tea_ts_rules");
// $rules = $this -> tea -> select($rules);
// if(!empty($rules))
// {
// foreach($rules as $r)
// {
// if(!empty($smfgroups))
// {
// foreach($smfgroups as $g)
// {
// if($r[1] == $g)
// {
// if(!isset($nf))
// $nf = $r[4];
// }
// }
// }
// }
// }
foreach($chars as $i => $ch)
{
if($ch[0] == $char)
$charinfo = $ch;
}
if(!empty($charinfo))
{
// if($nf)
// $name = $nf;
// else
if($type == 'title')
$name = $this -> modSettings["tea_tf"];
else
$name = $this -> modSettings["tea_nf"];
$name = str_replace('#at#', $charinfo[4], $name);
$name = str_replace('#ct#', $charinfo[1], $name);
$name = str_replace('#name#', $char, $name);
}
}
// if(strlen($name) > 30)
// {
// $name = substr($name, 0, 30);
// }
:2736 return $name;
}



And

Filter: Only show the error messages of this URLhttp://forum.obsidianfront.com/index.php?action=admin;area=tea;sa=checks;reset
Filter: Only show the errors with the same message
8: Undefined variable: count
Filter: Only show the errors from this fileFile: C:/XXXXXX/Sources/TEA.php
Line: 2799

Quote:

function pref_reset()
{
$user = $this -> smcFunc['db_query']('', "SELECT id, main FROM {db_prefix}tea_user_prefs");
$user = $this -> select($user);
if(!empty($user))
{
foreach($user as $u)
{
$memberID = $u[0];
$charid = $u[1];
$char = $this -> smcFunc['db_query']('', "SELECT name, corpid, corp, corp_ticker, allianceid, alliance, alliance_ticker FROM {db_prefix}tea_characters WHERE charid = ".$charid);
$char = $this -> select($char);
if(!empty($char))
{
$char = $char[0];
$name = $char[0];
if($this -> modSettings["tea_custom_title"])
{
$title = $this -> format_name($memberID, $name, 'title');
$this -> query("UPDATE {db_prefix}members SET usertitle = '".$title."' WHERE ID_MEMBER = ".$memberID);
}
if($this -> modSettings["tea_custom_name"])
{
$name = $this -> format_name($memberID, $name);
$this -> query("UPDATE {db_prefix}members SET real_name = '".mysql_real_escape_string($name)."' WHERE ID_MEMBER = ".$memberID);
}

if($this -> modSettings['tea_avatar_enabled'])
{
// if($this -> modSettings["tea_corptag_options"] == 2)
// {
// $name = explode("] ", $name, 2);
// $name = $name[1];
// }
// if(isset($this -> chars[$name]['charid']))
// {
require_once("Subs-Graphics.php");
$tea_avatar_size = !empty($this -> modSettings['tea_avatar_size']) ? $this -> modSettings['tea_avatar_size'] : 64;
downloadAvatar('http://image.eveonline.com/Character/'.$charid.'_'.$tea_avatar_size.'.jpg', $memberID, $tea_avatar_size, $tea_avatar_size);
// }
}
}
:2799 $count++;
}
}
return $count." User Prefs reset";
}

Nisroc - Angel of Freedom Nisroc is known as "The Great Eagle".

Shin Chogan
Federal Navy Academy
Gallente Federation
#558 - 2013-08-27 09:49:42 UTC  |  Edited by: Shin Chogan
Ynot Eyob wrote:
Right so i found a log file:

http://forum.obsidianfront.com/index.php?action=admin;area=tea;sa=checks;reset
Filter: Only show the errors with the same message
8: Undefined variable: name
Filter: Only show the errors from this fileFile: C:/XXXXX/Sources/TEA.php
Line: 2736


And

Filter: Only show the error messages of this URLhttp://forum.obsidianfront.com/index.php?action=admin;area=tea;sa=checks;reset
Filter: Only show the errors with the same message
8: Undefined variable: count
Filter: Only show the errors from this fileFile: C:/XXXXXX/Sources/TEA.php
Line: 2799


Right ... that looks like you've got some inconsistencies in your db but I don't think that they would create a 500 error that is reserved for more serious problems like the mysql one :). That said there could do with some initialization to avoid those errors.

Can you try this test version ... it should remove those errors but not fundamentally fix anything else :)

https://docs.google.com/file/d/0BwWRlORSHGGeVFdZaE1rRV9pcUE/edit?usp=sharing

You will also need to then go through your member list and look for people who's real name is blank :)
Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#559 - 2013-08-27 11:22:32 UTC
Ty,

Iv walked trough the database, and no Realnames was empty

Im still getting the same errors.

I think if i could fix this:

Check Full Member Now

With the error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
File: C:\XXXXXXX\TEA.php
Line: 2408

It might solve the rest.

Line 2408:
$users1 = $this -> smcFunc['db_query']('', "SELECT id_member, member_name, ID_GROUP FROM {db_prefix}members WHERE id_member <= ".$this -> lastid);

What i dont understant, but yet again im a .NET programmer not a php programmer, if i make an Echo on $this i get this:
API System Screwed : bool(false)

Now how would that fit in with "Where id_member <="

Would this mean, that im not getting an ID from the API, and it cannot compare and string with an integer?

This would then make sence with the error 500.

And then my last question would be, 169 worked, so if it cant pull an API now, whats changes from 169 that could make this happen.




Nisroc - Angel of Freedom Nisroc is known as "The Great Eagle".

Ynot Eyob
Nisroc Angels
The Obsidian Front - Reborn
#560 - 2013-08-27 11:37:14 UTC
Iv looked at the cron job log, and i can see this no longer constact the API eighter.. Grrrr

Nisroc - Angel of Freedom Nisroc is known as "The Great Eagle".