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.
 

Yapeal PHP API library (version 1.0.5)

First post
Author
Dragonaire
Here there be Dragons
#281 - 2012-04-27 16:13:19 UTC
Hi all decided I should push out a few fixes I've made. Most of them came from stuff found with some new inspections that have been added to PhpStorm 4.0.1. They added some better support for checking exceptions etc which found a few that I'd missed documenting plus a few parameter and return type problems. There was a few other minor bug fixes in the code mixed in I think from before as well but nothing that really broke stuff just not as well done as I'd like coding wise.

version 12.118.0900

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Lotso Arjar
The Multinational Company.
#282 - 2012-05-08 21:28:38 UTC
Hello,


I'm very excited about the databasing possibilities(never done databasing before), and have just finished the install of the latest Yapeal with Mysql 5.1.63, php-3.5.12 VC9 version, and Apache 2.2.29(also VC9 compatible...just mentioning for info), and when running the 'createMySQLTables.php' , got the following:




Failed to execute schema for account
Failed to execute schema for char
Failed to execute schema for corp
Failed to execute schema for eve
Failed to execute schema for map
Failed to execute schema for server
Failed to execute schema for server
There were problems during processing please check any error messages from above and correct.


Is this because my database's head is completely empty as far as data goes? ..because it did create 115 rows of table.



Thanks!
Lotso
Dragonaire
Here there be Dragons
#283 - 2012-05-09 06:00:04 UTC
Try running install/checkForRequirements.php and see if it picks up any more problems. Also make sure you didn't miss a step in INSTALL.md.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Dragonaire
Here there be Dragons
#284 - 2012-06-03 19:38:42 UTC
Hi everybody,
Thought it was time to let people know I'm still working on Yapeal etc. Development has slowed as other projects have been the priority lately but I'm still working on Yapeal from time to time as well. What has me especially doing an update now is something I read in another thread that got me to thinking about something in Yapeal. Historically Yapeal has had most of the API sections turned off do to many reasons like logs filling up with error messages when no characters/corporations were added to the utilRegistered* tables plus other issues but since none of those issues exist anymore I've decided to change the default so all sections are on by default going forward. This should also help many people when they first are trying out Yapeal since one of the more common questions is why their stuff doesn't work after adding data to the utilRegistered* tables. I'm not going to change which APIs are active in each section from the current defaults so you may still need to make those changes yourself in the masks.

There are a few other minor changes as well in the new version but they are mostly just comment updates.

version 12.155.1909

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Buuuh Erquilenne
The Scope
Gallente Federation
#285 - 2012-06-10 20:14:33 UTC  |  Edited by: Buuuh Erquilenne
Is there a way to see the API cooldowns, when using yapeal?
Regarding ccp manual, corpwalltettransactions should have a cooldown of 15 Minutes, but it updates only after several hours.
I haven't found any errorlog or something similar.
Maybe yapeal stops updating after som sections fails do update?

This is really anoying.

i'm using the standard yapeal.php for updateing the database.
Dragonaire
Here there be Dragons
#286 - 2012-06-17 14:51:42 UTC  |  Edited by: Dragonaire
Quote:
Is there a way to see the API cooldowns, when using yapeal?
Look at utilCachedUntil table to see when it will next try to get the API.

Quote:
Regarding ccp manual, corpwalltettransactions should have a cooldown of 15 Minutes, but it updates only after several hours.
Think that's cause by changes CCP has been making for unified innovatory so you might try reporting it to them.

Quote:
I haven't found any errorlog or something similar.
I Sorry to hear it's running without an errors for youTwisted If it ever does have some errors you might try looking in log/ directory since that's where they get put.

Quote:
Maybe yapeal stops updating after som sections fails do update?
Shouldn't ever do that but also remember it expects to be ran every minute from a crontab or scheduled task.

Quote:
This is really anoying.
Sorry about that but maybe you should slow down just a little and try a little reading and things might be easier for you.

i'm using the standard yapeal.php for updateing the database.

BTW have you tried read the stuff in the Wiki a lot of your questions are answered there.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

PsyKzz
Republic Military School
Minmatar Republic
#287 - 2012-06-26 23:54:39 UTC
I seem to be having troubles updating with adoSchema
Looking through the code i've added a few outputs to know how far the script gets but it hands indefinably on:

createMySQLTables.php
Line (150) :
Quote:
$result = $schema->ExecuteSchema($sql);


