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
Bumse
Caldari Provisions
Caldari State
#441 - 2013-05-29 13:56:23 UTC
Got it kinda working by starting to manually delete entries in the *_tea_characters table. I'll clean it more properly later on.

But, one thing that has been starting to happen after the upgrade to r175 is that a few director accounts doesn't get the applied groups like they should. Some characters in the same corp do, but not all.
Retrieving the CharacterSheet through for example EVEMons API-tester shows me that they indeed are directors, but the rule doesn't seems to match anyway. The exact same rules apply for those accounts who does work as for those who doesnt get all the access that they should.

Any tips&tricks? :)

Bring EVE into the 21st century, add some basic chat features IRC-clients have had since the beginning of the 1990's. Get proper chat hilighting into EVE! https://forums.eveonline.com/default.aspx?g=posts&t=97035

Metralha100
The Scope
Gallente Federation
#442 - 2013-06-05 03:43:25 UTC  |  Edited by: Metralha100
I am trying to use the version from the repository, TEA 1.3.0 r169. I change the URLs to get the apis from https on both php pages. Is there anything else that I need to do? I am not able to create rules or to get my chars from API. It says "Error ()".

This is a fresh install, I am going to create a new corporation and I am setting up the website/forum now and this mod would be awesome.

I am going to try 175 build now.
Metralha100
The Scope
Gallente Federation
#443 - 2013-06-05 12:33:19 UTC
I still can`t get to work with 175. I have now the registration page saying "API System Screwed - Can't fetch Toons : bool(false)"

And the rules page saying:

Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /volume1/web/forumtest/Sources/TEA.php:1810 Stack trace: #0 /volume1/web/forumtest/Sources/TEA.php(1810): SimpleXMLElement->__construct('') #1 /volume1/web/forumtest/Sources/TEA.php(1437): TEA->settings_rules('http://diskstat...') #2 /volume1/web/forumtest/Sources/TEA.php(3203): TEA->Settings('http://diskstat...') #3 /volume1/web/forumtest/Sources/Admin.php(590): ModifyTEASettings() #4 [internal function]: AdminMain() #5 /volume1/web/forumtest/index.php(152): call_user_func('AdminMain') #6 {main} thrown in /volume1/web/forumtest/Sources/TEA.php on line 1810

Anyone how to solve this?
Siphix Adestur
Doomheim
#444 - 2013-06-07 02:07:13 UTC
Hey guys. I recently started getting the errors below and I don't know why. Any fixes?

http://krakenalliance.net/index.php?action=profile;area=tea;save8: Undefined variable: bluesFile: /home/eddy4002/public_html/Sources/TEAC.php
Line: 483

http://krakenalliance.net/index.php?action=profile;area=tea;save8: Undefined variable: bluesFile: /home/eddy4002/public_html/Sources/TEAC.php
Line: 483

http://krakenalliance.net/index.php?action=profile;area=tea;save8: Undefined index: descriptionFile: /home/eddy4002/public_html/Themes/default/languages/menu_language/main.english.php (generic_menu_sidebar_above sub template - eval?)
Line: 303

http://krakenalliance.net/index.php?action=profile;area=tea;save8: Undefined index: titleFile: /home/eddy4002/public_html/Themes/default/languages/menu_language/main.english.php (generic_menu_sidebar_above sub template - eval?)
Line: 291
Shin Chogan
Federal Navy Academy
Gallente Federation
#445 - 2013-06-08 10:01:23 UTC  |  Edited by: Shin Chogan
Gah .. sorry ... I've been relying on the little flag to tell me when there are new posts and it would appear this was a mistake.

Sorry the last couple of months have been kinda hectic ... I've got a bunch of fixes that need to get released. Unfortunately I've contaminated the code with extra stuff that is just for me :) so I need to sanitise the code again :(

I'll work on getting a new release out over the next week.

Bumse wrote:

But, one thing that has been starting to happen after the upgrade to r175 is that a few director accounts doesn't get the applied groups like they should. Some characters in the same corp do, but not all.
Retrieving the CharacterSheet through for example EVEMons API-tester shows me that they indeed are directors, but the rule doesn't seems to match anyway. The exact same rules apply for those accounts who does work as for those who doesnt get all the access that they should.

Any tips&tricks? :)


was this a one off ... ie if you force a pull for their api it all resolves itself ?
If so then I had this occur to me once recently for some directors. I'm guessing some kind of CCP api glitch ? *shrug*

Siphix Adestur wrote:
Hey guys. I recently started getting the errors below and I don't know why. Any fixes?

http://krakenalliance.net/index.php?action=profile;area=tea;save8: Undefined variable: bluesFile: /home/eddy4002/public_html/Sources/TEAC.php
Line: 483

http://krakenalliance.net/index.php?action=profile;area=tea;save8: Undefined index: descriptionFile: /home/eddy4002/public_html/Themes/default/languages/menu_language/main.english.php (generic_menu_sidebar_above sub template - eval?)
Line: 303

http://krakenalliance.net/index.php?action=profile;area=tea;save8: Undefined index: titleFile: /home/eddy4002/public_html/Themes/default/languages/menu_language/ (generic_menu_sidebar_above sub template - eval?)
Line: 291


Not sure on this ... from your wording I'm assuming nothing has changed and these errors didn't happen before ?
Which version are you running ?

The first 1 looks like it is related to the bug regarding getting standings for a blue/reds list.
the next to look like they are variables missing from the theme templates this mod doesn't touch that file so I'm not sure why that error has arisen.
Treiq
Brave Newbies Inc.
Brave Collective
#446 - 2013-06-09 21:12:21 UTC  |  Edited by: Treiq
Hey! Love this script, thanks guys.

Anyways, i have been having issues with a corp that left the alliance, and joined us again. The corp standing are not updating properly.


/TEA/TEA_TS_Cron_Access.php
/TEA/TEA_TS_Cron_Names.php
/TEA/TEA_Cron.php

I'm running these scripts as cron jobs, the TEA_Cron.php is for standings right? I'm running that every hour. I tried to run the TEA_Cron.php manually, but the standing is not updating. Is there a way to manually update this?

Using 1.3.0 r175

EDIT: Checked the status page, Standings Last Updated: 16:00 Fri 07 Jun 13 (GMT)
How often should the standings update?

EDIT2: I derped, I had changed the API key that TEA was using.

EDIT3: How do you force an Alliance Corp List update?
Shin Chogan
Federal Navy Academy
Gallente Federation
#447 - 2013-06-10 00:06:48 UTC
Treiq wrote:


EDIT3: How do you force an Alliance Corp List update?



It will be triggered once every 24 hours as part of the TEA_Cron.php process.
If you want to know exactly when it will next update look in TEA/eve_corplist.php ... the time variable at the top is the unixtime of when it was last generated ... you could of course look at the timestamp on the file too :)
Treiq
Brave Newbies Inc.
Brave Collective
#448 - 2013-06-10 01:18:56 UTC
Shin Chogan wrote:
Treiq wrote:


EDIT3: How do you force an Alliance Corp List update?



It will be triggered once every 24 hours as part of the TEA_Cron.php process.
If you want to know exactly when it will next update look in TEA/eve_corplist.php ... the time variable at the top is the unixtime of when it was last generated ... you could of course look at the timestamp on the file too :)



Thank you Sir! Problem resolved then :)
Reileen Kawahara
Bio-Tech Research
#449 - 2013-06-25 19:49:33 UTC
I am using version 1.75 and getting a lot of problems where members try and register there API and for some reason errors out.

When they go back to try again they get the message saying the character is in use.

When I check the Characters database they are there and i have to remove it for them to do again.

Has anyone experienced this problem and is there a fix?

Thanks
Zaepho
Goosewarms
Tactical Hunters and Gatherers
#450 - 2013-06-27 18:55:17 UTC
@Shin,
I don't suppose there's any hope of getting yourself control over the goolge code project (or at least committer access) so it's easier to keep up with the source and such?
Bumse
Caldari Provisions
Caldari State
#451 - 2013-06-27 20:38:24 UTC
Reileen Kawahara wrote:
I am using version 1.75 and getting a lot of problems where members try and register there API and for some reason errors out.

When they go back to try again they get the message saying the character is in use.

When I check the Characters database they are there and i have to remove it for them to do again.

Has anyone experienced this problem and is there a fix?

Thanks


Very _VERY_ much so. I'm tackling with this daily and it's becoming quite the pain in the ass. It seems to be re-occuring from time to time as well. Accounts that has been fixed are getting the issue again and so on. Clearing the character table does not help :/

Bring EVE into the 21st century, add some basic chat features IRC-clients have had since the beginning of the 1990's. Get proper chat hilighting into EVE! https://forums.eveonline.com/default.aspx?g=posts&t=97035

Bumse
Caldari Provisions
Caldari State
#452 - 2013-06-27 20:39:50 UTC  |  Edited by: Bumse
Quote:
was this a one off ... ie if you force a pull for their api it all resolves itself ?
If so then I had this occur to me once recently for some directors. I'm guessing some kind of CCP api glitch ? *shrug*


Thanks for getting back!
Unfortunately a full member check "Change profile" check on the account does not resolve the issue. It sticks harder than ... well, Jim Carrey in Cable Guy :)

Bring EVE into the 21st century, add some basic chat features IRC-clients have had since the beginning of the 1990's. Get proper chat hilighting into EVE! https://forums.eveonline.com/default.aspx?g=posts&t=97035

Shin Chogan
Federal Navy Academy
Gallente Federation
#453 - 2013-06-30 01:04:55 UTC
Bumse wrote:
Quote:
was this a one off ... ie if you force a pull for their api it all resolves itself ?
If so then I had this occur to me once recently for some directors. I'm guessing some kind of CCP api glitch ? *shrug*


Thanks for getting back!
Unfortunately a full member check "Change profile" check on the account does not resolve the issue. It sticks harder than ... well, Jim Carrey in Cable Guy :)



Just another thought ... check they have both of the character info's checked in their api.
Shin Chogan
Federal Navy Academy
Gallente Federation
#454 - 2013-06-30 01:11:26 UTC  |  Edited by: Shin Chogan
Reileen Kawahara wrote:
I am using version 1.75 and getting a lot of problems where members try and register there API and for some reason errors out.

When they go back to try again they get the message saying the character is in use.

When I check the Characters database they are there and i have to remove it for them to do again.

Has anyone experienced this problem and is there a fix?

Thanks



The problem is that once they have put in the api and clicked on get characters the characters are put in the db ... then "something" happens and the session is lost, at this point there is no account or api stored in the DB just the list of toons in the characters table. This is why I wrote the clean_up_db script ... it removes orphaned characters from this table .. I run it every 2 mins :).

Sorry for the lack of progress ... I've had something of a disastrous week or so ... my VPS provider was hacked and I lost my VPS ... I've moved provider and I'm still picking up the pieces .. I'll look into things again soon I promise :)

Edit :

And oh look they've changed the API ... auth errors are now giving http 403 Forbidden errors rather than a 200 OK ... looks like some changes are in order.
Aurthes
Shadow State
Goonswarm Federation
#455 - 2013-07-09 19:07:13 UTC  |  Edited by: Aurthes
I am building a forum that uses this API checker. I seem to be having similar problems that other people do, which is that if users have any problems when entering their API it locks them from correcting things by saying that "you are trying to register with a character that already exists in our records".

Last night, I deleted the character from "smf_tea_characters", but I don't think that was sufficient. Should it be? I am also running in cron the script "clean_up_db".

I think I somehow need to delete an entry from another table, maybe "smf_tea_api"?

Also, can I just delete rows from these tables without hurting database integrity?
Dark Angel66
ANGELGARD.
The Initiative.
#456 - 2013-07-10 06:56:28 UTC
Hi, guys!

I have problem, from 26.06.2013 my "Tea 169r" cant checked members forum.

but process is started.. script check 30% and crash (in logs i see error in XML parser on "Bad request" )

How i can repair this?

sorry for my engl.
Shin Chogan
Federal Navy Academy
Gallente Federation
#457 - 2013-07-10 12:12:13 UTC
Aurthes wrote:
I am building a forum that uses this API checker. I seem to be having similar problems that other people do, which is that if users have any problems when entering their API it locks them from correcting things by saying that "you are trying to register with a character that already exists in our records".

Last night, I deleted the character from "smf_tea_characters", but I don't think that was sufficient. Should it be? I am also running in cron the script "clean_up_db".

I think I somehow need to delete an entry from another table, maybe "smf_tea_api"?

Also, can I just delete rows from these tables without hurting database integrity?


If that was the error then yes that should be sufficient. There are similar errors however that may require other tables to have entries removed ... it should all be done by the clean_up_db script. Users should have to wait no longer than the frequency of the cron job that runs that script.

As long as you don't delete the entries from smf_tea_api then all the other tables get repopulated as the API cron job runs.
Manic Velocity
Federal Navy Academy
Gallente Federation
#458 - 2013-07-10 14:32:09 UTC
Are there any plans to implement the corp/alliance checks via the SMF Scheduled Tasks feature, rather than setting up a cron job?

"The most punchable face in New Eden."

Be excellent to each other.

Twitter | Twitch | YouTube

Shin Chogan
Federal Navy Academy
Gallente Federation
#459 - 2013-07-10 15:40:25 UTC
*phew* ... new version up :

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

Sorry for the delays ... stuff has been busy and this was a non trivial merge :)

Changes :
A load more error checking for api failures during a cron run.
Bug fix in the clean_up_db script.
Stop toons being stored in the db until registration has completed. (I hope)

It is this last one that appears to have been causing you guys the most problems.
Shin Chogan
Federal Navy Academy
Gallente Federation
#460 - 2013-07-10 15:41:43 UTC
Manic Velocity wrote:
Are there any plans to implement the corp/alliance checks via the SMF Scheduled Tasks feature, rather than setting up a cron job?


Hmmm ... I'd not added it to the list but I can see the need for it for people who don't have access to cron.