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
#301 - 2013-01-17 15:32:35 UTC
You might want to try this version out.

Temars Eve API auth for smf <- google drive link.

I believe it fixes the lack of caching and based on the last couple of days of testing it "MAY" have reduced the Runtime errors. I've also added some nasty hacks to manage any Runtime errors that it does get (who am I kidding ... All my changes are a bunch of nasty hacks Smile )

For your added pleasure (if you run a board for an alliance) there is a new rule you can add that will match the CEO's of the specifed Alliance.

Disclaimer :- This all appears to work for me but it may not work for you ... backup your existing stuff first :)
Troy Aihaken
Quekz
#302 - 2013-01-17 15:42:13 UTC
^^ Nice Work :)

NodeJS Developer | Frontend Development | Programming Enthusiast

Troy Aihaken
Quekz
#303 - 2013-01-17 15:56:21 UTC
Shin i uploaded yours to my SUPER QUICK DOWNLOAD PAGE (LITERALLY NO CODE SO LOOKS RUBBISH xD)
Just so it centralized.
Added Credit for it on download button (FOR YOU)

NodeJS Developer | Frontend Development | Programming Enthusiast

Nutbolt
University of Caille
Gallente Federation
#304 - 2013-01-17 16:32:54 UTC
Updated to this version and all hell broke loss :)

Ran the check all thing, and after quite a while it failed when it got to an API key which it stated as: API SCREWED

Runtime Error:

API System Screwed - Can't fetch Roles: string(3030) "
Server Error in '/' Application.
Shin Chogan
Federal Navy Academy
Gallente Federation
#305 - 2013-01-17 16:40:01 UTC
Nutbolt wrote:
Updated to this version and all hell broke loss :)

Ran the check all thing, and after quite a while it failed when it got to an API key which it stated as: API SCREWED

Runtime Error:

API System Screwed - Can't fetch Roles: string(3030) "
Server Error in '/' Application.



Well that is both a good and a bad thing :)

Good in that it has worked out that the CCP servers returned a Server Error in '/' Application Runtime error instead of valid xml and isn't going to do the wrong thing with that persons groups - usually remove them all :) Now it should just abort for that account and leave the groups as they were.

Bad in that while I've not been experiencing these errors while running it as a cronjob and I'd hoped I'd found a cause of them in the code I was obviously wrong :)
Nutbolt
University of Caille
Gallente Federation
#306 - 2013-01-17 16:56:04 UTC
Looking at the profile pages of users, those with SCREWED apis are still in groups (I don't have a rule for invalid apis yet, but this suggests screwed is different to invalid so rule wouldn't apply?). Users whos api key is ok the status says checked. whereas those who api key is screwed state the status as OK.

And on a side note, one of those persons keys worked fine this morning, but now says screwed.
Shin Chogan
Federal Navy Academy
Gallente Federation
#307 - 2013-01-17 17:07:37 UTC  |  Edited by: Shin Chogan
Nutbolt wrote:
Looking at the profile pages of users, those with SCREWED apis are still in groups (I don't have a rule for invalid apis yet, but this suggests screwed is different to invalid so rule wouldn't apply?). Users whos api key is ok the status says checked. whereas those who api key is screwed state the status as OK.

And on a side note, one of those persons keys worked fine this morning, but now says screwed.


Yeah that all makes sense. That error is when CCP's servers return stuff that isn't xml so it has nothing to do with the validity of the api details just the inability of CCP to return useful (to the script) information. I'm delibrately aborting further work with that api key at that point and leaving the user in whatever groups they were in before. Loosing access due to CCP API server muckups is a bad thing in my opinion.

invalid api rules may or may not apply as it depends on exactly which api call results in the Application error and where in your rule list the invalid rule is ... but assuming it can get far enough then an invalid api rule "should" work fine.
Nutbolt
University of Caille
Gallente Federation
#308 - 2013-01-17 18:51:50 UTC
Next question(s) is in regards to cron jobs: Assuming I am not using the jabber or TS3 stuff (yet), do I only need to run the 1 cron job (TEA_Cron.php)? If so how often do you suggest? I see a few pages back it was suggested to run every minute, but that seems a bit excessive?

