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.
 

Omni EVE API: Integrating EVE and Drupal (7.x-2.0-rc8)

First post
Author
Peter Dostoevsky
Friendly Riot
Good Mental
#61 - 2014-03-02 00:09:59 UTC
0mni Ca wrote:
Peter Dostoevsky wrote:
Can you share the Jabber PHP patch?

The latest changes can be retrieved from the DEV branch.


Does that include a fix for the Jabber groups?
0mni Ca
Brutor Tribe
Minmatar Republic
#62 - 2014-03-02 00:15:14 UTC
Peter Dostoevsky wrote:
0mni Ca wrote:
Peter Dostoevsky wrote:
Can you share the Jabber PHP patch?

The latest changes can be retrieved from the DEV branch.


Does that include a fix for the Jabber groups?

In the DEV version, Jabber groups don't exist, I have not fully tested it so make backups.
Peter Dostoevsky
Friendly Riot
Good Mental
#63 - 2014-03-02 00:21:17 UTC
0mni Ca wrote:
Peter Dostoevsky wrote:
0mni Ca wrote:
Peter Dostoevsky wrote:
Can you share the Jabber PHP patch?

The latest changes can be retrieved from the DEV branch.


Does that include a fix for the Jabber groups?

In the DEV version, Jabber groups don't exist, I have not fully tested it so make backups.


Coo cool. Made a backup earlier and installed, if something goes horribly wrong I'll let you know.
Definate
Deep Core Mining Inc.
Caldari State
#64 - 2014-03-11 00:50:20 UTC
Just wanted to say thanks 0mni for your help.
0mni Ca
Brutor Tribe
Minmatar Republic
#65 - 2014-03-14 22:40:02 UTC
tomd741
Pure Victory
#66 - 2014-03-16 21:04:05 UTC


Thought I was going crazy when it said DB columns weren't there all the sudden. I had to manually remove the ones I had added for the update to go through but thanks for adding that.

Check out my Bio for the Ore Buyback Calculator

tomd741
Pure Victory
#67 - 2014-03-16 21:59:25 UTC
Also since this update I'm not seeing my cron job complete. Its been spinning for 15 minutes as of now when it normally completes in ~2 minutes.

There are no errors on the cron page its just stuck spinning, nothing in the reports section, nothing in the error_log and no TS rights are being assigned.

I can see the /cron.php file running in my processes and looking in the teamspeak folder /logs I can see it that it successfully logged into the TS server via query but nothing happening

Check out my Bio for the Ore Buyback Calculator

0mni Ca
Brutor Tribe
Minmatar Republic
#68 - 2014-03-16 22:14:21 UTC
After an update, check to see if the teamspeak connection was turned off. Where you enter you TS settings, make sure the checkbox is checked and hit submit.
tomd741
Pure Victory
#69 - 2014-03-16 22:19:43 UTC
0mni Ca wrote:
After an update, check to see if the teamspeak connection was turned off. Where you enter you TS settings, make sure the checkbox is checked and hit submit.



I did find that an re-enabled it as well. Re-enabled it and ran the cron and waited another 10 min.

I've backdated to the dev version and the cron completes again in under 2 min. I've been digging through all the server logs but haven't been able to find where its getting stuck

Check out my Bio for the Ore Buyback Calculator

0mni Ca
Brutor Tribe
Minmatar Republic
#70 - 2014-03-16 22:30:44 UTC
The current DEV version is RC8, so not sure what the difference could be.
tomd741
Pure Victory
#71 - 2014-03-16 22:42:10 UTC
0mni Ca wrote:
The current DEV version is RC8, so not sure what the difference could be.


Yeah its a bit strange I ran a diff on the files and the only thing of note is the timeout change you mentioned from 60 - 3600.

I guess my server for whatever reason isn't liking that new value.

Heres a copy of the diff

