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
Mr Twinkie
Republic Military School
Minmatar Republic
#381 - 2015-06-02 09:51:15 UTC  |  Edited by: Mr Twinkie
having trouble getting this to connect to a remote mysql for jabber

"MySQL server has gone away
File: /home/******/public_html/forums/Sources/TEA.php
Line: 2828"

also now can no longer edit any setting in the jabber tab
Nutbolt
University of Caille
Gallente Federation
#382 - 2015-06-02 10:16:33 UTC
Mr Twinkie wrote:
having trouble getting this to connect to a remote mysql for jabber

"MySQL server has gone away
File: /home/******/public_html/forums/Sources/TEA.php
Line: 2828"

also now can no longer edit any setting in the jabber tab


Looks like it's struggling to connect to the jabber database.

I would suggest first seeing if you can actually access the database remotely. If you have SSH access on the same server as the forums use that, if not, use something like the below PHP to test if you can connect to the DB server


    $db_server = "";
    $db_user = "openfire";
    $db_passwd = "";
    $db_name =  "openfiredb";
    

    $link = mysqli_connect($db_server, $db_user, $db_passwd, $db_name);
    
    $sql = "SELECT * FROM  ofUser";
    
    if (!mysqli_query($link,$sql))
      {
      die('Error: ' . mysqli_error($link));
      }

      print "Accessed ok (hopefully)";
    


Mr Twinkie
Republic Military School
Minmatar Republic
#383 - 2015-06-02 10:31:57 UTC
Nope can't access it remotely, despite following every guide on the internet on making a db accessible remotely..

And regardless I can no longer edit jabber settings -_-

Any ideas on a simple jabber auth?
Nutbolt
University of Caille
Gallente Federation
#384 - 2015-06-02 10:41:23 UTC
Mr Twinkie wrote:
Nope can't access it remotely, despite following every guide on the internet on making a db accessible remotely..

And regardless I can no longer edit jabber settings -_-

Any ideas on a simple jabber auth?


Try uninstalling the TEA mod and reinstalling. It should keep settings but possibly fix the unable to edit issue.

However yes, openfire support was flakey to start with, and now the method they use is deprecated by UserService.

For my corp I have coded our own solution into our own system, which makes use of SMF forum groups, which uses TEA to manage the groups.

If you know PHP I would strongly recommend looking at this:

https://github.com/Cyerus/Php-OpenFire-UserService
Mr Twinkie
Republic Military School
Minmatar Republic
#385 - 2015-06-02 10:48:47 UTC
Nutbolt wrote:
Mr Twinkie wrote:
Nope can't access it remotely, despite following every guide on the internet on making a db accessible remotely..

And regardless I can no longer edit jabber settings -_-

Any ideas on a simple jabber auth?


Try uninstalling the TEA mod and reinstalling. It should keep settings but possibly fix the unable to edit issue.

However yes, openfire support was flakey to start with, and now the method they use is deprecated by UserService.

For my corp I have coded our own solution into our own system, which makes use of SMF forum groups, which uses TEA to manage the groups.

If you know PHP I would strongly recommend looking at this:

https://github.com/Cyerus/Php-OpenFire-UserService



Not really sure what that does different than

"http://example.com:9090/plugins/userService/userservice?type=add&secret=bigsecret&username=kafka&password=drowssap&name=franz&email=franz@kafka.com"

which is simple enough to implement in a form but provides 0 api checking.
Mr Twinkie
Republic Military School
Minmatar Republic
#386 - 2015-06-02 11:43:01 UTC
also unistall and reinstall doesn't fix the issue of now being locked out of the jabber settings -_-
Nutbolt
University of Caille
Gallente Federation
#387 - 2015-06-02 11:57:07 UTC
Mr Twinkie wrote:


Not really sure what that does different than

"http://example.com:9090/plugins/userService/userservice?type=add&secret=bigsecret&username=kafka&password=drowssap&name=franz&email=franz@kafka.com"

which is simple enough to implement in a form but provides 0 api checking.



Well the difference is what you linked, which is what TEA uses, is now deprecated, meaning it will be removed at some point and is old hat. Whereas the library I linked uses the new version of the user service API. What it allows is for you to integrate it into your own program easily. So to program your own solution, and not use TEA.
Mike Vandenberg
School of Applied Knowledge
Caldari State
#388 - 2015-06-02 16:20:35 UTC
Mr Twinkie wrote:
Nope can't access it remotely, despite following every guide on the internet on making a db accessible remotely..

And regardless I can no longer edit jabber settings -_-

Any ideas on a simple jabber auth?


could it be a timer that has locked you out? I think I remember seeing something similar for TS but with TS i believe it was user friendly and told me how long to wait before making changes again. If you have scheduled tasks running for jabber, it could be trying to access jabber and continueing to lock you out. Maybe turn that off, then wait and see if you can make changes on the settings.

Is your SMF database also remote? If not, why not just have everything in one place?
Mr Twinkie
Republic Military School
Minmatar Republic
#389 - 2015-06-02 22:45:56 UTC
Mike Vandenberg wrote:
Mr Twinkie wrote:
Nope can't access it remotely, despite following every guide on the internet on making a db accessible remotely..

And regardless I can no longer edit jabber settings -_-

Any ideas on a simple jabber auth?