The output of the cron just gives me the login page for the forums. Assuming I am not logged in, it just directs me to login when trying to run the cron job. I assume this means its not being run. Any ideas? Thanks!
Shin Chogan
Federal Navy Academy
Gallente Federation
#309 - 2013-01-17 19:22:28 UTC
Nutbolt wrote:
Next question(s) is in regards to cron jobs: Assuming I am not using the jabber or TS3 stuff (yet), do I only need to run the 1 cron job (TEA_Cron.php)? If so how often do you suggest? I see a few pages back it was suggested to run every minute, but that seems a bit excessive?


I run it every minute ... I believe that was the original authors directions.

Quote:

The output of the cron just gives me the login page for the forums. Assuming I am not logged in, it just directs me to login when trying to run the cron job. I assume this means its not being run. Any ideas? Thanks!



Huh ?? The cron job shouldn't output anything unless there is a problem. Where are you running it ? How are you running it ?
Nutbolt
University of Caille
Gallente Federation
#310 - 2013-01-17 19:35:22 UTC
As long as I am logged in it outputs nothing (and I guess works), but if I try and access the the cron job (running it from the browser) while not logged in it just directs me to the login page.

I am running the cron job from within cPanel using this command: curl --silent --compressed http://www.avalonproject.co.uk/forums/TEA/TEA_Cron.php >/dev/null 2>&1

(works for other cron jobs).
Shin Chogan
Federal Navy Academy
Gallente Federation
#311 - 2013-01-17 19:58:17 UTC
Nutbolt wrote:
As long as I am logged in it outputs nothing (and I guess works), but if I try and access the the cron job (running it from the browser) while not logged in it just directs me to the login page.

I am running the cron job from within cPanel using this command: curl --silent --compressed http://www.avalonproject.co.uk/forums/TEA/TEA_Cron.php >/dev/null 2>&1

(works for other cron jobs).



Hmmm interesting ... my understanding is that it is designed to run from a cron system ... at the command line absolutely no browser or curl should be involved. Obviously I may be wrong but at least this way you certainly don't need to be logged in :)
Nutbolt
University of Caille
Gallente Federation
#312 - 2013-01-17 20:29:01 UTC
Shin Chogan wrote:
Hmmm interesting ... my understanding is that it is designed to run from a cron system ... at the command line absolutely no browser or curl should be involved. Obviously I may be wrong but at least this way you certainly don't need to be logged in :)


Any suggestions on how I do this? :) I don't have access to shell, or whatever it is. I have never had a problem before with cron jobs, including our current forums (in the procces of moving from EVEBB to SMF).
Shin Chogan
Federal Navy Academy
Gallente Federation
#313 - 2013-01-17 20:43:56 UTC
Nutbolt wrote:
Shin Chogan wrote:
Hmmm interesting ... my understanding is that it is designed to run from a cron system ... at the command line absolutely no browser or curl should be involved. Obviously I may be wrong but at least this way you certainly don't need to be logged in :)


Any suggestions on how I do this? :) I don't have access to shell, or whatever it is. I have never had a problem before with cron jobs, including our current forums (in the procces of moving from EVEBB to SMF).



I'm afraid I don't use cPanel ... at a guess how about trying :- php full path to forums/TEA/TEA_Cron.php
Shin Chogan
Federal Navy Academy
Gallente Federation
#314 - 2013-01-21 09:49:26 UTC
Bah ... as this weekend has shown ... those Application Error 500's are still casusing chaos with peoples group memberships .... I thought I'd worked round them all, apparently not ... sorry.
Jognu
French Kiss Singularity
#315 - 2013-01-21 17:14:19 UTC
Hi !
I try to install TEA today (with the last version from the google drive link) and I have now this error :
Quote:
ERROR: relation « smf_tea_groups » doesn't exist
LINE 3: FROM smf_tea_groups
^
Fichier: www/Sources/TEA.php
Ligne: 3156

Any ideas ?

Thanks