diff eve_api/eve_api.cron.inc eve_api.old/eve_api.cron.inc
190c190
< 'time' => 60,
---
> 'time' => 3600,
194c194
< 'time' => 60,
---
> 'time' => 3600,
198c198
< 'time' => 60,
---
> 'time' => 3600,
202c202
< 'time' => 60,
---
> 'time' => 3600,
206c206
< 'time' => 60,
---
> 'time' => 3600,
210c210
< 'time' => 60,
---
> 'time' => 3600,
214c214
< 'time' => 60,
---
> 'time' => 3600,
diff eve_api/eve_api.info eve_api.old/eve_api.info
9,10c9,10
< ; Information added by Drupal.org packaging script on 2014-02-22
< version = "7.x-2.0-rc7+9-dev"
---
> ; Information added by Drupal.org packaging script on 2014-03-14
> version = "7.x-2.0-rc8"
13c13
< datestamp = "1393105730"
---
> datestamp = "1394837005"
diff eve_api/eve_api.install eve_api.old/eve_api.install
243a244,249
> 'factionID' => array(
> 'description' => 'Faction id character belongs to.',
> ) + $big_int,
> 'factionName' => array(
> 'description' => 'Faction name character belongs to.',
> ) + $varchar,
596a603,606
> 'senderName' => array(
> 'description' => 'The Senders Name.',
> 'not null' => TRUE,

Check out my Bio for the Ore Buyback Calculator

Tyrendian Biohazard
The Bastards
Sedition.
#72 - 2014-03-23 01:10:00 UTC
I'm working on this for some fun. Using XAMPP install with Drupal on Windows (I'm a primarily hardware guy, so I went the easy way for the install). It seems to be failing on the API key entry for corp, not being able to get the XML information.

Quote:
EVE API returned an error with the HTTP request. (APIKeyInfo?keyID=SNIPPED&vCode=SNIPPED) Error: String could not be parsed as XML


XAMPP: 1.8.3
PHP: 5.5.9

If I've read everything correctly, based on this comments here and the reading I've done, the PHP installed should have everything necessary to handle this. Thoughts?

Twitch streamer and EVE NT tournament broadcaster.

0mni Ca
Brutor Tribe
Minmatar Republic
#73 - 2014-03-23 05:31:27 UTC
Tyrendian Biohazard wrote:
I'm working on this for some fun. Using XAMPP install with Drupal on Windows (I'm a primarily hardware guy, so I went the easy way for the install). It seems to be failing on the API key entry for corp, not being able to get the XML information.

Quote:
EVE API returned an error with the HTTP request. (APIKeyInfo?keyID=SNIPPED&vCode=SNIPPED) Error: String could not be parsed as XML


XAMPP: 1.8.3
PHP: 5.5.9

If I've read everything correctly, based on this comments here and the reading I've done, the PHP installed should have everything necessary to handle this. Thoughts?


Use EVEMON and pull the API Key Info through its built in tester. Problem is likely due to a bad API Key.
Tyrendian Biohazard
The Bastards
Sedition.
#74 - 2014-03-23 13:05:03 UTC
0mni Ca wrote:


Use EVEMON and pull the API Key Info through its built in tester. Problem is likely due to a bad API Key.


I'm assuming the API tester doesn't pull the actual data, but just the capable rows/columns under the API key provided. That being the case, it is able to see the wallet divisions, member security, etc of the alt corp I am testing with without any issue.

Twitch streamer and EVE NT tournament broadcaster.

0mni Ca
Brutor Tribe
Minmatar Republic
#75 - 2014-03-23 18:31:42 UTC
No, it pulls the actual data as a XML file, if you can see the XML file, then it should be okay and the problem is due to your server setup. Maybe your missing CURL or XML was not compiled with PHP. It could be any number of things. Basically the message is saying it got something back from api.eveonline.com but it was not valid XML. With a proper response, it will be valid XML.
Tyrendian Biohazard
The Bastards
Sedition.
#76 - 2014-03-25 18:06:35 UTC
Double checked everything on the api with the tester and it works fine. All information is showing as it should, wallet, transactions, etc. Any other recommendations?

Twitch streamer and EVE NT tournament broadcaster.

0mni Ca
Brutor Tribe
Minmatar Republic
#77 - 2014-03-25 22:25:34 UTC  |  Edited by: 0mni Ca
Tyrendian Biohazard wrote:
Double checked everything on the api with the tester and it works fine. All information is showing as it should, wallet, transactions, etc. Any other recommendations?

Firewall preventing access, not sure, issue is likely isolated to your xmapp install. Coluld also be memory or script run issue with your php config.
Tyrendian Biohazard
The Bastards
Sedition.
#78 - 2014-03-27 19:48:46 UTC
Working with a buddy of mine we were able to modify eve_api.api.inc to get it working. Pastebin of the modified file is below.

http://pastebin.com/GC6qhy3v

Twitch streamer and EVE NT tournament broadcaster.

0mni Ca
Brutor Tribe
Minmatar Republic
#79 - 2014-03-27 23:20:31 UTC
Tyrendian Biohazard wrote:
Working with a buddy of mine we were able to modify eve_api.api.inc to get it working. Pastebin of the modified file is below.

http://pastebin.com/GC6qhy3v

Issue is with your php config.
Bakla Firoz
Center for Advanced Studies
Gallente Federation
#80 - 2014-04-10 07:01:58 UTC
You sir, are awesome for developing this :)
If I was a multiboxer I'd log on all the alts just to +1 it.

Thank you very much. Keep up the good work!