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.
 

phpBB 3.x API Registration Mod v6+

Author
Andy Tibs
Ministry of War
#441 - 2012-10-17 17:40:48 UTC
Tashia Rizti wrote:
While Cyerus is working on a proper fix, I found a temporary fix that seems to be working for me, *phpbbinstall*\includes\Pheal\PhealConfig.php line 60 , change the http:// to https://

That did the trick for me and got it working for the time being... although for me the file that needed the change was located at *phpbbinstall*\includes\eveapi\Pheal\PhealConfig.php

Tested and worked fine.
Tashia Rizti
Deep Core Mining Inc.
Caldari State
#442 - 2012-10-17 17:53:44 UTC
Andy Tibs wrote:
Tashia Rizti wrote:
While Cyerus is working on a proper fix, I found a temporary fix that seems to be working for me, *phpbbinstall*\includes\Pheal\PhealConfig.php line 60 , change the http:// to https://

That did the trick for me and got it working for the time being... although for me the file that needed the change was located at *phpbbinstall*\includes\eveapi\Pheal\PhealConfig.php

Tested and worked fine.


Yeah, missed that directory, Lol updated my original. Thanks for confirming, hopefully this can help others for now.
eidenjunior
Perkone
Caldari State
#443 - 2012-10-17 18:38:32 UTC
i get
Quote:
EVE API error: 0 -> API Date could not be read / parsed, original exception: SSL certificate problem: unable to get local issuer certificate

after changing the pheal line 60 to https
Cyerus
University of Caille
Gallente Federation
#444 - 2012-10-17 19:40:07 UTC  |  Edited by: Cyerus
eidenjunior wrote:
i get
Quote:
EVE API error: 0 -> API Date could not be read / parsed, original exception: SSL certificate problem: unable to get local issuer certificate

after changing the pheal line 60 to https


The temporary fix Tashia Rizti provided should work for most people.

However, some hosting providers seem to not have installed any certificates, or at least have not done it correctly.
Instead of trying to contact the webhost, I'll be supplying the needed certificate (GeoTrust) within the package, stored at includes/eveapi/Certificates.
You should also notice the RapidSSL certificate, which is acting as a middleman between GeoTrust and api.eveonline.com.
Even thought the RapidSSL certificate is not needed at the moment, I will be providing it for future needs.

I've just uploaded a quick-fix package; Quick_fix_EVE_API_SSL_for_6.0.x.zip

How to;
  • Upload all the files from the Upload directory to the root of your forum.
  • When asked to overwrite, answer Yes.
  • Clear forum cache afterwards, and you should be good to go.


Apologies again for not noticing the devblog that the api system was going to be SSL only.
Faldal
Imperial Academy
Amarr Empire
#445 - 2012-10-17 19:53:16 UTC
link down
Cyerus
University of Caille
Gallente Federation
#446 - 2012-10-17 20:25:38 UTC
Faldal wrote:
link down


Woops, fixed. Cool
eidenjunior
Perkone
Caldari State
#447 - 2012-10-17 20:40:50 UTC
Quote:

The temporary fix Tashia Rizti provided should work for most people.

However, some hosting providers seem to not have installed any certificates, or at least have not done it correctly.
Instead of trying to contact the webhost, I'll be supplying the needed certificate (GeoTrust) within the package, stored at includes/eveapi/Certificates.
You should also notice the RapidSSL certificate, which is acting as a middleman between GeoTrust and api.eveonline.com.
Even thought the RapidSSL certificate is not needed at the moment, I will be providing it for future needs.

I've just uploaded a quick-fix package; Quick_fix_EVE_API_SSL_for_6.0.x.zip

How to;
  • Upload all the files from the Upload directory to the root of your forum.
  • When asked to overwrite, answer Yes.
  • Clear forum cache afterwards, and you should be good to go.


Apologies again for not noticing the devblog that the api system was going to be SSL only.