EveAI developper: https://forums.eveonline.com/default.aspx?g=posts&t=21803

Shin Chogan
Federal Navy Academy
Gallente Federation
#316 - 2013-01-21 17:36:10 UTC
Jognu wrote:
Hi !
I try to install TEA today (with the last version from the google drive link) and I have now this error :
Quote:
ERROR: relation « smf_tea_groups » doesn't exist
LINE 3: FROM smf_tea_groups
^
Fichier: www/Sources/TEA.php
Ligne: 3156

Any ideas ?

Thanks



Looks like the db wasn't updated ... have a look at your db tables ... do you see any tables with smf_tea_something ?
EveBB
Doomheim
#317 - 2013-01-21 19:09:37 UTC
I've just installed the latest version from the google drive and get a number of errors when a person tries to register. This appears specifically when "Get Characters" is clicked....................

Quote:
Strict Standards: Non-static method TEACN::get_xml() should not be called statically, assuming $this from incompatible context in /home/eveinfo/public_html/Sources/TEAC.php on line 15

Strict Standards: Non-static method TEACN::get_site() should not be called statically, assuming $this from incompatible context in /home/eveinfo/public_html/Sources/TEAC.php on line 20


There are more but I will not post them as I think the above may be enough.

Thanks

-EveBB-

EVESpace Hosting - Domains & cPanel Hosting for ISK - Like us on Facebook


Jognu
French Kiss Singularity
#318 - 2013-01-21 21:28:10 UTC
Shin Chogan wrote:
Jognu wrote:
Hi !
I try to install TEA today (with the last version from the google drive link) and I have now this error :
Quote:
ERROR: relation « smf_tea_groups » doesn't exist
LINE 3: FROM smf_tea_groups
^
Fichier: www/Sources/TEA.php
Ligne: 3156

Any ideas ?

Thanks



Looks like the db wasn't updated ... have a look at your db tables ... do you see any tables with smf_tea_something ?

Indeed, no tables with smf_tea_ !
This is possible to play a script or something to create the tables ?

EveAI developper: https://forums.eveonline.com/default.aspx?g=posts&t=21803

Shin Chogan
Federal Navy Academy
Gallente Federation
#319 - 2013-01-22 09:23:05 UTC
EveBB wrote:
I've just installed the latest version from the google drive and get a number of errors when a person tries to register. This appears specifically when "Get Characters" is clicked....................

Quote:
Strict Standards: Non-static method TEACN::get_xml() should not be called statically, assuming $this from incompatible context in /home/eveinfo/public_html/Sources/TEAC.php on line 15

Strict Standards: Non-static method TEACN::get_site() should not be called statically, assuming $this from incompatible context in /home/eveinfo/public_html/Sources/TEAC.php on line 20


There are more but I will not post them as I think the above may be enough.

Thanks

-EveBB-


That isn't something I've changed ... I'm guessing you've got error_reporting = E_ALL | E_STRICT or something like that in your php.ini

your probably want to remove the E_STRICT.
Shin Chogan
Federal Navy Academy
Gallente Federation
#320 - 2013-01-22 09:41:36 UTC
Jognu wrote:
Shin Chogan wrote:
Jognu wrote:
Hi !
I try to install TEA today (with the last version from the google drive link) and I have now this error :
Quote:
ERROR: relation « smf_tea_groups » doesn't exist
LINE 3: FROM smf_tea_groups
^
Fichier: www/Sources/TEA.php
Ligne: 3156

Any ideas ?

Thanks



Looks like the db wasn't updated ... have a look at your db tables ... do you see any tables with smf_tea_something ?

Indeed, no tables with smf_tea_ !
This is possible to play a script or something to create the tables ?


I didn't make the original installer just modified some of the files ... Do you have shell access to the system ?

if you do I "think" the following should work but no guarantees :

make a copy of the Packages/TEA_1_3_0.tgz file - put it in a new folder in your home director and decompress it.

Copy the files esam_upgrade.php and tables.php to your forum directory (where index.php is) then run :
php tables.php

fingers crossed you should now have some xxx_tea_ tables