could it be a timer that has locked you out? I think I remember seeing something similar for TS but with TS i believe it was user friendly and told me how long to wait before making changes again. If you have scheduled tasks running for jabber, it could be trying to access jabber and continueing to lock you out. Maybe turn that off, then wait and see if you can make changes on the settings.

Is your SMF database also remote? If not, why not just have everything in one place?



The SMF is remote, we're in the process of migrating and I actually already have the plugin working on a local server. Just broke the remote version of it :P
Mr Twinkie
Republic Military School
Minmatar Republic
#390 - 2015-06-03 09:26:51 UTC
so TEA doesn't seem to be writing users to the openfire db despite being setup correctly and cron jobs running fine.
SCORPl0
Foundation Cutting-Edge
DECOY
#391 - 2015-06-18 07:46:23 UTC
Hello,

since SMF migration, I've got TEA_TS missing fields / register method radio button :

http://puu.sh/ithxo/75310530c1.png

Any idea of how to correct this ?

Thanks
Mike Vandenberg
School of Applied Knowledge
Caldari State
#392 - 2015-06-18 08:23:25 UTC
SCORPl0 wrote:
Hello,

since SMF migration, I've got TEA_TS missing fields / register method radio button :

http://puu.sh/ithxo/75310530c1.png

Any idea of how to correct this ?

Thanks



My guess is you don't have both options checked under admin. go to admin > config > temars api > teamspeak and make sure both "use unique id" and "use online check" or whatever they are called are checked and saved. I am thinking you only get a radio option when there are two choices and yours only shows one (unique id).
SCORPl0
Foundation Cutting-Edge
DECOY
#393 - 2015-06-18 15:57:05 UTC
Mike Vandenberg wrote:
SCORPl0 wrote:
Hello,

since SMF migration, I've got TEA_TS missing fields / register method radio button :

http://puu.sh/ithxo/75310530c1.png

Any idea of how to correct this ?

Thanks



My guess is you don't have both options checked under admin. go to admin > config > temars api > teamspeak and make sure both "use unique id" and "use online check" or whatever they are called are checked and saved. I am thinking you only get a radio option when there are two choices and yours only shows one (unique id).


Works, thanks a lot :)
Snopzet
Inglourious Squirrels
That Escalated Quickly.
#394 - 2015-06-25 08:01:45 UTC  |  Edited by: Snopzet
I'm confused... I just forked TEA so I can update the interface which uses the deprecated User Service plugin for Openfire, so now it uses the "REST API" plugin (as recommend). Now I find out that the User Service plugin got updated... REST API plugin vs User Service plugin dafuq -_-

Anyway, you can find my work on github. I removed any DB requirements for Jabber. All you need is the REST API plugin and the secret key, which you can create after you installed the plugin.

I'll probably create a pull request as soon as I'm happy with it.
Nutbolt
University of Caille
Gallente Federation
#395 - 2015-06-25 17:22:04 UTC
Yeah, the user service plugin still works fine, however they deprecated the old xml API which TEA uses. The latest version of the plugin uses their new API.
Mr Twinkie
Republic Military School
Minmatar Republic
#396 - 2015-06-27 01:19:28 UTC  |  Edited by: Mr Twinkie
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: /****/forum/Sources/TEA.php
Line: 2757

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.4, while your database is at version 2.0.7. The above error might possibly go away if you execute the latest version of upgrade.php.


Happens when I try to run a check...


What do?

Also looking for an alternative to TEA as it's been nothing but headaches for me. Also not a fan of SMF.
Mike Vandenberg
School of Applied Knowledge
Caldari State
#397 - 2015-06-27 02:35:51 UTC
Mr Twinkie wrote:
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: /****/forum/Sources/TEA.php
Line: 2757

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 2.0.4, while your database is at version 2.0.7. The above error might possibly go away if you execute the latest version of upgrade.php.


Happens when I try to run a check...


What do?

Also looking for an alternative to TEA as it's been nothing but headaches for me. Also not a fan of SMF.



I'm not sure about your specific error. Sounds like something with SMF. Have you looked at what updates are needed for SMF and tried to upgrade? While SMF & TEA isn't the most user friendly, once you get it up and running, it works great. We set this up for people all the time and they love it.
Mr Twinkie
Republic Military School
Minmatar Republic
#398 - 2015-07-03 07:42:26 UTC
Got old users working just fine

getting another error now...

http://i.imgur.com/EhPzwn8.jpg?1

whenever someone tries to register.


I absolutely despise this plugin
Tahnil
Gunboat Commando
#399 - 2015-07-07 18:55:35 UTC
What do you expect? It‘s no longer maintained by any developer. Unless it is. In this case I‘d like to know Big smile
Mike Vandenberg
School of Applied Knowledge
Caldari State
#400 - 2015-07-07 19:40:00 UTC
Mr Twinkie wrote:
Got old users working just fine

getting another error now...

http://i.imgur.com/EhPzwn8.jpg?1

whenever someone tries to register.


I absolutely despise this plugin


What happened with the database issue that you had in your last issue you report? How did you resolve it? Is this happening for more than one user or is it the same person? have you tried to have them create a new API? Assuming it isn't "user error" then I would have them try to register, and then check the logs to see if there is any additional information that might be helpful. If it is only 1 person, I'd lean towards user error. Try it yourself (unless you are the user). I have a test server you could use if you wanted to see if it is something specific to your server. (you could just cancel the api if the registration goes through).

I'm leaning towards user error or bring more details from the logs that might shed some light.