Thx work good.
Cyerus
University of Caille
Gallente Federation
#448 - 2012-10-17 23:29:36 UTC
Second video is up on Youtube, and is focussing on Configuration.
Third video, describing the usage of the mod through an user's eye (normal user, not admin), will be uploaded tomorrow.

http://www.youtube.com/playlist?list=PLKWZBmvnMlzEtdIRPGl4O5t_FKx_8NgMm

I've also updated the 2nd post of this topic with a link to the Youtube channel.
ISuper
State War Academy
Caldari State
#449 - 2012-10-18 10:05:04 UTC  |  Edited by: ISuper
Cyerus wrote:
ISuper wrote:
Cyerus check please mail, looking for a jabber really (:

My CEO hunting me 2 monthes for that)


I've built you the package I promised; http://eve-it.org/dl/phpBB_authentication_for_ejabberd.zip

The package includes a simple guide on how to install, but you'll have to wait a couple of days for a detailed video.



Thank you very much, i will test it after update to the latest version.

There is also a problem with eveapi_cron.php

Quote:
Fatal error: Cannot access protected property PhealException::$code in ./forum/includes/eveapi/functions_eveapi.php on line 261


line 261:
Quote:
$charArray["error"][$e->code] = $e->getMessage();
Cyerus
University of Caille
Gallente Federation
#450 - 2012-10-18 10:18:26 UTC
ISuper wrote:
Thank you very mutch, i will test it after update to the latest version.

There is also a problem with eveapi_cron.php

Quote:
Fatal error: Cannot access protected property PhealException::$code in ./forum/includes/eveapi/functions_eveapi.php on line 261


line 261:
Quote:
$charArray["error"][$e->code] = $e->getMessage();



You seem to be using an old version of functions_eveapi.php
That line was changed in version 6.0.0.

So I suggest you update to the latest version.
RatKnight1
KarmaFleet
Goonswarm Federation
#451 - 2012-10-18 10:43:46 UTC  |  Edited by: RatKnight1
Okay, I have only recently begun implementing this.

When I switched over to the fixed API, I was thrown an error about Curl being incompatible with HTTPS. I simply rebuilt apache with CurlSSL, problem fixed.

The issue I am having at the moment is that when a user is inputting their TS3 UID, it is not being sent to the database. I cannot add it through the administrative control panel either.

I am able to manually add it to the database, but this seems rather... counter productive.

Any thoughts?

edit: I have tried previously suggested fixes for this, with no luck.

I am using the latest release.
Cyerus
University of Caille
Gallente Federation
#452 - 2012-10-18 11:17:44 UTC  |  Edited by: Cyerus
RatKnight1 wrote:
Okay, I have only recently begun implementing this.

When I switched over to the fixed API, I was thrown an error about Curl being incompatible with HTTPS. I simply rebuilt apache with CurlSSL, problem fixed.

The issue I am having at the moment is that when a user is inputting their TS3 UID, it is not being sent to the database. I cannot add it through the administrative control panel either.

I am able to manually add it to the database, but this seems rather... counter productive.

Any thoughts?

edit: I have tried previously suggested fixes for this, with no luck.

I am using the latest release.


Try to check if the user is doing the same steps are shown in this video;
http://www.youtube.com/watch?v=adtMO5dZpFQ&list=KWZBmvnMlzEtdIRPGl4O5t_FKx_8NgMm

It might simply be that the TeamSpeak UID is wrong, where the forum doesn't give you any error messages, and doesn't save it either. The above video shows where to find the TeamSpeak UID.
RatKnight1
KarmaFleet
Goonswarm Federation
#453 - 2012-10-18 11:47:08 UTC
I watched the video... I was the first commenter on the first one.

I have tried it with my personal account as well, with no luck. Could it have something to do with using the latest released version with the latest version of phpbb? (I know that you mentioned a new release soon).
Cyerus
University of Caille
Gallente Federation
#454 - 2012-10-18 13:26:31 UTC
RatKnight1 wrote:
I watched the video... I was the first commenter on the first one.