I've got quite an old version of Yapeal that i am trying to update maybe that is the cause?
I would prefer not having to start the DB again and dont know if you know a way i can update without a loss of data?

Quick notes: Executed via cli, running PHP 5.3.3.

Meh.

Dragonaire
Here there be Dragons
#288 - 2012-06-27 16:04:27 UTC
As always make sure you've backed up your data before trying to update it. To try figuring out what part of the SQL isn't working look in the cache/ADOdb/ directory and try running the SQL files you'll find there starting with util.sql. you can either run them directly with MySQL on the command line or through PhpMyAdmin. You can also look at the SQL in the files to have some idea what has changed but often the best way to find the differences is to run the script on a new empty DB and compare it with your current one.

As a general warning for everyone it's important to keep up with the current versions on Yapeal because though usually the individual updates rarely break anything and can be done automatically by the scripts upgrading over several versions can be more than they can handle and you'll end up having to do part of it manually.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Gilgamoth
Eldritch Storm
#289 - 2012-07-18 10:57:37 UTC
I've just installed the latest Yapeal and got an error that the corporationName field in evecorporationskillslastweek was too short as it tried to put a 36 character name into a 32 character field.

I updated it to 64 chars and it worked.
Dragonaire
Here there be Dragons
#290 - 2012-07-18 15:26:10 UTC
Thanks for letting me know last I'd checked CCP limited all names to 32 characters but I guess maybe they've changed that now. I'm wondering one thing with that name did it use any non-English characters by chance?

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Gilgamoth
Eldritch Storm
#291 - 2012-07-18 18:30:24 UTC
Hmm no was all English characters that I could see, and it's not in there now. The longest is "Mentally Unstable Enterprises" at 30 characters. You might be able to grab the XML file directly and have a look at that.

Also I seem to be getting a lot of these errors

2012-07-18 18:15:26.975
WARN: Insert/upsert failed for utilCachedUntil
File: D:\yapeal\class\YapealQueryBuilder.php(493)

and occasionally these

2012-07-18 18:15:16.031
WARN: Insert/upsert failed for charSkillQueue
File: D:\yapeal\class\YapealQueryBuilder.php(493)
Dragonaire
Here there be Dragons
#292 - 2012-07-19 04:42:07 UTC
Sounds just like they have lifted the length limit I'll update Yapeal and push it out the next time I get a chance.

Your errors would seem to be your MySQL not being able to keep up or something. as both of your examples are for tables that only do small inserts. I'd check you MySQL config and make sure it's optimized for the system you have it running on.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Gilgamoth
Eldritch Storm
#293 - 2012-07-19 08:08:48 UTC
Dragonaire wrote:
Sounds just like they have lifted the length limit I'll update Yapeal and push it out the next time I get a chance.

That might have been when they updated the item ID's to 64bit, they may have increased other limits (complete guess!) Lol

Dragonaire wrote:
Your errors would seem to be your MySQL not being able to keep up or something. as both of your examples are for tables that only do small inserts. I'd check you MySQL config and make sure it's optimized for the system you have it running on.

Any ideas where to look? It's just got the default 5.5.24 MySQL install on it.
Gilgamoth
Eldritch Storm
#294 - 2012-07-24 13:23:45 UTC
I got that length error again on a different table this time but just to show the Corp Name
Quote:
ERROR: mysqli error: [1406: Data too long for column 'corporationName' at row 10] in adodb_throw(insert into `eveCorporationsVictoryPointsYesterday` (`corporationID`,`corporationName`,`victoryPoints`) values (676960401,'Minmatar Ship Construction Services',606), )

Also, still getting those MySQL errors
Quote:
2012-07-24 13:20:24.087
WARN: Insert/upsert failed for charSkillQueue
File: D:\yapeal\class\YapealQueryBuilder.php(493)

Any way of finding out which query is causing the error so I can debug further?
Lluerssen
PHUB Corporation
MOONFIRE.
#295 - 2012-07-26 02:24:09 UTC  |  Edited by: Lluerssen
Have a problem, i got 2 characters in yapeal. Lluerssen transfered 15m ISK to Ark Stragoi. After 10+ hours, i dont see entry in yapeal. E.g.:

91988948 1000 15000000.00 0 49732229.76 2012-07-25 15:37:34 288176544 91988948 Lluerssen Ark Stragoi 6161904320 10 0.00 0
// this is data from Ark's Journal

