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.3.1) - Member Management Mod for SMF 2, TeamSpeak 3 and Jabber

Author
Shin Chogan
Federal Navy Academy
Gallente Federation
#261 - 2014-03-23 15:08:52 UTC  |  Edited by: Shin Chogan
Jen Moriarty wrote:
Shin Chogan wrote:

It will also break all the other places that get_site is used Blink

so what is the url that get_site is trying to go to normally, without you making any modifications other than printing the url in get_site ?


Yup, I don't intend to leave it that way :)

http://URL:9090/plugins/userService/userservice/plugins/userService/userservice?type=add&secret=SECRET&username=jen_moriarty&password=1111&name=*%20Jen%20Moriarty&email=test@gmail.com&groups=Admins

The URL is right. If I copy it to my browser, it adds a user, but for some reason, it doesn't get sent to Openfire from TEA directly


Yes but remember your browser is making the request from your machine and the code is making it from a different one (the server itself).
Assuming you are running both smf and openfire on the same server have you tried making the url http://localhost:9090 ? This is how mine is set.

The other thing I've not noticed if you've mentioned or not ... have you got the IP security turned on in the user service plugin ? again if this is turned on and you are running both smf and Openfire on the same server you need to add 127.0.0.1
lasterax
Republic Military School
Minmatar Republic
#262 - 2014-03-23 15:31:14 UTC
Shin Chogan wrote:


not yet .... I've not been able to trace a path that would not set TEA::$lastid

edit : unless .... can you look in your settings table and find a value tea_nextpull. Also what happens if you run the TEA_cron.php script ?


There is a value for tea_nextpull: 1395427119.

When I execute TEA_cron.php I get:

API System Screwed :
bool(false)


Thanks,

--Rax
Shin Chogan
Federal Navy Academy
Gallente Federation
#263 - 2014-03-23 15:39:13 UTC
lasterax wrote:
Shin Chogan wrote:


not yet .... I've not been able to trace a path that would not set TEA::$lastid

edit : unless .... can you look in your settings table and find a value tea_nextpull. Also what happens if you run the TEA_cron.php script ?


There is a value for tea_nextpull: 1395427119.

When I execute TEA_cron.php I get:

API System Screwed :
bool(false)


Thanks,

--Rax



OK so there is your real problem ... your server can't even contact the api server this is how you are getting to a point where lastid is not defined.

You need to get to the bottom of that issue first.
Minibren
Science and Trade Institute
Caldari State
#264 - 2014-03-23 22:28:47 UTC  |  Edited by: Minibren
I have an issue with the API system.

Info:
Server running ubuntu 12.04 on a digital ocean server.
The mod seems to have successfully installed.
Entering a corp api has not updated the system (says last updated never)
Changing the API profile of a user returns "[ERROR] API is returning invalid XML"
When trying to register with api this error message is displayed "API System Screwed - Can't fetch Toons"

Trying to run a full member check produces this 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: /var/www/Sources/TEA.php
Line: 2492"

Any ideas with what is causing this? Can't seem to find a solution.
Shin Chogan
Federal Navy Academy
Gallente Federation
#265 - 2014-03-24 00:59:33 UTC
Minibren wrote:
I have an issue with the API system.

Info:
Server running ubuntu 12.04 on a digital ocean server.
The mod seems to have successfully installed.
Entering a corp api has not updated the system (says last updated never)
Changing the API profile of a user returns "[ERROR] API is returning invalid XML"
When trying to register with api this error message is displayed "API System Screwed - Can't fetch Toons"

Trying to run a full member check produces this 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: /var/www/Sources/TEA.php
Line: 2492"

Any ideas with what is causing this? Can't seem to find a solution.



Seems like you are not getting anything sensible from CCP's api servers. As to the reason why ... that is the 64 million dollar question. Without packet traces or adding debug lines it is very difficult to tell more.
lasterax
Republic Military School
Minmatar Republic
#266 - 2014-03-24 02:23:55 UTC
Shin Chogan wrote:
Minibren wrote:
I have an issue with the API system.

Info:
Server running ubuntu 12.04 on a digital ocean server.
The mod seems to have successfully installed.
Entering a corp api has not updated the system (says last updated never)
Changing the API profile of a user returns "[ERROR] API is returning invalid XML"
When trying to register with api this error message is displayed "API System Screwed - Can't fetch Toons"

Trying to run a full member check produces this 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: /var/www/Sources/TEA.php
Line: 2492"

Any ideas with what is causing this? Can't seem to find a solution.



Seems like you are not getting anything sensible from CCP's api servers. As to the reason why ... that is the 64 million dollar question. Without packet traces or adding debug lines it is very difficult to tell more.


Seems to be my issue as well as I'm running almost that exact same setup - except I'm running Ubuntu 13.04 on a Digital Ocean droplet. I can telnet to api.eveonline.com on port 443 so I'm not sure what the deal is yet.

--Rax
Jessica Helsel
Pator Tech School
Minmatar Republic
#267 - 2014-03-25 00:19:37 UTC
lasterax wrote:
Shin Chogan wrote:
Minibren wrote:
I have an issue with the API system.