I have tried it with my personal account as well, with no luck. Could it have something to do with using the latest released version with the latest version of phpbb? (I know that you mentioned a new release soon).


I doubt it has anything to do with using an old release, sinc enothing has changed on the TeamSpeak front.

It might be handy to know that all errors are not shown when using TeamSpeak integration.
I know it's not the best way of doing things, but I've just never set myself to build in good error handling for the TeamSpeak integration.
That said, it could be multiple things. For example the credentials from the user you are using trying to connect to TeamSpeak are wrong and/or don't have permission to add groups to members, the general connection to TeamSpeak may be wrong and/or prevented by a firewall, or even that your forum is blocked due to excessive spamming of commands (yes it happens, TeamSpeak is very strict about connections) because your forum IP might not be on the whitelist.

I suggest that you double-check everything TeamSpeak based, because high chances are that this "bug" will persist even if you update to 6.1.0.
RatKnight1
KarmaFleet
Goonswarm Federation
#455 - 2012-10-18 13:34:12 UTC
The connection to TS3 seems to be working fine. When I manually add the TS3 UID to the database, the cron job has no issue changing permissions on the TS3 server, and the TS3 server logs are showing no errors from the incoming connection. Considering both are running on the same server, and the whitelist for TS3 has listed 127.0.0.1, as well as all of my external IP's, I doubt it has to do with the server side of TS3.

I am wondering if it might be a module in apache itself, however that does not make sense considering the API information is being written properly during registration.

I am out of ideas... I don't see any issues in the PHP files. The only other thought I really have is perhaps adding the TS3 UID field to the registration page.

Please note that this is a Fresh install of phpbb, a fresh install of your mod, and a fresh database. I actually followed the video step by step.
ISuper
State War Academy
Caldari State
#456 - 2012-10-18 20:26:26 UTC
Link for version 6.0.0 doesn't work http://eve-it.org/dl/EVE_API_6.0.0_for_phpBB_3.x.rar

Quote:
Not Found

The requested URL /dl/EVE_API_6.0.0_for_phpBB_3.x.rar was not found on this server.



Could someone upload it? Thanx.
Cyerus
University of Caille
Gallente Federation
#457 - 2012-10-18 20:35:55 UTC
ISuper wrote:
Link for version 6.0.0 doesn't work http://eve-it.org/dl/EVE_API_6.0.0_for_phpBB_3.x.rar

Quote:
Not Found

The requested URL /dl/EVE_API_6.0.0_for_phpBB_3.x.rar was not found on this server.



Could someone upload it? Thanx.


Why 6.0.0? You might as well update to 6.0.3.
ISuper
State War Academy
Caldari State
#458 - 2012-10-18 20:37:16 UTC
Cyerus wrote:
ISuper wrote:
Link for version 6.0.0 doesn't work http://eve-it.org/dl/EVE_API_6.0.0_for_phpBB_3.x.rar

Quote:
Not Found

The requested URL /dl/EVE_API_6.0.0_for_phpBB_3.x.rar was not found on this server.



Could someone upload it? Thanx.


Why 6.0.0? You might as well update to 6.0.3.


I have 5.3, will it work?
Cyerus
University of Caille
Gallente Federation
#459 - 2012-10-18 20:42:49 UTC
Yes, it will work when updating from 5.3 to 6.0.3

But be sure to create backups every steps of the way, since it's pretty tricky to do.
This guide will help you;
https://forums.eveonline.com/default.aspx?g=posts&m=1555109#post1555109

Backups, create them!
ISuper
State War Academy
Caldari State
#460 - 2012-10-18 20:43:35 UTC
Cyerus wrote:
Yes, it will work when updating from 5.3 to 6.0.3

But be sure to create backups every steps of the way, since it's pretty tricky to do.
This guide will help you;
https://forums.eveonline.com/default.aspx?g=posts&m=1555109#post1555109

Backups, create them!


thank you, i am going to update now