But there is no -15000000.00 row for Lluerssen...
If i go into https://api.eveonline.com/char/WalletJournal.xml.aspx?keyID=...&vCode=...&characterID=288176544

I'll see:

< row date="2012-07-25 15:37:34" refID="6161904320" refTypeID="10" ownerName1="Lluerssen" ownerID1="288176544" ownerName2="Ark Stragoi" ownerID2="91988948" argName1="" argID1="0" amount="-15000000.00" balance="518623910.65" reason="" taxReceiverID="" taxAmount="" />

And this is ≈ 20 row in XML...

[UPD]
Interested, after i search in yapeal's journal for "6161904320" i've found ark's entry -.-

[UPD]
found http://community.eveonline.com/ingameboard.asp?a=topic&threadID=764508 with some good answers...
Yapeal DEV, why not just ignore merging of "refIDs" ?
Why? Because "amount field" different =P

Sister of EvE: http://SisterOfEvE.ru/ Loot History Analyzer: http://SisterOfEvE.ru/loot_history/

Dragonaire
Here there be Dragons
#296 - 2012-07-30 06:34:54 UTC
@Lluerssen
First that's a very old tread from when they regularly reset the refIDs which no longer happens also if you pay attention Yapeal will include both records since ownerID, refID are used as the primary key so if you aren't seeing both of them in the Db it might be the query you are using to find them. If I understand right when you did a search you did end up seeing them both. In the char table ownerID is sent to the charID and in the corp one it's the corpID. The only time there can be a problem is when a char buys from their own sell order or the same for the corp. You still have a record but which one you'll get (buy or sell) can be random and due to no guarantee from the API on record ordering can change each time it's received P

@Gilgamoth
I'll try to update all of the name columns to be longer and push it out over the next couple of days.

Probably the best thing to do for the charSkillQueue error is to look at the XML and see what might be strange about it that causes the error. Also look for other errors just above it in the logs that start with either 'Row was missing required fields ...' or 'Row has extra unknown fields ...' which should give you some idea what's going wrong.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Dragonaire
Here there be Dragons
#297 - 2012-07-31 05:25:57 UTC
Ok I've pushed out a new version that should have fixed the last of the char/corp name problems. Had a couple of other minor fixes as well.

version 12.213.0517

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Lluerssen
PHUB Corporation
MOONFIRE.
#298 - 2012-07-31 13:09:31 UTC
Dragonaire wrote:
Ok I've pushed out a new version that should have fixed the last of the char/corp name problems. Had a couple of other minor fixes as well.

version 12.213.0517


Thanks Dragon, i've found my problem, activeAPIMask change for character at some time, and it just stopped quering -.- :D

Sister of EvE: http://SisterOfEvE.ru/ Loot History Analyzer: http://SisterOfEvE.ru/loot_history/

Gilgamoth
Eldritch Storm
#299 - 2012-07-31 18:25:09 UTC
Dragonaire wrote:
@Gilgamoth
I'll try to update all of the name columns to be longer and push it out over the next couple of days.

Probably the best thing to do for the charSkillQueue error is to look at the XML and see what might be strange about it that causes the error. Also look for other errors just above it in the logs that start with either 'Row was missing required fields ...' or 'Row has extra unknown fields ...' which should give you some idea what's going wrong.

There are no other errors in the logs other than those two errors with log_level=E_ALL and trace_enabled=FALSE. If I get time I'll update to the latest version and see if the errors go away.
Mikokoel
Mining Industry Exile Foundation
Synergy of Steel
#300 - 2012-08-14 16:05:34 UTC  |  Edited by: Mikokoel
Hello Dragonaire,

I have been using Yapeal since more than a year now. Great software!

I recently had some problems with "Operations being to slow". The 12 Bytes per 10s thing. After that I noticed I haven't updated since half a year and quickly changed that.

Since 3 days, the cronjob running Yapeal doesn't output anything, but there are no log files and no updates in the database.

I double-checked my config files (including new logger).

After running checkForRequirements (again via cronjob, damn it webhosting package), it finally gave me the hint that i need PHP 5.2.8. Sadly i only have 5.2.6 and i don't know if i can tell my provider to upgrade it. Is it really needed? And if so, is that the reason why yapeal stopped working without saying anything?^^.

It really drove me crazy the last days...

Greetings

Mikokoel

Edit: Nevermind, fixed it

Mikokoel | Head FC League of Unaligned Master Pilots