Info:
Server running ubuntu 12.04 on a digital ocean server.
The mod seems to have successfully installed.
Entering a corp api has not updated the system (says last updated never)
Changing the API profile of a user returns "[ERROR] API is returning invalid XML"
When trying to register with api this error message is displayed "API System Screwed - Can't fetch Toons"

Trying to run a full member check produces this 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: /var/www/Sources/TEA.php
Line: 2492"

Any ideas with what is causing this? Can't seem to find a solution.



Seems like you are not getting anything sensible from CCP's api servers. As to the reason why ... that is the 64 million dollar question. Without packet traces or adding debug lines it is very difficult to tell more.


Seems to be my issue as well as I'm running almost that exact same setup - except I'm running Ubuntu 13.04 on a Digital Ocean droplet. I can telnet to api.eveonline.com on port 443 so I'm not sure what the deal is yet.

--Rax


Not sure what instructrions you were following but I believe this is because you are missing php5-curl.

sudo apt-get install php5-curl

You might need to restart apache for this to make any difference. sudo service apache2 restart

Also I've noticed that the TEA files aren't executable, so if you go in to /var/www/TEA you can sudo chmod 755 ./* Also make sure they are owned by www-data. sudo chown www-data:www-data ./*

Again you might need to restart apache before you see any differences, I'm not sure there.

Jessica Helsel
Pator Tech School
Minmatar Republic
#268 - 2014-03-25 00:36:25 UTC  |  Edited by: Jessica Helsel
I'm having some other issues with the TS integration.

I can't find any solid information on the configuration so I'm not even 100% sure that I've got this set up right.

However when you try to register to TS from the forums all you get is an obscure error.

If pictures are worth 1,000 words, here's 3,000.

http://i.imgur.com/QBBL025.png
http://i.imgur.com/RJOuswa.png
http://i.imgur.com/LxI2zMu.png <-- error shows up [ERROR] Unknown method

I don't know PHP from my ass, I've looked but all I can figure out is this.

In /var/www/Sources is a file TEA_TS.php

Inside of that is a bunch of stuff but the interesting bits are these.

if($_POST['method'] == 'online' && $this -> modSettings["tea_ts_method_online"]){
stuff
}
elseif($_POST['method'] == 'create' && $this -> modSettings["tea_ts_method_create"]){
other stuff
}
elseif($_POST['method'] == 'priv' && $this -> modSettings["tea_ts_method_priv"]){
different stuff
}
else{
print the damn error you're seeing
}

I don't know what the if, elseif, and elseif again are checking for exactly, but it's failing all 3 and hitting the catch-all else statement at the bottom and printing my error.

If I can get a hand that'd be great!

Thanks!
lasterax
Republic Military School
Minmatar Republic
#269 - 2014-03-25 03:03:10 UTC
Jessica Helsel wrote:


Not sure what instructrions you were following but I believe this is because you are missing php5-curl.

sudo apt-get install php5-curl

You might need to restart apache for this to make any difference. sudo service apache2 restart

Also I've noticed that the TEA files aren't executable, so if you go in to /var/www/TEA you can sudo chmod 755 ./* Also make sure they are owned by www-data. sudo chown www-data:www-data ./*

Again you might need to restart apache before you see any differences, I'm not sure there.



Winner winner chicken dinner! Thanks very much!

--Rax
Jessica Helsel
Pator Tech School
Minmatar Republic
#270 - 2014-03-25 22:19:13 UTC  |  Edited by: Jessica Helsel
Jessica Helsel wrote:
I'm having some other issues with the TS integration.

I can't find any solid information on the configuration so I'm not even 100% sure that I've got this set up right.

However when you try to register to TS from the forums all you get is an obscure error.

If pictures are worth 1,000 words, here's 3,000.

http://i.imgur.com/QBBL025.png
http://i.imgur.com/RJOuswa.png
http://i.imgur.com/LxI2zMu.png <-- error shows up [ERROR] Unknown method

I don't know PHP from my ass, I've looked but all I can figure out is this.

In /var/www/Sources is a file TEA_TS.php

Inside of that is a bunch of stuff but the interesting bits are these.

if($_POST['method'] == 'online' && $this -> modSettings["tea_ts_method_online"]){
stuff
}
elseif($_POST['method'] == 'create' && $this -> modSettings["tea_ts_method_create"]){
other stuff
}
elseif($_POST['method'] == 'priv' && $this -> modSettings["tea_ts_method_priv"]){
different stuff
}
else{
print the damn error you're seeing
}

I don't know what the if, elseif, and elseif again are checking for exactly, but it's failing all 3 and hitting the catch-all else statement at the bottom and printing my error.

If I can get a hand that'd be great!

Thanks!


For posterity, here is the answer to my own question. Check the "Allow Online Method" box.

http://i.imgur.com/5IyBAV0.png
Bumse
Caldari Provisions
Caldari State
#271 - 2014-04-02 20:48:07 UTC
Hi there!

Small issue after switching jabber host. We were earlier on running jabber och the same server but we needed to change host for the jabber service. Now we're running it externally and reconfigured the jabber settings in TEA to accommodate this.

The problem we are having now is that no Jabber groups are visible on the Jabber setup page.
Users are able to change their passwords and connect, new users are able to create their logins etc ... there's just no jabber groups visible so we can start rebuilding our rules.
User Service calls seems to be working just fine from the web host. If i enter some commands via lynx on the forum host, commands are accepted on the new jabber host just fine, if formatted correctly ofc.

I do have a (old?) table in the forum database named "forum_tea_jabber_groups" with the groups that existed before the jabber server move, is that one used? Can it conflict somehow?

I'm not sure on where to start looking so any pointers, hints or shoutouts would be appreciated :)

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
#272 - 2014-04-10 15:54:40 UTC
Bumse wrote:
Hi there!

Small issue after switching jabber host. We were earlier on running jabber och the same server but we needed to change host for the jabber service. Now we're running it externally and reconfigured the jabber settings in TEA to accommodate this.

The problem we are having now is that no Jabber groups are visible on the Jabber setup page.
Users are able to change their passwords and connect, new users are able to create their logins etc ... there's just no jabber groups visible so we can start rebuilding our rules.
User Service calls seems to be working just fine from the web host. If i enter some commands via lynx on the forum host, commands are accepted on the new jabber host just fine, if formatted correctly ofc.

I do have a (old?) table in the forum database named "forum_tea_jabber_groups" with the groups that existed before the jabber server move, is that one used? Can it conflict somehow?

I'm not sure on where to start looking so any pointers, hints or shoutouts would be appreciated :)



The problem is with your TEA Jabber config ... SMF gets the Jabber groups by directly querying the jabber DB ... if you were running both on the same server previously you'll need to change the db host from localhost to your new fqdn or ip address ... you may also need to make config changes to the Jabber MySQL server config, db user accounts and any firewalls to allow connections from external hosts.
Yveth
Ascendance
Goonswarm Federation
#273 - 2014-04-13 15:55:54 UTC
Is there already a fix known for people that have to register with API? (for a new account)
Or did i miss that post?

Thank you
Shin Chogan
Federal Navy Academy
Gallente Federation
#274 - 2014-04-14 08:25:06 UTC
Yveth wrote:
Is there already a fix known for people that have to register with API? (for a new account)
Or did i miss that post?

Thank you


I guess it depends on what is broken about it that you want a fix for Lol
Yveth
Ascendance
Goonswarm Federation
#275 - 2014-04-14 14:34:45 UTC
People should register with api before the account could be activated.
Mandatory API key for registering.

Same like:
- Account name
- Password
- Mail
Shin Chogan
Federal Navy Academy
Gallente Federation
#276 - 2014-04-14 15:06:43 UTC
Yveth wrote:
People should register with api before the account could be activated.
Mandatory API key for registering.

Same like:
- Account name
- Password
- Mail



Yeah the fix for that is somewhere in this thread :)
Tahnil
Gunboat Commando
#277 - 2014-05-06 10:30:01 UTC
Hi. How should I proceed if I wanted to enable Jabber by default?

Currently every member of my SMF forum has to enable his openfire account manually in his profile. But I want to force usage of Jabber, and therefore I want activation by default.

Any ideas?
Shin Chogan
Federal Navy Academy
Gallente Federation
#278 - 2014-05-07 11:43:46 UTC  |  Edited by: Shin Chogan
Tahnil wrote:
Hi. How should I proceed if I wanted to enable Jabber by default?

Currently every member of my SMF forum has to enable his openfire account manually in his profile. But I want to force usage of Jabber, and therefore I want activation by default.

Any ideas?



As is no can do ... the system needs you to provide a password to the User Service in order to create the account and since the hashing is one way it can't just provide the one you use in the forums.

It would need an extra field in the registration process and you'd have to not allow registrations without API Keys.
Tahnil
Gunboat Commando
#279 - 2014-05-07 15:10:14 UTC
Shin Chogan wrote:
Tahnil wrote:
Hi. How should I proceed if I wanted to enable Jabber by default?

Currently every member of my SMF forum has to enable his openfire account manually in his profile. But I want to force usage of Jabber, and therefore I want activation by default.

Any ideas?



As is no can do ... the system needs you to provide a password to the User Service in order to create the account and since the hashing is one way it can't just provide the one you use in the forums.


I don‘t know if this is the case, but if the storage mechanism / encryption method of SMF and openfire were the same, wouldn‘t it be possible to copy the hashed password to the openfire database table?

Quote:
It would need an extra field in the registration process and you'd have to not allow registrations without API Keys.


That would be no problem in our case, as this is already the case.
Cyph3r Blade
Caldari Provisions
Caldari State
#280 - 2014-05-13 04:38:33 UTC  |  Edited by: Cyph3r Blade
I've been working with rule setups for god knows how many hours, and it's not clicking with me. Can someone who is a guru with rules for TEA who would be willing to assist please mail me? I'm desperate and close to ripping my hair out.