Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 .. 24 :: [one page] |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Dragonaire
Caldari Corax.
|
Posted - 2008.10.22 17:56:00 -
[1]
Hi all I've started a new SourceForge project for people to look at. It's based on some code I've been developing for a while and I decided to release it under GNU LPGL 3.0 in hopes others would find it useful.
http://sourceforge.net/projects/yapeal/ -- Finds camping stations from the inside much easier. Been known to write some PHP code for API from time to time too. |
Dragonaire
Caldari Corax.
|
Posted - 2008.10.22 18:00:00 -
[2]
Reserved for future posts -- Finds camping stations from the inside much easier. Been known to write some PHP code for API from time to time too. |
Dragonaire
Caldari Corax.
|
Posted - 2008.10.25 23:14:00 -
[3]
New version 0.1.0 available sorry for the broken one had up before. Not that this one might not have bugs but it should at least try to run ;) Also added MySQL files to build Database to db-tools directory. |
Rehtom Lamina
Coalition of Nations Free Trade Zone.
|
Posted - 2008.10.27 14:46:00 -
[4]
will download and have a play tonight.
|
Dragonaire
Caldari Corax.
|
Posted - 2008.10.29 00:11:00 -
[5]
Ok been doing a lot of bug hunting and seem to have eve and corp API stuff working but still working on the char part. Needed to make a couple changes to the membertracking table so you'll need to drop and re-create it for everything to work. I'm not doing a release at this point so if you want the most current code need to get it from the subversion.
svn co https://yapeal.svn.sourceforge.net/svnroot/yapeal/trunk/ -- Finds camping stations from the inside much easier. Been known to write some PHP code for API from time to time too. |
Dragonaire
Caldari Corax.
|
Posted - 2008.11.02 20:59:00 -
[6]
I've moved the project over to google code so it's easier for me to manage along with another project I'm working on now. -- Finds camping stations from the inside much easier. Been known to write some PHP code for API from time to time too. |
Dragonaire
Caldari Corax.
|
Posted - 2008.11.18 00:56:00 -
[7]
Ok after over 200 revisions according to subversion I think I've killed all the previous bugs that made it unusable. It's got a lot of fixes to database code since I've changed over to using ADOdb (included) instead of MDB2. Yapeal is now fully PEAR free so it should be much easier to install and use. |
Rehtom Lamina
ECM Space Patrol
|
Posted - 2008.11.19 10:49:00 -
[8]
Good work ------ Sig -------
Selling unique, one off web design, Link |
oUTSKIRTs
|
Posted - 2008.11.20 15:47:00 -
[9]
This is really cool, almost everything seems to be working now, the things that doesn't work right now, did work at some point during the revisions, so i'm excited to see how this project will turn out. Right now my cron job is doing exactly what it is supposed to (exept for at the moment 4 tables not being updated due to missing indexes or upper/lowercase issues that i noticed you're hard at work on fixing). Tables not updating is: fuel, starbasedetail, IndustryJobs and MarketOrders
I haven't checked this latest revision 228 out, yet, waiting for cache timer (so tired of that). Thank you for this, it is really really usefull to get rid of the xml problems and get right to work on a database instead. Awesome!
|
Dragonaire
Caldari Corax.
|
Posted - 2008.11.21 02:36:00 -
[10]
Thanks I'm killing bugs as fast as I find them but going to need some help from someone with some of the ones you talked about because the alt I'm using doesn't own any POS so that might make it hard testing
My original code that I extracted Yapeal from had all the eve/ and corp/ stuff I used working but with breaking it out into separate project, changing DB structure, and switching DB libraries many things ended up broken
I decided to work on the char/ stuff first this time since I'd never got around to making it all work before since my other project was mostly corp stuff and usually once it's working for one it's easy to move changes into the other code. That only leaves the few things that's unique to each to fix if they are still broken.
I'm up to revision 249 at this time so look for some more changes to be pushed back into trunk when I'm sure they're work. I'm trying to leave trunk as the more stable branch now that it's starting to work and I don't feel like I'm losing ground like before with it
Also a trick I use during debugging is to have the XML caching on and then delete the records in the CachedUntil table for main script 'eve-api-pull' and which even one I'm test like 'MarketOrder' then see if it works or doesn't It's absolute need when working with AssetList and that 23 hour timer As long as it has a good cache file it doesn't try grabbing one from API and you can cheat on that to for testing by just changing the time in XML. Saves me a lot of 101 errors from API during testing and the server from some of the worse of my typos |
|
oUTSKIRTs
|
Posted - 2008.11.21 12:40:00 -
[11]
It's looking good, nice work!
I am doing some tests here and there, and I like the cache feature a lot, i was trying to get the whole deal to connect through an api-proxy - so that other people still have their eve-mon when i pull the data to this db, but it seems to fail horribly right away. It is probably the proxy stuff not doing it just right. Not really important at this point.
A few more things I have noticed, that I forgot to mention:
There is a table in Yapeal.sql called 'logo' - but the program is calling it as 'corplogo' when trying to access it. It works fine by just renaming the table in the sql.
The starbasedetails (and i think 'fuel' too) table is actually gone from yapeal.sql None of them get any data imported any longer, it has been gone for a while, i think i still have the revision that was infact pulling these two tables allright a while back.. Somewhere.. :)
In the marketorders table, there is a field called "range", very nasty name for a database field - this is also the name of a mysql function, making it fail unless in backtics or maybe calling the field something else might be better... Some say they have tables called range without noticing the problem, really I think it would be better to call it something else. I can see how that might become slightly impractical to say the least, but looking at your code im pretty amazed, you know your stuff and im sure you'll think of something lol
Other than that -- my database is alive, it's
Really close, keep it up ..
|
Dragonaire
Caldari Corax.
|
Posted - 2008.11.21 17:50:00 -
[12]
Glad you like it and thanks for the catch on the logo table but it was the PHP that was wrong. All the tables and fields are directly named from the fields in the API so when there's a difference on something look at Eve-Dev or in the XML for what it should be. So in the case of 'logo' it's now logo everywhere like it was meant to be.
As to the 'range' field yes it sucks and there's a couple others but that what CCP used so that what I use and I just have to make sure I use the back-ticks or let ADOdb take care of any quoting for stuff like that.
I drop the other POS stuff for now because I felt it needed done differently and didn't have time to mess with it right now and no way to test it but I think I'll have some friends from another project to help me out with that now.
My naming for all the main tables should be in CamelCase just like the API calls are and the "sub" tables as I call them follow the XML which seems to be camelCase. The fields are also in camelCase so far anyway so that's what I'm using. For all the backend administration tables they should follow the same naming as well and as I am getting around to it I'm converting all the naming of class, functions, methods, and variables to follow PEAR conventions with a few mods here and there. Example with the function named 'getAPIinfo' I should uppercase the second 'I' and had the 'pi' lowercase but just didn't look right to me and didn't want to re-name it either
Hope this has been helpful on see where some of the changes I'm make are coming from when not smashing bugs as I find them
I've never tested it with any of the proxies out there but did make it so that any that act just like the API should work fine after all what we get from CCP is all through a proxy already on their end. Even if other proxies only follow the API naming and return XML and normal HTTP errors it should work but it would probably lose some of the special caching extras I've built in to work with the main API. -- Finds camping stations from the inside much easier. Been known to write some PHP code for API from time to time too. |
oUTSKIRTs
|
Posted - 2008.11.21 18:15:00 -
[13]
This is probably not the way to fix this, but..
Quote:
function makeMultiUpsert(array $data, array $params, $table, $dsn) { // Need this so we can do quoting. $con = connect($dsn); $needsQuote = array('C', 'X', 'D', 'T'); // Build query sections $insert = 'insert into ' . $table . ' (`'; $insert.= implode('`,`', array_keys($params)) . '`)';
... a little further down ...
// Loop thru and build update section. $updates = array(); foreach($params as $k => $v) { $updates[] = "`" . $k . "`" . '=values(' . "`" . $k . "`" . ')'; };
Function taken from the common_db file.
I just punched in some backticks around the fields, and well.. it worked.. I think it shouldn't break anything else :) The table is updated, and it looks kinda ok to me.
|
Dragonaire
Caldari Corax.
|
Posted - 2008.11.21 21:47:00 -
[14]
Never had any problem in that function with 'range' etc because MySQL is smart enough to know that you can't have it inside the insert (range) ... values() ... in duplicate key update range=values('range') statement that it's building and adding extra back-ticks might break it. What I need to do is change to using a prepare, execute instead but I haven't yet because I figured I'd run into trouble some where along the line between my code , ADOdb, and MySQL because of the on duplicate key update part. I didn't figure out a way to make it work with MDB2 but I should take another look at it now with ADOdb and see if it could work. It should be a bit faster to, although that doesn't seem to be much of a problem once I started using transactions for the larger updates of WalletJournal, etc. I've seen an up to 10x speed up since using the transactions. It has to do with DB not have to do as much locking it seems. There was even measurable differences down to 10 records level which is what others have posted on-line so that why you'll see I check for number of records in multipleUpsert() and use transactions for the larger ones now. |
oUTSKIRTs
|
Posted - 2008.11.22 00:11:00 -
[15]
Just checked out rev. 266 and it looks like it is doing the range thing correctly
Real good job
|
Dragonaire
Caldari Corax.
|
Posted - 2008.11.22 01:16:00 -
[16]
Ok transfered all the fixes from char/ to corp/ and everything seems to be working. Can't test StarbaseList at this time so it's only one I really has any questions about. Did a complete drop and re-create on DB and everything works so it seems the code and SQL are in sync now finally. Still might have a few bugs but I've began to test it in crontab off and on now that it seem to be stable enough. It's not like I've ever had it caused problems just wouldn't always run right and filling up it's logs much faster then I could use while fixing problems -- Finds camping stations from the inside much easier. Been known to write some PHP code for API from time to time too. |
oUTSKIRTs
|
Posted - 2008.11.22 13:09:00 -
[17]
StarbaseList is updating correctly, you also got the certificates right first time around. Man I totally like this stuff :)
Could you use my cache files to test with?
|
Dragonaire
Caldari Corax.
|
Posted - 2008.11.23 01:28:00 -
[18]
Yep certificates was an easy one to do and for now I'm going to keep try to fill in some of the missing sub-tables before I really try adding more to it. I've had it run now with crontab for over 12 hours and it's never glitch even though API did once or twice on me Been trying it on another hosted site with someone else's info and had a few problems but think it's something not configured right on site and we'll have to wait a couple days until owner is back in town to make some changes. Thanks for the offer on the cache files we'll see how it goes and if I decide to get the POS stuff wrote back in (it's commented out right now) I might contact you about them if friend doesn't get back where I can use him as guinea pig first -- Finds camping stations from the inside much easier. Been known to write some PHP code for API from time to time too. |
Dragonaire
Caldari Corax.
|
Posted - 2008.11.23 19:55:00 -
[19]
Ok did some looking around on prepare/execute in ADOdb and found that because mysql does things a little different they only emulate using prepare with it. Since that basically what I'm doing already I might as well use my code as their's While I was looking up stuff on prepare/execute in the MySQL manual I also decided to take another look at the stuff on insert and update about the quoting and decide even though I was right that it worked without problems as is, you were right oUTSKIRTs that the field names should be quoted with the back-ticks to insure no future problems so I've added them now in the latest versions. Glad you said something that made me take another look at it. Have them in there should help cut off some possible mystery bugs if MySQL purser changes or they add something to API in the future that could break it. -- Finds camping stations from the inside much easier. Been known to write some PHP code for API from time to time too. |
oUTSKIRTs
|
Posted - 2008.11.24 16:48:00 -
[20]
Thanks for continuing the work on this!
Just following up, the back-tick thing worked ok and look nice and solid too. However some of the changes from rev 274 and up must've somehow cracked the whole deal out, I'll leave my cron running hourly tho, incase it's another temp eve-api oddity, which i doubt actually, I think there is a little something somewhere...
What happens is this: Nothing - pretty much absolutely nothing that I can see
I cleared the cacheduntill table, but it doesn't even update/create the 'eve-api-pull' record, no logs created even with trace on and trace level above 0, trace set to 'all'. It'll just exit, after a short pause - like a second or so - it does SOMETHING that's for sure, and it doesn't exit with any error - no output at all. Rather odd.
The ./cache/* dirs are all writeable. I'll take a look later, will also 'restart' from the svn source with a fresh database and basically crawl the script a bit to see what's up incase you have no idea what this could be and that there could be something that didn't sync correctly (i *might* have a few local changes, but I'm almost 100% sure i have rolled all changes back each time before a sync)
I'm a little too busy the next few days to really go too much into it, but i'll be watching the svn closely :)
|
|
Dragonaire
Caldari Corax.
|
Posted - 2008.11.24 20:32:00 -
[21]
Yeah sorry about that broke it for a couple there but 280-281 works again I just committed what I was working on to test it and had to fix it only took a few minutes but seems you grabbed it while still broken Usually when I break stuff like that you'll start getting error and warning logs in cache/log/ as long is you have them turned on in ini which are on by default. -- Finds camping stations from the inside much easier. Been known to write some PHP code for API from time to time too. |
oUTSKIRTs
|
Posted - 2008.11.24 22:39:00 -
[22]
A fresh svn got it back up and running just now
|
Dragonaire
Caldari Corax.
|
Posted - 2008.11.29 20:09:00 -
[23]
Just in case you hadn't noticed Yapeal doesn't have anything implemented to deal with the generation change that has happened with the wallet journal transaction Id. You can read more about the problem in this thread:
Journal API RefID change
I'd kind of forgot about them doing this so hadn't done anything to work around the problem (really was hoping CCP would just move to a bigint) but since they don't seem to plan on do that I'll be looking at a way to work around their bug Since I'm already using bigint for all ID type fields in the database it shouldn't be hard to work something out but main problem will be dealing with php5's lack of an native bigint. I'll update here as I decided on how to deal with it. -- Finds camping stations from the inside much easier. Been known to write some PHP code for API from time to time too. |
Grim
Amarr Fallen Angel's Blade.
|
Posted - 2008.11.30 05:10:00 -
[24]
Very nice, major props. Coding an assets pricer and viewer. It is very interesting because I am getting 3 databases to work together as one, one from eve central, the mysql item dump, and the ui. So, I have to say it is quite a challenge.
- Grim -- Death By Titan :( |
Dragonaire
Caldari Corax.
|
Posted - 2008.12.02 23:44:00 -
[25]
Added a new incomplete RegisteredCharacterManagement class and some helper files. Plan on having a couple more for Corporation, and User plus maybe ones to manage groups/ collections of the above. Thought I'd get some feedback on wither someone out there thinks they might be useful and maybe be willing to do some of the testing for me when I finish it up
Still working on the WalletJournal generations stuff hope to have something to test in a couple days on that. -- Finds camping stations from the inside much easier. Been known to write some PHP code for API from time to time too. |
ThyShiva
|
Posted - 2008.12.16 23:19:00 -
[26]
Hi, I downloaded the Yapeal code on the 1st Dec so will still have to look at you newest release.
Out the box and after configuring the yapeal.ini file, the alliancelist, conquerablestationlist, errorlist, reftypes and serverstatus tables were populated.
At first I only populated the registereduser table with my Eve details but my char data did not download. Only after reading the code did I realise that registeredcharacter table must have data in it too. There seems to be a step missing because the avg user will not have the information you need to populate registeredcharacter table.
I see youÆre looking for a tester, put my name on that list as your project lends itself nicely to my current distraction.
-Shiva
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.17 16:52:00 -
[27]
Hi glad to hear someone else finds it useful
The basic information need for the RegisteredCharacter table can be found with a call to /account/Characters which only needs the info from RegisteredUser to get. Setting up and 'registering' characters, corporations, or users is a frontend application function so that why I really haven't added anything in Yapeal for doing it. I have been playing around with some ideas for managing those tables which you can check out in RegisteredAccountManagement.class.php and RegisteredCharacterManagement.class.php. They are untested and just some ideas I've have on how to do it. I've done a little more work on some of the ideas in a branch but it's tied in with some other changes I've been looking at making and I'm not ready show it to others until I've worked on it some more.
For something that's more of a application framework you should look at another project I'm working on with some others at EMPA. It mostly in the planning/outline stage without any real code but it was a large part of the driving force behind the changes to the design of Yapeal. -- Finds camping stations from the inside much easier. Been known to write some PHP code for API from time to time too. |
Tanja Torture
|
Posted - 2008.12.18 13:49:00 -
[28]
Hi Dragonaire
I've setup yapeal on my server. I use one database only (I only filled the first DNS and left the rest commented). After I inserted an entry for RegistredUser and RegistredCharacter. When I run the eve-api-pull.php through "php5 eve-api-pull.php", I get the following message:
Quote:
[2008-12-18 13:40:45.651] Tired of waiting! Getting eve-api-pull for 0 [2008-12-18 13:40:45.658] Tired of waiting! Getting CharacterSheet for 91xxxxx
But the charactersheet and all others tables except "ChachedUntil" stay empty. What I'm doing wrong? I use revision 312.
greets Tanja
|
ThyShiva
|
Posted - 2008.12.18 17:33:00 -
[29]
Tanja û have a look in the Yapeal_warning.log file in the \cache\log directory for any clues, also have a look inside the directory \cache\char for any xml files û they often have a clue to the error too.
Dragonaire û Thanks for the help and new classes û IÆll play with them over the next few days. IÆm looking into asset management as part on my project and I have noticed that you are storing the station location of the asset but not storing what container/ship the asset is in. You will need to store the container/ship ID the asset is in, either in a new field or by replacing locationID with the itemID of the container/ship. I would think a new field is the best way forward.
-Shiva
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.19 00:28:00 -
[30]
Tanja Torture - Make sure you set `isActive`=1 but from the error messages you give it seems you have. The 'Tired of waiting ...' can mean one of two things either you never tried get that API before so there's nothing in cachedUntil to compare with or it's now more than ~5 minutes pass when cachedUntil says that API expired. It's just a notice really that I setup to help keep track when the API is acting up and let you know it's doing something and follow ThyShiva advise if that still doesn't seem to let you figure it out try turning on some of the trace stuff and look in cache/log/Yapeal_trace.log and see if you can find where it's getting to. I'll need that information to help narrow it down more.
ThyShiva - You'll want to learn about 'nested sets' and how you use the `lft` and `rgt` fields to find what is inside what. Basic idea is if item is inside of something else the child's lft > parent's lft and child's rgt < parent's rgt. You can find more information about it in HierarchicalData which is from another project I'm working on with some other people.
If you or others are interested in help with that project you'd be more than welcome as we've seemed to have stalled a bit after the planning stage We basically want to make a GPL'd modular API application framework that will bring all our varies other API projects together into one and then expand out from there. Like to see all the people working on API applications not be reinventing the wheel so much and get out something we can all use and contribute to so it can become truly useful for everyone. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
|
Tanja Torture
|
Posted - 2008.12.19 06:00:00 -
[31]
Thx for your fast response. I've changed now the trace settings to trace_all. And yes the isActive field is set to 1. Now I get the following:
Quote:
[2008-12-19 05:43:34.747] DATABASE: Before connect for mysqlt://webX:password@localhost/eve_dbo?new in common_db.in [2008-12-19 05:43:34.754] DATABASE: Before connect for mysqlt://webX:password@localhost/eve_dbo?new in common_db.in [2008-12-19 05:43:34.755] Tired of waiting! Getting eve-api-pull for 0 [2008-12-19 05:43:34.756] DATABASE: Before connect for mysqlt://webX:password@localhost/eve_dbo?new in common_db.in [2008-12-19 05:43:34.756] DATABASE: Before connect for mysqlt://webX:password@localhost/eve_dbo?new in common_db.in [2008-12-19 05:43:34.757] CHAR: Connect before section in eve-api-pull.php [2008-12-19 05:43:34.757] DATABASE: Before connect for mysqlt://webX:password@localhost/eve_dbo?new in common_db.in [2008-12-19 05:43:34.757] CHAR: Before GetAll $charList in eve-api-pull.php [2008-12-19 05:43:34.758] CHAR: Before require pulls_char.inc [2008-12-19 05:43:34.761] DATABASE: Before connect for mysqlt://webX:password@localhost/eve_dbo?new in common_db.in [2008-12-19 05:43:34.762] Tired of waiting! Getting CharacterSheet for 9XXXXXXX
The chache directory only contains the Yapeal_notice.log which contains the messages from my last post. I have no clue if it is something with the database. But the chachedUntil field gets filled. So it can't be that wrong, I think... but I've never used AdoDB before... I can also send you the configuration files etc. via E-Mail if that helps. Would be nice if I can get it to work. I just love the idea of yapeal.
greets Tanja
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.19 07:38:00 -
[32]
You're the second one to have problems in that area on Yapeal so I've added some more tracing code to revision 313 to try to narrow it down a little bit more if you could grab it and we'll see if that help me figure out why. I've never had any problem with that part of the code on my test server so it's really got me puzzled what's going on. For the other guy we just copied over my code from my test server and it started work but by that time he'd also changed host so wasn't totally certain what had cause the problem before.
I'm also going to do some checking and see if it's something where I change it on my test server that didn't get back into the subversion some how. If we can't figure it out after you try new version we'll get together with E-mail and I'll take a look at your config too -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Tanja Torture
|
Posted - 2008.12.19 08:12:00 -
[33]
Well plz tell me which options and debugging lvl's should be enabled to help you. I've checked out the newsest version, but I can't see a diffrence in the messages.
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.19 08:44:00 -
[34]
Looks like you have the ones I need on already but trace_section=YAPEAL_TRACE_CHAR|YAPEAL_TRACE_DATABASE are the only ones I should need to track it down more. If that doesn't seem to add any more output try adding |YAPEAL_TRACE_REQUEST.
I'm sure you've notice but just in case you missed it Yapeal never clears the log files it just keeps added to end so you have to always scroll down to see latest run or delete them so they start fresh.
We might also try getting together in-game or on IM if we don't figure it out soon and report back to thread what we figure out the problem. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Tanja Torture
|
Posted - 2008.12.19 09:24:00 -
[35]
Well I added those options, no success. I wrote you an email with my configuration and stuff.
greets!
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.19 23:12:00 -
[36]
Ok a little update for everyone make sure curl is install on your server and phpinfo() shows something about curl because it has to be added as ext to php as well. That usually means other package has to be installed on linux system or have curl compiled into php I'll be adding some addition check to Yapeal soon also so you get error messages if it not setup right. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Ryel Theon
Epiphyte Mining and Exploration Combined Planetary Union
|
Posted - 2008.12.20 00:32:00 -
[37]
There's a bug in the table structure of MarketOrders. An API pull attempts to insert with a column named accountKey. However the table structure as defined in the .sql file in the distribution does not create MarketOrders with that column.
Adding it with the same definition found in other tables containing accountKey allows the API pull to properly populate MarketOrders.
This was with an svn checkout from today.
Thanks for the work on this. I'm only just starting to play with it but it looks good so far.
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.20 02:04:00 -
[38]
Edited by: Dragonaire on 20/12/2008 02:04:36 Thanks for the bug report but the SQL was right was bad copy&paste on my part in pulls-corp.inc that needed fixed. Market orders don't have accountKeys just ownerIDs. I've updated subversion with fix. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Ryel Theon
Epiphyte Mining and Exploration Combined Planetary Union
|
Posted - 2008.12.20 18:12:00 -
[39]
Thanks for the update. I've got another bug. I'm at svn rev 318 and running an api pull results in:
Missing file: /home/cpueve/public_html/yapeal/ADOdb/drivers/adodb-mysqlt.inc.php
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.20 20:11:00 -
[40]
Sorry about that forgot to post that you'll need to update your yapeal.ini file I change to using the mysqli driver for ADOdb and I noted it in svn commit but forgot to do so here. You'll need to change the line that reads driver="mysqlt://" to driver="mysqli://" and you'll be good. Should have been using it to start with since it's for the newer MySQL DBs not sure why I got started with the other one but thought I should change. Also means only need one file for driver instead of 2 which is always nicer You can also look in the sample ini which has the new line now too. I'm thinking about adding some kind of version info for ini file that it will check for so Yapeal can issue a warning if it's incompatible with your current one instead of just failing or that you can at least check manual for which is current and what the changes are. I don't change it very often but be nicer to have something in place. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.21 00:21:00 -
[41]
Ryel Theon - You were right to add it. There is a accountKey field for MarketOrders. I've now corrected pulls-corp.inc, pulls-char.inc, and the SQL file and added it to them all. I shouldn't try reading the forum and making changes to code when I'm half asleep I sometimes try short cutting and not double check myself against the XML files or Eve-Dev like I should So sorry everyone and reason it hadn't been caught much soon was the alt I'd been using to test with didn't have any market orders so I'd never notice it didn't work right I've now made a couple orders with that character so in the future maybe I'll notice when I break something like that The only API I wouldn't be able to test now will be StarbaseList and if I get around to adding it back StarbaseDetails.
I've push out the change to subversion revision 319 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Juloshko
Caldari Aberration Of Perdition
|
Posted - 2008.12.22 10:59:00 -
[42]
I just cant figure this out, the readme is....non existent and i dont have a clue after over 14 hours of trying
please can you help me
server windows xp with Wamp server 2.0c MySql 5.1.3
(and wtf is a cronjob?)
|
Eldstrom
|
Posted - 2008.12.22 12:51:00 -
[43]
Schedule task would be the windows equivalent to a cronjob.
Eld
|
Juloshko
Caldari Aberration Of Perdition
|
Posted - 2008.12.22 14:49:00 -
[44]
Originally by: Eldstrom Schedule task would be the windows equivalent to a cronjob.
Eld
but what am i scheduling? is it one of the php files (never done anything like cronjob before)
|
Eldstrom
|
Posted - 2008.12.22 15:21:00 -
[45]
Originally by: Juloshko
Originally by: Eldstrom Schedule task would be the windows equivalent to a cronjob.
Eld
but what am i scheduling? is it one of the php files (never done anything like cronjob before)
Sorry Juloshko I am unfamiliar with the workings of this particular API library. I would assume it would be one or more of the .php files.
Eld.
|
Ryel Theon
Epiphyte Mining and Exploration Combined Planetary Union
|
Posted - 2008.12.22 17:24:00 -
[46]
Originally by: Juloshko
but what am i scheduling? is it one of the php files (never done anything like cronjob before)
These are the steps I used to get started. I doubt this constitutes documentation of any type.
- Create a database in MySQL for your tables. Call it something like yapeal
- You'll want to run the Yapeal.sql file in that database to create all of the tables
- Copy the sample config in config/ to config/yapeal.ini and update it with the values appropriate for your system (database location, username, password)
- Create a row in yapeal.RegisteredUser containing your userid/api key info
- Create rows in yapeal.RegisteredCharacter and yapeal.RegisteredCorporation appropriate for your char/corp info and set isActive to 1 in those rows
- Run backend/eve-api-pull.php and it should populate all of those tables with the info associated with your user/corp as set above. Set it to run periodically to automatically keep your data up to date.
- Now write your favorite web applications to interact with those tables
Hope that helps.
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.22 18:01:00 -
[47]
Ryel Theon's instructions is a good summary of how to get started and yes the documentation is lacking still for how to use it. You will find the start of a user guide in the Docs directory but it is very lacking at this point and somewhat outdated.
I've only tested Yapeal on Linux myself but I did try to design it so it could be adapted for use in Windows. If someone does adapt it for a Windows system I'd like to hear about it and any changes in the code that might be needed to make it easier.
I'll try to put up some kind of summary or whatever of some of the key files in Yapeal on the wiki if I get a chance that might make it a bit easier to understand. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Dragonaire
Caldari Corax.
|
Posted - 2008.12.23 06:17:00 -
[48]
Hi everyone been working on Yapeal some more in a branch to update some stuff and thought I'd post about some of the highlights or at least what I remember doing anyway
- Added a new class for tracing and changed code to use it. The tracing code was starting to get overwhelming and had some limitations that I'm trying to overcome.
- Added new required setting in yapeal.ini needed by new tracing code. There is now another variable named trace_output that needs to be set to "file", "database", or "both". Sending the tracing information to the database isn't active yet but is being looked at for the future.
- Removed the old unused setting in yapeal.ini for use_exception since all the code had already been updated to no longer use it. It was left over from time when code used both errors and exception in areas. Code now only uses exceptions so this setting is no longer needed.
- Changed location and how the CachedUntil table is updated. In some error conditions when the database wasn't update the cachedUntil time still would be, now the cachedUntil time is set slightly in to the future and only set to cachedUntil time from XML if we actual update the related table(s). This should also let Yapeal recover quicker from temporary error conditions by API server.
- Moved the function getAPIinfo() used to get data from API into it's own file inc/common_api.inc instead of having it in the inc/common_db.inc file.
- Fixed some typos in trace and error messages and probably made some new ones Also did varies other small changes here and there to code formatting etc.
Soon as I finish posting this message I move my changes into trunk and push it out for you to get. Don't forget to update your yapeal.ini file with new settings as missing the added one will stop it from running.
revision 355 is up with the new changes enjoy. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Ramov Tinoga
Tinoga Enterprises
|
Posted - 2008.12.23 11:43:00 -
[49]
Edited by: Ramov Tinoga on 23/12/2008 11:43:20
Originally by: Dragonaire
- Moved the function getAPIinfo() used to get data from API into it's own file inc/common_api.inc instead of having it in the inc/common_db.inc file.
revision 355 is up with the new changes enjoy.
Could you please submit the new inc/common_api.inc so we can use it too?
Thank you very much for Yapeal. I look forward to do crazy stuff with it. -----
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.23 15:16:00 -
[50]
Sorry I copied over that file here but forgot to add it to the subversion for trunk revision 357 should be complete with inc/common_api.inc -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.24 00:46:00 -
[51]
Hi again someone that's been testing Yapeal for their application has found an error with the IndustryJobs table. Seems that the `installedItemLicensedProductionRunsRemaining` field is set to -1 at times but I'd made it an unsigned bigint which doesn't work so well I'm putting out an updated yapeal.sql file for everyone. Here's also the SQL to change your active tables so you shouldn't have to dump and reload your data but I would recommend doing a backup just in case anyway
ALTER TABLE `industryjobs` CHANGE `installedItemLicensedProductionRunsRemaining` `installedItemLicensedProductionRunsRemaining` BIGINT( 20 ) NOT NULL
Thanks to ThyShiva for finding this and sending me the fix with the alter table included.
revision 358 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Juloshko
Caldari Aberration Of Perdition
|
Posted - 2008.12.27 03:33:00 -
[52]
Finaly got it running
now just gotta make a cool looking page for it (when i learn php)
|
Iskandara Cho
|
Posted - 2008.12.27 17:20:00 -
[53]
Hi,
I would like to use yapeal to pull the personal information for my 3 alts as well as for my corporation, but I am having more than a little difficulty figuring out what I need to modify or not in the .ini file. Then there is the question of where I find the information needed for the registered characters and corporations.
A little help?
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.27 19:12:00 -
[54]
There are a couple ways to get the data you need but the easiest is to go to eve-online
- Then go to Eve Insider > My Character and sign in as needed
- Click on the character you want information for
- Click link to get XML data and from there you can get your characterID and corporationID
- Go back to character info page and scroll down to the API section and click the link there
- Read the info on the page about API keys then click button to get full API Key and either copy & paste it to a text file to save it or just write down your userID and API Key
- Now you'll need to add the information you've collect to the RegisteredUser and RegisteredCharacter tables like Ryel Theon wrote up in post 46 of this thread or you can find wrote up in the Yapeal wiki pages
Hope that enough to get you started. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Iskandara Cho
|
Posted - 2008.12.28 14:38:00 -
[55]
Hi, Thanks, that did help.
I've gone through your sample.ini file and come up with two separate documents:
An Example yapeal.ini for a single database and a first pass at Documentation for the yapeal.ini file.
If you could take a look at them and see if I've made any mistakes I'd be grateful.
I also ended up with a few questions:
What is the behaviour of conflicting settings between the database and the database-xxx "active" fields?
What is the database named in any dbname field used for if the active field is set to FALSE? ie is it necessary to have a db name in the default section if the db-xxx sections have named db's?
Should each of the sub-db's have the same structure as the main db (as defined by the sql file provided)?
Does the username:password pairing need to be the same across all databases? Though there is a field in each db-xxx section they all share the same name "writer". If there is a pairing in the default Db section and a different pairing in a database-xxx section, which takes precedent?
Is the required section [DEBUGGING] really called [TRACING]?
Thanks!
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.28 23:51:00 -
[56]
Glad it helped. I tried going to the files you linked and I get '404 Sorry, the stargate denies you access.' errors so think you need to check the links.
Now on to you're questions.
The [database] section sets the defaults for all the [database-xxx] sections. So if you have something set in both of them the [database-xxx] setting will over ride what's in the [database] section. If you set all required settings in each active [database-xxx] section then you don't have to set any of the ones in [database] at all but it is easier to use just it if you're only using a single DB. In the original application that Yapeal developed from I use a separate DB for each API group (char, corp, eve, etc) and I've so far kept that ability to allow for more versatility by anyone using it.
If you decide to use multiple DBs say to have separate character and corporation DBs then you would have to duplicate the overlapping tables like MarketOrders, WalletJournals, etc. for each DB.
Each DB can have their own user/password pair if you want. You could probably even have all tables from the same API groups (char, corp, etc) have different user/password pair if you wanted in a single DB because of the way they are used. Each [database-xxx] section has several constants set from the yapeal.ini settings which are then used throughout Yapeal to access each 'DB' even though in most cases they are all set to the same values when using a single DB. Using a single user/password pair and one DB for all the tables is by far the easiest way to use Yapeal but if you need the more complex setup with multiple DBs and/or users it was build to allow for that. I will say though that the single DB with multiple users hasn't been tested by me but I see no reason why it shouldn't work.
There is both a tracing and debugging section for now I have looked at combining them but they do have different purposes even though they often overlap when you are actually trying to debug something. I use the tracing sometimes to track the program flow where the debugging code and error messages are either missing or not as helpful as they could be. A good example of when this has happened was with a couple users that had no error messages but Yapeal still wouldn't download their API information. What it turned out to be was they had cURL installed but not the php extension you need so php can use it and php didn't throw any kind of error messages that we could find because it had been build with cURL in an extension module and it just wasn't loaded. I thought it would have give us some kind of error message when I called the cURL function but instead it just quietly failed
Okay I think I've covered all your questions and hopefully you can fix those links and I'll have a look at what you've done and thanks for the interest in trying to help document Yapeal for everyone. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Mintoko
Gallente Nova Remnants
|
Posted - 2008.12.29 06:27:00 -
[57]
This is absolutely wonderful. I finally got it to work, but have a request...
I want to be able to add a prefix to the table names so that I can place them into my current database and still keep them together instead of having them spread throughout the list. I'm looking at the possibility of doing this myself, but will probably still be fiddling with it a lot longer than it would take you. :)
Perhaps, a default yap_ or something manually configurable.
|
Iskandara Cho
|
Posted - 2008.12.29 08:22:00 -
[58]
Edited by: Iskandara Cho on 29/12/2008 08:26:37
Thanks for the answers Dragonaire.
docs and sample ini files in a zip
It seems eve files didn't think they were appropriate content, so I've tried it as a zip. Let me know if there are still problems and I'll find another host.
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.29 19:24:00 -
[59]
Seems Eve-files still doesn't like something it's still got the same error
An error on line 102 of backend/eve-api-pull.php which is the try { line would suggest to me that you've got a bad file some how probably through an unintentional edit while looking at one of them. I've put out a new revision 363 which you might try getting and overwrite the existing files see if that clears it up. Yapeal's been running without error on my test server for the last several versions so that's the most likely cause. I've done it myself a few times while looking around at stuff before If you can when opening a file in your editor just to look at it try opening it read-only. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Dragonaire
Caldari Corax.
|
Posted - 2008.12.29 19:55:00 -
[60]
Mintoko - I've been looking at adding some kind of prefix to all the table names because some of the API re-use the same names in the rowsets but with different columns (fields) An example would be 'skills' in both the CharacterSheet and SkillTree. To add any kind of prefix though will require editing most the SQL queries in Yapeal since most places the table names are hard coded into the SQL Probably a bit of lack of foresight on my part but something that often gets overlooked when try to get something working.
I'm working on some changes to Yapeal that should make adding more APIs in the future easier and as part of that I plan on adding some kind of prefixing system so it's less of a problem. I'm not sure when I'll release these changes since it's very much in an early stage of development and I haven't even got any running code yet so best I can say now is it's on the list of things I plan to do
If you decide you can't wait and go ahead on your own and make something hopefully you'll share it back with us and maybe I'll be able to add it into Yapeal for everyone else that might have the same need. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
|
Iskandara Cho
|
Posted - 2008.12.29 21:35:00 -
[61]
Edited by: Iskandara Cho on 29/12/2008 21:54:37 If these don't work I will resort to carrier pigeon...
First pass at documentation
Sample single db .ini
I pulled the latest files from subversion, reuploaded them, and again tried running the script from the command line with the same result.
The line in question (line 101 of the current file) reads:
$cachetypes = array('tableName' => 'C', 'ownerID' => 'I', 'cachedUntil' => 'T');
is it possible that something in my .ini file is causing this error?
For that matter, I am not sure I am calling the script properly.. what should my command line read for proper execution?
Thanks!
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.29 22:59:00 -
[62]
Ok I now can see the files and I'm looking through them as I'm typing here.
You can use the lines from my crontab examples in the CrontabSetup wiki page by just not having the '*'s in front of it. So /path/to/yapeal/backend/eve-api-pull.php should work on most systems. What I like to do is cd /path/to/yapeal/ then run it with backend/eve-api-pull.php as that also let's me do things like dir cache/log/, vim -R cache/log/Yapeal_error.log, vim config/yapeal.ini, etc which makes my life easier during debugging.
So far the files look good though might want to check them with spell check. I also noticed you are setting the [DATABASE-UTIL] section to use another DB in your single DB sample which isn't a true single DB setup. After I've looked through them a bit more I'll probably add them to the subversion somewhere and make any changes to them I think of so you can take a look and see what you think. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Dragonaire
Caldari Corax.
|
Posted - 2008.12.29 23:38:00 -
[63]
Ok I added the yepeal_ini_docs.txt to trunk in config directory for now. Have a look and see what you think.
I missed where you asked if a bad ini file could cause errors and it could but most of them should be caught as it is read by inc/common_backend.inc -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Mintoko
Gallente Nova Remnants
|
Posted - 2008.12.30 01:46:00 -
[64]
Originally by: Dragonaire Mintoko - I've been looking at adding some kind of prefix to all the table names because some of the API re-use the same names in the rowsets but with different columns (fields) An example would be 'skills' in both the CharacterSheet and SkillTree. To add any kind of prefix though will require editing most the SQL queries in Yapeal since most places the table names are hard coded into the SQL Probably a bit of lack of foresight on my part but something that often gets overlooked when try to get something working.
I'm working on some changes to Yapeal that should make adding more APIs in the future easier and as part of that I plan on adding some kind of prefixing system so it's less of a problem. I'm not sure when I'll release these changes since it's very much in an early stage of development and I haven't even got any running code yet so best I can say now is it's on the list of things I plan to do
If you decide you can't wait and go ahead on your own and make something hopefully you'll share it back with us and maybe I'll be able to add it into Yapeal for everyone else that might have the same need.
I certainly will....I almost had it completely working, but made a change that crapped up the whole thing. I made two fresh attempts and think that I may be successful on the third attempt. I'll let you know.
|
Iskandara Cho
|
Posted - 2008.12.30 07:21:00 -
[65]
Glad you found the docs useful.
I've pulled the backend file again, checked the ini file thrice, and I'm still getting the error about an unexpected { on line 101...
|
Fishweasel
Imperium Technologies
|
Posted - 2008.12.30 13:52:00 -
[66]
I was hoping to get a look at this, however i cant find any files on the yapeal pages, am i missing something ?
Fishweasel
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.30 16:08:00 -
[67]
Fishweasel - To download the code you need a Subversion client program which there's a link to a list of them on the Source tab. I use TortoiseSVN for Windows myself as I like the way it integrate with Windows Explorer but there are several others to chose from. I just use the normal svn commands with Linux and sometime on Windows too when it's easier then TortoiseSVN.
If you just want to have a look at the code on-line you can click on the Browse link in the upper left corner and have a look around.
At some point I may start releasing Yapeal as zip or tar.bz archives but it's changing sometimes several times a day (360+ revisions in last 2 months) that it's not worth the extra effort right now when getting started with Subversion isn't that hard even for someone that hasn't seen it before. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Dragonaire
Caldari Corax.
|
Posted - 2008.12.30 16:58:00 -
[68]
Iskandara Cho - Either still have an unintentional edit somewhere or a file got delete somehow. At that point Yapeal have only ran the stuff in inc/common_backend.inc and a few require_once on some of the error/exception code from there and I've double check all of them both in my editor and by running it on my test server over night and I'm not seeing any errors You might try backing up your config/yapeal.ini file and delete everything where you have it installed and try re-installing the whole thing again. If that doesn't fix it it'll have to be something in your yapeal.ini and we'll have to figure out how you managed to get that error from a bad config file and see what can be done to catch it before it can do that. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Iskandara Cho
|
Posted - 2008.12.31 11:58:00 -
[69]
No joy
I've completely deleted the installation on my web server, updated from SVN, deleted the databases, ans started from scratch.
1) Uploaded files to server 2) edited ini file to new db info 3) ran script (php eve-api-pull.php) 4) Get an unexpected { on line 101 error
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.31 15:36:00 -
[70]
Very strange because I just did same thing and have no problems I'll sent you an e-mail via eve-mail and have you send me you're config file and I'll see if there's something there that I see and maybe try to get with you in eve or on IM too. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
|
Ragga daPhunk
Order Of Lyon
|
Posted - 2009.01.04 17:13:00 -
[71]
greetings!
just discovered your project and i really like it.. but it doesn't work for me :( the only thing that gets updated in the database is the "CachedUntil" table but nothing else. i enabled all logging and tracing but it doesn't come up with an error.
trace.log says: [2009-01-04 17:06:13.530] API: Before connect for eve-api-pull in eve-api-pull.php DATABASE: Before connect for mysqli://eveapi:lforce@localhost/eveapi?new in common_db.inc API: Before dontWait DATABASE: Before connect for mysqli://eveapi:lforce@localhost/eveapi?new in common_db.inc
notice.log says: [2009-01-04 17:06:22.042] Tired of waiting! Getting eve-api-pull for 0 [2009-01-04 17:06:22.048] Tired of waiting! Getting CharacterSheet for 8xxxxx
database connection seems ok since the cacheduntil table gets updated and stuff.. when it fetches the api it takes some seconds.. so somethings is done.. but what? i enabled caching of the xml files - but the cache folders are empty. curl support is compiled in btw.
|
PoshaX
|
Posted - 2009.01.04 23:34:00 -
[72]
I haven't been able to figure out why, but I continue to get this exception right after it says it is updating the character information.
[2009-01-04 23:25:55.289] Uncaught exception in eve-api-pull.php [2009-01-04 23:25:55.289] EXCEPTION: Code: 1 Message: Missing required fields (balance, bloodLine, characterID, cloneName, cloneSkillPoints, corporationID, corporationName, gender, name, race) found while making upsert for CharacterSheet File: /apps/eve/yapeal/inc/common_db.inc Line: 272 Backtrace: #0 /apps/eve/yapeal/inc/common_db.inc(430): makeMultiUpsert(Array, Array, 'CharacterSheet', 'mysqli://root:w...') #1 /apps/eve/yapeal/inc/pulls_char.inc(106): upsert(Array, Array, 'CharacterSheet', 'mysqli://root:w...') #2 /apps/eve/yapeal/backend/eve-api-pull.php(158): require('/apps/eve/yapea...') #3 {main} --- END TRACE ---
|
Dragonaire
Caldari Corax.
|
Posted - 2009.01.05 00:25:00 -
[73]
Okay here's some tips on figuring out problems with Yapeal. First have a look at GettingStarted on the Yapeal wiki then check out the new TroubleShooting page I just made. It also might be useful to look at the other wiki pages while you're there. Hopefully after going through the wiki you'll be able to find the problem and it'll be something you can fix yourself, if not then you should have the information and log files to make my life and yours a bit easier while we try to figure out what's going wrong
revision 398 now out. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Dragonaire
Caldari Corax.
|
Posted - 2009.01.05 00:50:00 -
[74]
I made a couple small changes to config/yapeal.ini so anyone using Yapeal should check out the example file.
For anyone having problems with Yapeal please make sure you're using the latest version and go through the pages I link in the post above hopefully by doing that you'll be able to find the problem yourself and not have to wait on me to check the forums.
Ragga daPhunk - Not sure what you're problem is if you'll try out troubleshooting page from wiki it should help you track it down if not I'll need you're log files with trace_level=2 you'll find the instructions about this in wiki.
PoshaX - Make sure to double check your configuration and the required stuff in all the RegisteredXxx tables I think there's something missing there. If after check those things you're still getting an exception I'll need the trace_level=2 log files from you too and try to figure out what's going on. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Iskandara Cho
|
Posted - 2009.01.05 02:20:00 -
[75]
Still no joy. I've contacted my server provider to see if they can shed any light on the problem. I'll keep you posted.
|
Dragonaire
Caldari Corax.
|
Posted - 2009.01.05 02:48:00 -
[76]
Edited by: Dragonaire on 05/01/2009 02:50:37 Might also try sending me your logs Iskandara Cho. I never saw any from you after you made contact with me via E-mail etc. If you have any that is -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Iskandara Cho
|
Posted - 2009.01.05 09:21:00 -
[77]
Nope, no logs, it never gets to the point of actually executing anything.
I've heard back from support, and they said there is nothing they can do with 3rd party scripts. Not unusual I guess, but still kinda frustrating. I've sent you an email with the url to the phpinfo for my server.
Thanks for the help.
|
Dragonaire
Caldari Corax.
|
Posted - 2009.01.06 18:50:00 -
[78]
Okay been working with Iskandara Cho on her problem and found something that might be useful for anyone else that having problem getting Yapeal running to check.
Assuming a Linux system from a command-line try:
php --version
If the output reads:
PHP 4.X.X blah blah blah OR PHP 5.1.X OR anything else
Except:
PHP 5.2.X blah blah blah
where X is a number that's the reason it's not working for you. Some of you may have looked at the output from phpinfo as a webpage and seen that it says PHP 5.2.X but the Command-Line Interface version of PHP that Yapeal uses is a different file and on some hosting sites you end up with the php4 CLI and php5 for webpages In Iskandara Cho's case on DreamHost that was what was happening
If you are hosted at DreamHost and you know Linux command-line a little try their instructions Advanced_PHP_configuration to fix the problem by following the ones for php5. You don't need the stuff for FastCGI for Yapeal but you might for the other stuff you're doing on your site I can't help you decide on that part Yapeal should work with or without.
The other way to fix it is to make a small change to backend/eve-api-pull.php file but you will have to do this every time you upgrade Yapeal.
For DreamHost change the very first line of backend/eve-api-pull/php from:
#!/usr/bin/php
To:
#!/usr/local/php5/bin/php
I'm going to add a page to the Yapeal wiki where I can add links and/or instructions for others but until then if you have this problem on another hosting service and figure out how to fix it please post it here and I'll add it to the wiki when I get page setup. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Dragonaire
Caldari Corax.
|
Posted - 2009.01.07 08:40:00 -
[79]
New revision 421 out it should fix bug where Yapeal wouldn't run if trace=FALSE in [Tracing] section of config/yapeal.ini
Yapeal project home http://code.google.com/p/yapeal/ -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Dragonaire
Caldari Corax.
|
Posted - 2009.01.07 19:13:00 -
[80]
Ok decided to get some more input from people using Yapeal or other interested parties on things they'd like to see changed or added to it.
Here's a list of things people have already told me about:
- Some kind of install/setup script
- Some thing to help with managing the RegisteredUser/RegisteredCharacter/RegisteredCorporation stuff
- Better documentation
Anything else? Also what other APIs would people like to see added to it next? I'd like to get a little input on this and then I might even try making/adding some kind of development roadmap on wiki so people have something else to complain about on the forums when I don't always follow it
I've already got one person that offered to take a stab at making an install script while I keep working on other stuff but I sure he wouldn't mind some help with it. For that matter if anyone out there has a programming itch and you know PHP or want to learn it I'd be happy to have the help that how Yapeal got started for me. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
|
Dragonaire
Caldari Corax.
|
Posted - 2009.01.08 20:17:00 -
[81]
Hi all been working with PoshaX? about the missing required fields problem in CharacterSheet and seem to have tracked it down to a bug in old versions of php5 on some Linux systems. In this case happens to be Debian Etch.
-- Rant On -- Etch was released on December 18th, 2008 but bug was fixed in PHP Version 5.2.1 back in 8-Feb-2007 but apparently nearly 2 years isn't enough lead time for them to include it or a couple months isn't enough time to release upgrade to even Version 5.2.6 which came out in 1-May-2008 which fixed several security problems etc For those interested the newest release is 5.2.8 which fix a bug that slipped into 5.2.7 or if you're a little more daring they have PHP 5.3 out which backports some stuff from PHP6 as I understand it. I've already had an official update to 5.2.8 available for my old OpenSuSE 10.3 for a while now -- Rant Off --
Anyone using version 5.2.1 or newer of PHP shouldn't see the problem since that's when they fixed the bug. I've got a work around for the problem ready to be tested as soon as I get a chance to get back with PoshaX that I'll release if it works. BTW there's is a similar problem with CorporationSheet that my work around should fix also -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Dragonaire
Caldari Corax.
|
Posted - 2009.01.09 01:25:00 -
[82]
Hi all me again been doing some cleanup up and move stuff around in Yapeal to streamline it a bit and make it easier for people to use. Some of the things I changed:
- Moved the Docs directory out of the project directories in trunk and all the branches and put them into their own top level directory. I never seem to have any time to update them so no need confusing people with having outdated information being included. Also makes Yapeal a little faster to download and easier to integrate for people that don't want or need to include them with their projects.
- Added new admin top level directory. I'm looking at maybe having a download/installer setup for people that don't or can't use subversion and I need to have a place outside trunk or the branches to keep the config files for it plus a few other misc stuff that isn't needed to use Yapeal but I need while working on it. So you might notice a few more things migrating over there as I run across them.
- Finally I found some nice little graphics again that someone made for me to use with Yapeal a while back and I decided might be nice for me to include them for people to use in their own projects etc. If you want to include one of them on your website with link back to Yapeal's website that would be great but only do it if you feel like it. I'm happy if you just let me know with post on forum or an E-mail that you like it and are using it.
That's it for this post I think fly safe. |
ThyShiva
|
Posted - 2009.01.09 20:09:00 -
[83]
Hello,
I have not posted in a while as I have been intergrating Yapeal with my project. I would like to second Mintoko's request for a table prefix as many of us have database limits or just like to group tables within databases.
Keep up the good Dragonaire.
Shiva. |
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.10 12:36:00 -
[84]
Hi Dragonaire I have been using another API function for retrieving all my corp info and character info.
After have installed this script for testing purpos, I can now allready say that it will make my site mutch faster since it don't need to pulle the XML files each time a page need to be showen and putting it in a database just make it faster and mutch easyer to sort the the content. :)
I will start to implement this into my website now.
One thing I was wondering about. Once you updating an assetlist, will this script delete those info that have been used or sold or related to that ??
Kind Regards Satis |
Dragonaire
Caldari Corax.
|
Posted - 2009.01.10 18:15:00 -
[85]
Hi Satis Iqulenax glad you like Yapeal.
Quote: Once you updating an assetlist, will this script delete those info that have been used or sold or related to that ??
No it doesn't try to make any changes to the AssetList or any of the other API data really for that matter. I don't see that being part of the job it's trying to do. Yapeal tries to just take what it gets from the Eve API and put it into the DB in what I hope is a sensible way. To do that and be usable by multiple characters and corporations it does add a few extra columns like ownerID, accountKey, etc to the tables but I never take stuff away I leave that up to you as the application developers to decide what you want to do.
Just a couple things to think about if you try to update the AssetList yourself is that the itemIDs aren't constant in many cases. For example if you split a stack of ammo to use, sell, or just move part of a stack the old itemID is dropped and Eve makes 2 new IDs for the new stacks. The same thing happens if you repackage/assemble something it gets a new itemID. There are other times when it can change also I believe but I think you can see the problems with trying to update stuff as things change. Add to that that the next time Yapeal does get data from the API any of your change to Yapeal's AssetList table will be wiped and update with the data from the API. Hope that helps you if you try to do it yourself.
Also for anyone else looking at Yapeal as a way to have a full archive of all of the Eve API data keep in mind that things like ServerStatus, AssetList, etc are thrown away and replaced in effect. I did this because I felt having it act a snapshot of the in game data was what most people would be interested in and what the APIs were made to allow. I am looking at adding an ability to directly cache the XML into the DB as received and may add an ability to have it archive that data but it would be done as a single large text column not as processed data with multiple columns. I'm also looking at having all the log files optionally/additionally put into the DB but have to be careful not to get into infinite loops doing that Note that by their nature the WalletJournals and WalletTransactions are an archive and the IndustryJobs and MarketOrders form a history of old records because they are updated with the API data until it stops sending each record. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.10 20:36:00 -
[86]
Originally by: Dragonaire Hi Satis Iqulenax glad you like Yapeal.
Quote: Once you updating an assetlist, will this script delete those info that have been used or sold or related to that ??
No it doesn't try to make any changes to the AssetList or any of the other API data really for that matter. I don't see that being part of the job it's trying to do. Yapeal tries to just take what it gets from the Eve API and put it into the DB in what I hope is a sensible way. To do that and be usable by multiple characters and corporations it does add a few extra columns like ownerID, accountKey, etc to the tables but I never take stuff away I leave that up to you as the application developers to decide what you want to do.
So what you are saying is: If you have an Strip Miner in your posession and Yapeal is catching it and addind that on to the database, then if you sell the strip miner so it's not in your possession anymore, Yapeal just ignor this and let that item stay in the database ??
If it does that, you will constantly adding items to the database and never clean up those items that an user don't have in hes/hers posession anymore and can still be showen on the webpage forever. This will allso overfloat the DB with data it does not need.
Look at it in my way. If I as a webdeveloper need to check those tables for expired items I would need to do somthing simular as you do. Catch the XML and check to see if this item is stille there. that will only make you need to get the XML file 2 times. one to add old new data as Yapeal and then one to delete the old data. since Yapeal don't do this at the same time.
One solution that I can think of is when the backend is doing it's work, then for each character or corp, it should delete all the data from that character or corp and then insert the new data. that should not take anylonger that the methode you are doing now.
Hope you understand what I'm saying. I'm just a littel confused by this data dump
Kind Regards Satis
|
Dragonaire
Caldari Corax.
|
Posted - 2009.01.10 22:15:00 -
[87]
Quote: Also for anyone else looking at Yapeal as a way to have a full archive of all of the Eve API data keep in mind that things like ServerStatus, AssetList, etc are thrown away and replaced in effect. I did this because I felt having it act a snapshot of the in game data was what most people would be interested in and what the APIs were made to allow.
You need to read the full post. But the way I worded it could be misunderstood so I'll try to rephrase it to be more clear. For all the APIs under eve, and server, they will have all their records truncated and then replaced by the new data pulled from the API. In tables like AssetList all records on a per ownerID basis well be deleted and replaced with the new data from API. For tables like WalletJournal, WalletTransactions, etc because of their nature they will just be added to. In MarketOrders and IndustryJobs they will be update by the new data until it stops changing then they do the same as WalletJournal, etc and keep a record of the last update received. This let's you look up old records if you want something that you can't do in game. Here an example for a market order. You make a sell order for some ammo as people buy it from you the record is update with the amount left to sell in volRemaining. Now the API may return a record where orderState=2 meaning it has either expired or someone bought it all up before it ran out. You'll have to check if volRemaining=0 to tell if it was bought out. We will continue to receive it in more updates from the API for a while because of how the API cache works but since our order doesn't change anymore it's basically ignored at this point. just like updates to unchanging records for WalletJournal would be. The record for your order will stay around until you decide to delete it.
Hopeful this makes it more clear to you how Yapeal does things. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Ramov Tinoga
Tinoga Enterprises
|
Posted - 2009.01.11 00:00:00 -
[88]
Originally by: Ragga daPhunk the only thing that gets updated in the database is the "CachedUntil" table but nothing else.
When I run the script manually once a day, everything is updated quite fine.
When its run by cron every five minutes (*/5), I noticed that only the CachedUntil table is updated, but none of the other tables. My server is running at GMT+1, so the times in the table and the local time are at different time zones. Could this cause the problem? |
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.11 00:22:00 -
[89]
Originally by: Dragonaire You need to read the full post. But the way I worded it could be misunderstood so I'll try to rephrase it to be more clear. For all the APIs under eve, and server, they will have all their records truncated and then replaced by the new data pulled from the API. In tables like AssetList all records on a per ownerID basis well be deleted and replaced with the new data from API. For tables like WalletJournal, WalletTransactions, etc because of their nature they will just be added to. In MarketOrders and IndustryJobs they will be update by the new data until it stops changing then they do the same as WalletJournal, etc and keep a record of the last update received. This let's you look up old records if you want something that you can't do in game. Here an example for a market order. You make a sell order for some ammo as people buy it from you the record is update with the amount left to sell in volRemaining. Now the API may return a record where orderState=2 meaning it has either expired or someone bought it all up before it ran out. You'll have to check if volRemaining=0 to tell if it was bought out. We will continue to receive it in more updates from the API for a while because of how the API cache works but since our order doesn't change anymore it's basically ignored at this point. just like updates to unchanging records for WalletJournal would be. The record for your order will stay around until you decide to delete it.
Hopeful this makes it more clear to you how Yapeal does things.
Yes it did. I allso did read the full post of yours and I did misunderstand it
But now that this is cleared I feal happy since it's working as I was hoping it would
New Question: From: http://games.chruker.dk/eve_online/test_eve_api.php there is an list of all the API data you can collect. Are you planing to implement all of them ??
Kind Regards Satis
|
Dragonaire
Caldari Corax.
|
Posted - 2009.01.11 01:07:00 -
[90]
Glad to hear I was clearer on my second try.
At some point I would like to see Yapeal do all the APIs and I plan on making some changes to how the code works so it's easier then it is now to add more APIs. I'm hoping to get it easy enough that I'm not the only one that can seems to understand it well enough to add more
BTW I like what Chruker has done on his site and sometimes use it but I find the tables at http://wiki.eve-id.net/APIv2_Page_Index more useful for what I do. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
|
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.11 01:31:00 -
[91]
Edited by: Satis Iqulenax on 12/01/2009 03:23:14 Edited by: Satis Iqulenax on 11/01/2009 18:24:06 Edited by: Satis Iqulenax on 11/01/2009 18:22:59 Edited by: Satis Iqulenax on 11/01/2009 18:21:42
Originally by: Dragonaire Glad to hear I was clearer on my second try.
At some point I would like to see Yapeal do all the APIs and I plan on making some changes to how the code works so it's easier then it is now to add more APIs. I'm hoping to get it easy enough that I'm not the only one that can seems to understand it well enough to add more
Thanks for the answer
I might take a more direct look into your coding style and if I can get the system in your coding (They are more advanced than I'm used to) I might be giving a helping hand and help you write some of the API functions you have not worken on yet.
I think I found a place where you have been writing about what have been done so far but can't remember where that one is ...... need to search more
Well it's time for me to say good night. it's 2.30 in the morning where I live, and realy need some sleep since I have been fitling with my DB the whole day, implementing the EVE DB Dump to pull out usefull information to my site ^^
Night Night and happy coding
//Satis |
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.12 03:24:00 -
[92]
I found a bug that I think is a critical one: The bug have been mentioned 1 or more times in this forum, but I have naroed it further down. If try updating the tables with eve-api-pull.php less than 24 houers it will not update all the tables. I can narow it down to say that if you have an Cronjob running each 1 min or by manualy updating it each minut it checks the `CachedUntil` if there is some XML that need to be updated. If there is one or more of them that do not need to be updated, it will still Update the `CachedUntil` on those but it changes the date to be updated about 2-5 min later. But if you runs a cronjob each 1 min it will never update since it allways setup the `CachedUntil` for 2-5 min later and when it's runned each time it will not update the tables anymore but only move the update time 2-5 min later. if there was a table that needed to be updated in22 hours it would just change it so it would be updated in 2-5 min again, but still it will not update it, since the `CachedUntil` is set to 2-5 min later.
i think the solution to this is a simple function that tells the eve-api-pull.php that it should not update `CachedUntil` tables that was not expired and don't need to be updated with a 2-5 min delay.
Hope this makes sence
//Satis |
Dragonaire
Caldari Corax.
|
Posted - 2009.01.12 05:12:00 -
[93]
Seems I got code from a broken branch merged into trunk there. Sorry about that everyone I'll push out my other branch that I know doesn't have at least a critical error like that one but I was still in testing. Guess most of you are use to being my beta testers by now Just not the alpha testers I'm in the process of changing how I work on the varies stages of code development and seem to be having a few hiccups getting the process organized and working, I also broke my main coding machine and I just this weekend got something that should be workable going again.
Ok some quick notes about the new version I'll be pushing out everyone will need to backup your config/yapeal.ini file to another location. I would do a complete wipe and re-install as many of the files have changed names and some of them have change location. I also split and added several files for the error and exception code. You'll want to copy over the included yapeal.ini-example as I've been making several changes that aren't fully backwards compatible with the old one. The new one should be a bit easier to use as many of the comments have been updated also so shouldn't have any problems with it. I've made lots of changes to the error and exception code in this version that should make finding problems much easier in the future with more useful (at least to me) logging. Most people should be able to just copy over from your backup your database and user/password info into the [Database] section like before and activate the same [Database-xxx] sections as before and it should work.
Fix out as revision 437
And a big thanks out to Satis Iqulenax for catching this -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Ragga daPhunk
Order Of Lyon
|
Posted - 2009.01.12 14:03:00 -
[94]
greetings!
i have it another go - just updated to rev. 440. when i try running the script i get: Fatal error: Call to undefined function simplexml_load_string() in inc/common_api.inc on line 183
prior to this it just did nothing when executed except updating the CachedUntil table. (i'm truncating the table each time for testing) the tracing never says anything about pulling XMLs (maybe it doesn't have debug output?) and the cache folders remain empty. the logs only tell about database access - nothing else. so hard to tell what is being done and what not. am i required to have certain options in php.ini? atm url open and include is allowed (this is how i retrieved XMLs) i'm running 5.2.8-pl1 with compiled in curl support. |
Dragonaire
Caldari Corax.
|
Posted - 2009.01.12 15:40:00 -
[95]
Ragga daPhunk - That error message is saying the simplexml extension is missing which is normally on in a default install. Just to double check that that is the problem try this at a command prompt:
php -r 'if (!extension_loaded("simplexml")) print "Not loaded!\n";'
If you get a 'Not loaded!" message you need to find out why someone changed from the default of including SimpleXML with php5 it is possible that another package needs to be loaded with some distros on Linux.
Good news is it seems the new error code and settings is doing more and gave me a clue now to your problem I'm also adding a check for the simplexml ext which should make it more clear like it does with mysql and curl that they are required. |
Ragga daPhunk
Order Of Lyon
|
Posted - 2009.01.12 16:35:00 -
[96]
aaah :) simplexml support..
i'm using quite a minimalistic distro, which i very like. but this time it didn't work out that well :) i'm just rebuilding php with simplexml support - i hope there isn't anything else? :D
** 6 mins later ** it works ! :D |
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.12 19:55:00 -
[97]
Edited by: Satis Iqulenax on 12/01/2009 20:04:14
Originally by: Dragonaire And a big thanks out to Satis Iqulenax for catching this
Glad to be of help
Now since you have updated it, I have rebuilded the Yapeal from the revision 445 it works like a charm Now that I look in my tables in phpmyadmin I can see that there have been added a new table caled "test" That one holds the same info as the RegisteredUser table.
May i ask what the reaon is for the test table and will it update so it holds the same info in the RegisteredUser if you update RegisteredUser with a new API Key or add a new User to RegisteredUser ??
EDIT: Oh I forgot to ask if you can make a rar file with all the files for each new revision ?? I can't use the bin file since I'm running Vista and I have to manualy download each file from the SVN.
//Satis
|
Dragonaire
Caldari Corax.
|
Posted - 2009.01.12 21:31:00 -
[98]
I just looked at the install/Yapeal.sql file and there's no 'test' table in it If you were looking at the Yapeal.mwb by chance it was put there in the past only so I could keep track of it and is now a bit outdated since I'm made some manual edits to the Yapeal.sql file since I used workbench. Since I have another place to move it to now I'll be dropping it from trunk just to head off any confusion it might be causing others.
As for downloading Yapeal file by file that's the painful way to do it you should install a SVN client program of some type that's really the way it's made to be used. The one I like the best on any Windows platform is available here http://tortoisesvn.tigris.org/ It adds commands to the right click menu in Windows explorer that makes getting a complete update from the subversion take only a couple clicks. It comes with some nice help files to get you started. I use it everyday on my Windows XP machine while developing Yapeal. I'm current looking for something as easy to use in Linux because so far nothing works as well or as easy that I've tried. I usual can do it faster and easier from command prompt so if anyone has some thing that works as good for a GUI let me know.
The bin file is from some software I'm testing and plan on using in the future when the develop cycle slows down a little and I've learn how to use it When I decide to do that the software will make a Windows exe installer as well as some other versions. There's some things I need to work out also with Yapeal before I can start using the new software but one of the first things I'd really need to have is some kind of install/configure script which someone has offered to help work on as well as update/create some actual documentation for Yapeal which is badly needs if you haven't noticed
While I'm at it I'd like to thank all of you for the feed back both good and bad and the bug reports as I'm limited on what I can test with my characters and the time I have to use for testing and sometimes coding. Since the start of November when I move project over to Google I've been averaging better then 100 commits to subversion per month Needless to say a few bugs slip past me from time to time -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Buzz AU
|
Posted - 2009.01.13 22:33:00 -
[99]
Hi Dragonaire,
I have tried downloading this, but have been unsuccessful. I cant find a way of extracting the .bin file, and using Tourtise to connect to SVN asks me to authenticate.
How dows someone use this? |
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.13 22:39:00 -
[100]
Dragonaire I have an question to the AssetList table.
I notised that there it a rowname caled: "lft" and "rgt"
When I looked in the XML AssetList they was not mentioned in there. Has that somthing to do with the Child of a container or the fitting on a ship ??
If so... can you give a little explanation on how those numbers are working together.
Kind Regards Satis
|
|
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.13 22:58:00 -
[101]
Originally by: Buzz AU Hi Dragonaire,
I have tried downloading this, but have been unsuccessful. I cant find a way of extracting the .bin file, and using Tourtise to connect to SVN asks me to authenticate.
How dows someone use this?
First of, the http://yapeal.googlecode.com/svn/trunk is Read Only, so I think you have used a wrong command to get the content. I think you might try to upload to the SVN and not downloading it.
I made a step by step tutorial for you to try out :)
Tutorial for TourtiseSVN
- Create a folder where Yapeal should be placed.
- Right click on the folder and chose: SVN Checkout
- In the Url you input: http://yapeal.googlecode.com/svn/trunk
- Now press the OK button and it should get the latest version of Yapeal.
- Now each time you wan't to update to the latest version just right click the folder and chose: SVN Update and it will automatic update to the latest one.
Hope this helps :)
Kind Regards Satis |
Dragonaire
Caldari Corax.
|
Posted - 2009.01.13 23:33:00 -
[102]
Think the problem he had was he tried to use the project member instructions which Google decided to list first instead of reading down to the non-member ones. Project members need to have read/write on the subversion but for just downloading Yapeal and getting updates to it the second instructions give you that. Or just follow the instructions Satis was nice enough to post above if you're using TortoiseSVN
Thanks Satis Iqulenax for the nice simple instructions you posted.
-- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Mintoko
Gallente Nova Remnants
|
Posted - 2009.01.14 02:33:00 -
[103]
I was going to do some whining that the api wasn't being pulled when setup as a cron job, but decided to try changing the permissions on the file before posting.
eve-api-pull.php had permissions set at 644, but would not work under cron until it was changed to 755. Of course, it may work with 744, but has not been checked.
The only other problem I had noticed the last couple days is that the server status was not updating, but is now working for some unknown reason. If the file permissions were responsible for this, I would think other api items would be affected, but none were noticed. |
Dragonaire
Caldari Corax.
|
Posted - 2009.01.14 06:49:00 -
[104]
If you grab the files with a subversion client on Linux it should set the permissions right but if you grab the ALPHA test download I had up it probably didn't I noticed a lot of people were grabbing it so for now I've turned off the download section again. I had it there just for my own testing but like anything found on the Internet that makes it fair game once people see it Anyone that is trying to use the download version should grab the newest version from the subversion because the one in the file had some major bugs as it turned out.
I'm current working on finishing some things that I didn't have ready yet when I had to push out the latest version to fix the very broken one I'd got out there before. Mostly some added stuff for troubleshooting and changes to error handling code. Once I'm done with that hope to start on some change to make adding new APIs easier and probably at same time be adding in some changes to add the table name prefixing that people have asked for.
Been think about asking people to start using the Issues tab on the project home to start making feature requests so people can 'star'/vote for the ones they'd like to see done first. Would be ok to report bugs there too but I think most of us prefer the forums here so not planning on pushing for that any time soon. |
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.14 17:07:00 -
[105]
Dragonaire did you read this ??
Originally by: Satis Iqulenax Dragonaire I have an question to the AssetList table.
I notised that there it a rowname caled: "lft" and "rgt"
When I looked in the XML AssetList they was not mentioned in there. Has that somthing to do with the Child of a container or the fitting on a ship ??
If so... can you give a little explanation on how those numbers are working together.
Kind Regards Satis
Waiting for an answer
Kind Regards Satis
|
Johnathan Roark
Caldari Quantum Industries RAZOR Alliance
|
Posted - 2009.01.14 17:37:00 -
[106]
Originally by: Satis Iqulenax Dragonaire did you read this ??
Originally by: Satis Iqulenax Dragonaire I have an question to the AssetList table.
I notised that there it a rowname caled: "lft" and "rgt"
When I looked in the XML AssetList they was not mentioned in there. Has that somthing to do with the Child of a container or the fitting on a ship ??
If so... can you give a little explanation on how those numbers are working together.
Kind Regards Satis
Waiting for an answer
Kind Regards Satis
Its to persevere the tree format using the "nested set" module. MYSQL Tree Treversal |
Dragonaire
Caldari Corax.
|
Posted - 2009.01.14 18:02:00 -
[107]
Sorry I did miss you asking that. Here a pages with some links I found interesting when deciding how to implement it. Johnathan Roark there actually developed the test code I adapted to Yapeal to replaced what I had been using before which was extremely slow. The library I was using before took up to 20 minutes to add 2000 records where now it's done in a few seconds -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.14 19:12:00 -
[108]
Edited by: Satis Iqulenax on 14/01/2009 19:15:05
Originally by: Dragonaire Edited by: Dragonaire on 14/01/2009 18:11:23 Sorry I did miss you asking that. Here a pages with some links I found interesting when deciding how to implement it. Johnathan Roark there actually developed the test code I adapted to Yapeal to replaced what I had been using before which was extremely slow. The library I was using before took up to 20 minutes to add 2000 records where now it's done in a few seconds
Also might want to look back around post 30 on this thread where someone else was asking about them and I made a few comments to help get them started.
Cool. I'll look into this :) BTW: I was lacy not have searched in this post for this
anyway, if there is somthing I can help you with, please tell :)
EDIT:
Originally by: Johnathan Roark Its to persevere the tree format using the "nested set" module. MYSQL Tree Treversal
Thanks to you too allmost missed your post
//Satis |
Dragonaire
Caldari Corax.
|
Posted - 2009.01.15 07:36:00 -
[109]
Okay I've pushed out a new version with all the changes to the error and exception code I had planned for now. Last bit to add was a tool to help me help people having problems getting it to run. Instead of having to make a bunch of changes in to the config/yapeal.ini you can just added "-d" to eve-api-pull.php when you run it and it puts all the logs etc into one neat (or not so neat) log file. It will also include your setting from the yapeal.ini (username/password blanked) and a full trace log (if it makes it that far) in there too Here's a simple example of how to run it assuming your in the base directory where you installed Yapeal:
backend/eve-api-pull.php -d'../cache/log/debug.log'
After it finishes or dies with an error you should find a file named debug.log in the cache/log/ directory. It will be a large mostly boring text file that you can look through if you want If after going through all the troubleshooting from the wiki you still can't figure out what the problem is you can sent the log to me and I'll take a look but do try to figure it out yourself first. WARNING don't try using this from crontab etc it's made to be used only with a manual run for debugging and troubleshooting.
In other changes you might notice are some small changes to yapeal.ini mostly that I've now added version info to it. In the future they will become important but for now if you have a running system you can ignore them and don't have to upgrade it again or can simply cut and paste them in to yours if you want.
At revision 454.
-- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Ragga daPhunk
Order Of Lyon
|
Posted - 2009.01.15 11:54:00 -
[110]
greetings!
i started to work with yapeal a bit and thought of some things that would be nice to add/change.
- some sort of verification for api keys. when there is an authentication problem the script stops. it would be great if the script just sets the "isActive" var to "0" for the char with the auth problem. this way it wouldn't prevent yapeal from working when someone enters wrong data or the account is inactive (unpaid subscription or something).
- xml data : - Character List (on account) - Kill Log (Killmails) - Standings
these changes/additions would be really great :)
|
|
Buzz AU
|
Posted - 2009.01.15 12:48:00 -
[111]
Edited by: Buzz AU on 15/01/2009 12:48:40 Looks like I closed chrome before I posted my last message:
Thanks for the instructions on Tortoise, it worked well!!
Are there new instructions on how to get this up and running?
The ones on the main google code site, dont really answer much.
Where do I enter the details for my database? Where do I enter my API information? I checked the yapeal.ini but dont see anything related to the above the the SQL db, and also cant find where I activate which API info I want to pull.
If there is a post on this, please can you point me to it.
Thanks
|
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.15 16:26:00 -
[112]
Originally by: Buzz AU Edited by: Buzz AU on 15/01/2009 12:48:40 Looks like I closed chrome before I posted my last message:
Thanks for the instructions on Tortoise, it worked well!!
Are there new instructions on how to get this up and running?
The ones on the main google code site, dont really answer much.
Where do I enter the details for my database? Where do I enter my API information? I checked the yapeal.ini but dont see anything related to the above the the SQL db, and also cant find where I activate which API info I want to pull.
If there is a post on this, please can you point me to it.
Thanks
Well in the: Getting Started on googlecode there is a description on how and where to indput the API Key's. But you need to make a script to get the character ID from inside eve to pulle out the character ID. you need the character ID and a corp ID if you wan't to setup corp pull allso.
In the : Key Files on googlecode there is a list of the files that would interest you in the setup.
I have planed to make a Install.php file that Dragoniere can deside if he would use in hes build for a easy setup for the Yapeal. it will be a file that need to be runned inside eve onlige IGB (Ingame Browser) since it easyer to get the character ID, Corp ID and more that way.
That install file will allso create the yapeal.ini that is needed for the database.
I could make a long post on how to setup yapeal to rune on your site but rather not since I am planing on making this install.php file for all to use.
Kind regards Satis.
PS. in the wait time, try to read the wiki one more time and see if you can figure out how to setup Yapeal :)
|
Dragonaire
Caldari Corax.
|
Posted - 2009.01.15 17:39:00 -
[113]
Ragga daPhunk - First thanks for giving Yapeal a try.
Quote: some sort of verification for api keys.
Yapeal is a library not an application you need to verify the API keys before you put them into the database for it to use. What I may do is add a helper script you can use to verify and also sometime in the future plan to finish off the management classes I had start developing for the RegisteredUser etc that you'll find laying around in the class/ directory.
Quote: when there is an authentication problem the script stops.
It shouldn't stop working it should just skip over any APIs that it can't get because of authentication problems like it skip over them with any other API error. For example if you have 3 characters active in Yapeal and the 2nd one has a bad apikey it should still get the data for both 1 and 3. If it isn't doing that then that is a bug and it needs fix.
I've now starting on a change to Yapeal that will change how I handle the API data which when it is done should make adding new APIs easier. Also after looking closer at the new trace logs I'm going to make some changes to how it makes and drops connections with the database server. As it is now even when it's just idling waiting for an API to need servicing it makes and drops 3 or more connections per API per character, corporation, etc. which could be much less if the code was smarter about how it does things. There's some other areas that need similar attention I believe but they are less of an issue for now. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Dragonaire
Caldari Corax.
|
Posted - 2009.01.15 18:19:00 -
[114]
First I'd like to thank Satis Iqulenax for offering to help with some of the document fixes and additions she's working on. I'd also like to thank her for taking on making some kind of installer to make it easier for people to try out Yapeal.
I'm also planning on move the backend/eve-api-pull.php into the base directory and renaming it to yapeal.php or something similar that should make more sense to people. I'll make a wrapper at the old location so it shouldn't break anyone's stuff they already have setup but plan on change over to using the new location fairly quickly after I do this. That part of Yapeal directory structure is left over from when I split it away from another project I worked on for my corporation at the time and want it to easily be integrated back into it but I have now changed Yapeal to much to be usable with the original project and I've stopped develop on the other project for now. I may make some other changes but they shouldn't make any difference to how you use Yapeal like this change will so just a little heads up on that. I'll be sure to let everyone know when I make the change which should be Soon(tm) |
blkmajik
ZiTek Deepspace Explorations
|
Posted - 2009.01.15 19:06:00 -
[115]
Great job guys! I've been testing with this recently and it really does the trick. As for developing applications around the database... I'm not that far yet ;)
One shortcoming I've noticed is the lack of support for the Factional Warfare API calls. Is this in the pipeline for the near future? If so, is there an estimated ETA? If it's not, I'll need some more time to get comfortable with the project coding style, but I could contribute some if that would be welcomed. |
Dragonaire
Caldari Corax.
|
Posted - 2009.01.15 19:33:00 -
[116]
Plan is to support all the APIs when done at some point but have no time frames on when. I plan on re-doing all the currently supported APIs and make sure they still work before adding any new ones myself. If you interested in adding APIs and seeing how it's done now the easiest one to start with would be the ServerStatus one in inc/pulls_server.inc followed by the inc/pulls_eve.inc then work up to the character and corporation ones.
For those programmers interested in how I'm planning to change Yapeal might want to take a look at the IFecthApiTable.php, ILoadApiTable.php, and IStoreApiTable.php files in class/ directory. Still probably will make some changes to them but you should get some idea where I'm going. Just to throw around a few programming buzz words think Singleton, Factory Patterns, and maybe even a Reflection based plug-in system and an autoloader for classes. |
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.15 19:37:00 -
[117]
Originally by: Dragonaire First I'd like to thank Satis Iqulenax for offering to help with some of the document fixes and additions she's working on. I'd also like to thank her for taking on making some kind of installer to make it easier for people to try out Yapeal.
OH Thanks again
Dragonaire I have some small matters I like to disguss with you. Is there another way to contact you beside this forum or Ingame ??
Kind regards Satis |
Dragonaire
Caldari Corax.
|
Posted - 2009.01.15 20:42:00 -
[118]
Best way would be through my E-mail either from the project files or the one at Google. I'm also usually on Gchat. I use an alt's name for them just look at the Yapeal project owner to figure it out. |
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.15 21:47:00 -
[119]
Originally by: Dragonaire Edited by: Dragonaire on 15/01/2009 20:48:03 Best way would be through my E-mail either from the project files or the one at Google. I'm also usually on Gchat. I use an alt's name for them just look at the Yapeal project owner to figure it out. Using eve-mail is a slow way to get hold of me. I'm usually only on to skip skills for my characters once in a while instead of playing Eve I spend most of my free time working on Yapeal
Hehe okay :) is Gchat somthing you pay for, because I can only find one on the net that cost alot. did find an webbased Gchats but I'm not sure if that's the right one, since when I logged in, the place was empty.
well never mind that.
I might just send you an email.
//satis
|
Dragonaire
Caldari Corax.
|
Posted - 2009.01.15 22:40:00 -
[120]
Looks good so far.
All you need to use Gchat is the free Gmail account. I use Pidgin to view it because I keep my web browser busy doing other things like posting on the forums and have chats from other places I need to use so something that understand several IM services was the way to go for me but the browser based one works as well and doesn't require any setup. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
|
Iskandara Cho
|
Posted - 2009.01.16 22:11:00 -
[121]
Edited by: Iskandara Cho on 16/01/2009 22:11:06 Well, I guess I'll just toss my work thus far. Ah well. Still, its nice to know we'll have an installer soon.
Also check Google Talk not gchat, they are different things. |
Dragonaire
Caldari Corax.
|
Posted - 2009.01.16 23:39:00 -
[122]
I'll take the blame on this one when you both said something about installer I wasn't paying as much attention as I should have been and realize it was two different people not just two different characters and the some person Since one seems to be aiming at IGB and other normal browsers it's not really bad to have two people working at it. I'll let you guys decide if you want to combine your work or keep do parallel development and then I'll cherry pick from both after you have both finished. Let me know what you guys decided or maybe we can all get together somehow and talk it over.
A little point of interest on the number of connections Yapeal was making to the database server and how the new code I'm working on effects it. In testing I've getting an ~8 to 1 decrease in the number of new connections with more then one corporation using it that number should go higher because of more reuse of connections with balances, journals, and transactions etc. This should make anyone on a shared hosting happier since lots of DB connections can really lag you out if the DB server is overloaded. After a couple more tweaks (I seemed to be low on my quota of bugs today need to make a few more for myself ) and some more testing I should get this out later day. |
Iskandara Cho
|
Posted - 2009.01.17 00:21:00 -
[123]
Since IGB pages work out of game as well, there is no reaon to duplicate the work. I'll just take the hit and look forward to the install script being done.
|
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.17 01:33:00 -
[124]
Oh I didn't know that some one was making an installer as well
Well can say that the one I'm doing right now is in first priority based on the IGB and you can not load it offgame since there is checkers that cheks if you are insite eve and if not, tells them that the installer can only be reached from the ingame.
However, I have planed to implement the outgame suport as well but I just want the IGB to work first.
Why I'm doing the IGB first is that it's the fastest and easyest way to get the character ID and name as well as the Corp ID and name. With a trustet site request you can get those variables without having to fitling around the api and cache the character and charactersheet XML to pull those information out.
Anyway, the progress with the installer is allmost done since alle the check for compability on the webhost have been done as well as folders and file write premission. the only part is missing is the fun part where I create the database and the yapeal.ini file. A beta will be done within 24 hours I think.
Just keep in mind that the outgame browser is planed, but first when the IGB part is done since the outgame browser takes a little more time to implement. I'm a little rusty on the API part so I need to refresh that, for the outgame support
Dragonaire I have removed the Debugging function as you mentioned in the email. I has as well removed the Database-server part since it will be implementet as a standard activ=TRUE as well with the Util DB.
1 question thou. all the comments that are in the yapeal.ini-example would you like to have those implemented as well or is it okay with an raw ini file without the descriptions ?
Kind regards Satis
|
Dragonaire
Caldari Corax.
|
Posted - 2009.01.17 02:28:00 -
[125]
Really sorry for the mix up on this
Satis Iqulenax think you could drop the commits and just have one at the top referring them to the example file and maybe the wiki pages instead that should cover it but if anyone else has an idea about this speak up. Make sure to include the new fields for version etc that I added I'll need that for some updating stuff I'm thinking about as well as when people ask for help and send me their logs.
Ok Iskandara Cho guess this will leave you more time to work on the docs we also talked about instead which is something that needs done just as badly as the installer did
|
Dragonaire
Caldari Corax.
|
Posted - 2009.01.17 08:36:00 -
[126]
OK new version is out with the improved DB connection code. I'm see 9:1 decreases in number of new connections vs the old code I knew it would be an improvement but didn't expect that much really. I might be able to tweak it a bit more but not to worried about it now for some reason I'll move on to the other things I've had planned to make adding new APIs easier I think for now.
current version 464 Get it while it's hot! |
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.18 14:58:00 -
[127]
A little update on the Yapeal Installer.
I might just skip the IGB installer and just have the normal browser installer, since I found a smart way to get the characterlist in JavaScript so gettimg the info on a character just depends on what PAI setup you make.
I'll make this so if you try to open this site in the IGB it will just give you a link that will pop out of EVE and open the Yapeal Installer in a normal browser. Thai way I don't have to make my script 2 times, one with javascript support and one without since IGB does not support JavaScript.
Status:
- the grafical UI is done
- The requirement test is done
- The basic cofiguration input site is done. There will be more advanced setups like chosing different databases to each setup groups
- Working on database creation right now.
I think that's that for now.
//Satis |
Dragonaire
Caldari Corax.
|
Posted - 2009.01.18 19:30:00 -
[128]
Satis Iqulenax - Sound good looking forward to having a go with it when you have it finished.
On other news some of you may have noticed I've had lots of problems getting out working versions of Yapeal lately. Part of is some software I was try working in unexpected ways when merging branches back into the trunk but mostly it was because of how I was working and testing the code. The way I was doing it tended to mix things like the config file from one branch or the trunk with the code from the other etc. Needless to say that just doesn't work well. So after someone got on me the other day about it I started making some changes to how I've setup my testing that should help prevent that from happening.
Another problem I have is because I only have 3 of my characters and one small alt corp to test with I just can't test the code like it needs to be. To try to solve the lack of ability on my part to test stuff I'd like to ask for some of you to help out as alpha/beta testers for me so the code can be more fully tested before I bring it back into the trunk. One thing I need from anyone that wants to help out as a tester is you most have an hour or two every one or two days when you can try stuff and either report back what happened or you can be on Google's IM with me when you are testing so I can ask questions and have you try stuff. I'll try to put up some more info on the wiki or somewhere about it but for now if you're interested in giving me a hand with this sent me an E-mail to either the e-mail in the code or my alt's E-mail dragonrun1 over at Gmail |
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.24 20:07:00 -
[129]
Okay people.
After working together Dragonaire I have made an Basic Yapeal Installer.
It out now together with an version of yapeal that should be stabel.
the installer is working with both JavaScript enabled and disabled but the one with most install steps will be the one with no JS active.
This will make it easyer for people to setup Yapeal and will be able to run it without having problem with manual setup.
In the future there will be a more advanced installer that will be able to handle setup of multi databases as well as setup table prefixes so you don't mis tables together. There will allso be the option to input a password from the installer after Yapeal have been setup so you can edit your setup without having to remove the yapeal.ini config file.
To download yapeal in the most easy way is to grab it from the SVN.
For you who don't know how to do that, here is a little tutorial on doing so in windows.
- Download Tortoisesvn
- Install Tortoisesvn
- Create a folder where Yapeal should be placed.
- Right click on the folder and chose: SVN Checkout
- In the Url you input: http://yapeal.googlecode.com/svn/trunk
- Now press the OK button and it should get the latest version of Yapeal.
- Now each time you want to update to the latest version just right click the folder and chose: SVN Update and it will automatic update to the latest one.
I think that's all.
Kind Regards Satis Iqulenax Yapeal Member
|
Dragonaire
Caldari Corax.
|
Posted - 2009.01.24 21:34:00 -
[130]
Thanks Satis Iqulenax for all the hard work on the installer know it took a while longer to finish it then we expected but it works well. Everybody that's been having any problems understanding how to setup Yapeal should be very thankful now to you for this
Now on to other news while not helping Satis Iqulenax with the installer now and then I've been working on a branch where I've making some changes that should make everyone happy when I'm done. I've been working on the code so that adding new API will be much easier to give you an example of how much easier within a couple hours of get the first API convert I decided to add a few new ones just to test it and I ended up with several from the map working and also convert the ones I had before in eve over and working. So in the time it would normally take to do one I did 7 and have another mostly done while adding another section (area) for maps that Yapeal didn't do before. This is something I'd been want to get to for over two months now but other things have had priority.
I'm also starting to add and test the table prefixing code as part of the change over in code while I'm at it which brings up another change I have been thinking of making. I thought I'd get some input from the people using Yapeal before making this change since it might cause some problems. The change is to no longer support having each API section in a different DB. To better understand what I'm talking about go over to the main Eve-Dev API page. The sections I talk about are like where you see Account, Character, Corporation, etc. As it is now in Yapeal each one of those can be in different databases with different user/password and other settings. This does let there be some nice flexibly but also makes for a more complex configuration to maintain and use. By dropping this ability to use multiple database it would greatly simplify the yapeal.ini and along with some other changes I'm looking at could get it down to maybe less then six settings while adding a bunch of per character and per corporation settings for which API you actual want. So for example now if you enable a character in RegisteredCharacter and Yapeal had stuff to get the SkillInTraining API it would interfere with your EveMon With some changes including dropping the multiple table stuff that is I believe not used by anyone it'll greatly simplify add per character/corporation settings on APIs so the APIs for things like SkillInTraining, Killlog can be added to Yapeal but turned off so they don't interfere with EveMon and Killboards you might want to use.
Okay I'll stop there for now before this gets any longer and see what everyone thinks of making the changes. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Sondrou Xi'Tral
Gallente CBE Handwerks Stargate Experiment 626
|
Posted - 2009.01.25 07:58:00 -
[131]
Ok, I just used the installer (very nice btw), and everything seemed to install fine. However when I point my browser to backend/eve-api-pull.php I get the following message:
Notice: Yapeal version 464 (beta) 2009-01-17 03:16:35 in /home/u5/methos237/626/html/api/inc/common_backend.inc on line 55 Fatal error: Call to undefined function spl_object_hash() in /home/u5/methos237/626/html/api/class/YapealApiException.class.php on line 75
|
Buzz AU
|
Posted - 2009.01.25 11:44:00 -
[132]
Notes regarding the Installer:
Quote: Welcome to Yapeal Installer. This installer will setup Yapeal EVE API Library to be runned on your site. The setup will check if your web host has the requirements to support this library.
It should be "run on your site", not "runned on your site"
On the "success page"
Quote: The setup is done. You can now run the backend/eve-api-pull.php to cache all the data
Maybe make the "backend/eve-api-pull.php" a link?
Just comments. It is fantastic and a LOT easier. Great job
|
Buzz AU
|
Posted - 2009.01.25 11:50:00 -
[133]
I get the below when trying to pull the data, I have set the permissions on the file and folder to "777", but still get the same.
Quote: Forbidden
You don't have permission to access /Yapeal/backend/eve-api-pull.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.10 (Unix) mod_ssl/2.2.10 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at www.mysite.com Port 80
|
Dragonaire
Caldari Corax.
|
Posted - 2009.01.25 14:41:00 -
[134]
First off the reason there is a .htaccess in backend/ is YAPEAL IS NOT A WEB APPLICATION It is a library you use to make a web application with but YOU ONLY RUN YAPEAL FROM A COMMAND CONSOLE, OR CLI as it is know in PHP. The ONLY part of Yapeal that is made to be used as a web page is the installer. Everything else in it is made to be used from the CLI. |
Buzz AU
|
Posted - 2009.01.25 18:25:00 -
[135]
Is that to say, we shouldn't run it using a normal cron job? |
Johnathan Roark
Caldari Borgholio's Collective Prime Orbital Systems
|
Posted - 2009.01.25 18:29:00 -
[136]
Originally by: Buzz AU Is that to say, we shouldn't run it using a normal cron job?
That would be running it from a CLI, so yes |
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.25 19:34:00 -
[137]
Originally by: Buzz AU Is that to say, we shouldn't run it using a normal cron job?
Yes you can run it as a cronjob and it is ment to be runned as a cronjob or on windows server a schedul task.
What Dragonair men't is that you should not run eve-api-pull.php from a webbrowser. That's why there was put an .htaccess file in that directory :)
//Satis
|
Dragonaire
Caldari Corax.
|
Posted - 2009.01.25 22:35:00 -
[138]
Okay I guess I'm making to many assumptions here that people understand some things that apparently they don't so I try to clear some of them up for everyone.
- CLI or Command Line Interface is a generic term that the designers of PHP use to describe any console type interface i.e. NOT windowed or web. On most Unix systems this is normal sh, on Linux it's Bash or one of several others if the user changes it. With Windows systems you have cmd.exe which you can usually access through the classic start menu by Start > Run and typing in cmd and clicking OK.
If you use anything like SSH to get to your hosted web server you are also run a CLI, usually Bash, with the input and output in effect redirected to your local machine over an encrypted connection.
- Cron or also know as crontabs is a system available on most Unix/Linux to run CLI programs/scripts for a user at different starting times and intervals. Generally only the interval part is used where it can be anywhere from 1 minute to hours, days or clear out to years in the future.
- Schtasks provides the same basic functionality as crontab does for Unix/Linux systems.
- Yapeal short for Yet Another Php Eve Api Library is a CLI PHP5 script that gets information from the Eve XML API and puts it into a MySQL database. A web based installer has also been made for it to help people get started with it but the main script is only made to be run from a CLI or as a crontab job.
Hope this is useful to people and helps make some things clearer.
|
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.25 22:41:00 -
[139]
Edited by: Satis Iqulenax on 25/01/2009 22:41:40 Okay I have just made 3 guids in the Yapeal Wiki.
- Setup a webserver on windows using Wampserver
- Install Yapeal on your windows webserver
- Guide to setup task scheduler for Yapeal in windows (Like cronjob)
Hope they will be of some use for those who want to testout Yapeal on there own Windows PC
//Satis |
Buzz AU
|
Posted - 2009.01.25 22:47:00 -
[140]
In that case, change the final step in the installer, to not say "now you can go to /backend/.." |
|
Dragonaire
Caldari Corax.
|
Posted - 2009.01.25 22:51:00 -
[141]
Yeah the installer is in a raw Alpha/Beta state but we thought it was useful enough it was worth getting it out for people to use as we polish it and do a newer version with some more features. |
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.01.26 18:51:00 -
[142]
Originally by: Buzz AU In that case, change the final step in the installer, to not say "now you can go to /backend/.."
Both the welcome page and the end page should now be updated and can be updated from the trunk now :)
|
Dragonaire
Caldari Corax.
|
Posted - 2009.01.28 23:22:00 -
[143]
Just ran across a web page that anyone try out Yapeal on Windows and having problems with PHP might want to take a look at. http://www.corephp.co.uk/archives/36-A-Guide-to-using-PHP-5-Extensions-on-Windows.html |
Cryten Jones
Gallente Eldritch Storm The Matari Consortium
|
Posted - 2009.02.05 17:18:00 -
[144]
Hi,
Nice work here! Just learning how all the dump tables work and this API is making my life easier * 1000 to get my head around it all!
Could anyone tell me what the lft and rgt column in the assets table are? I can't see them anywhere on the api documentation!
Also, how does yapeal deal with the Item X is inside Item Y? The xml provides a 'contents' value but as far as I can see yapeal just sets assets locationID to the same as their containers..is this right?
Thanks
-CJ
Originally by: Nogap toosmall
and your understanding of probability is on par with a radish.
|
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.02.06 02:00:00 -
[145]
Originally by: Cryten Jones Could anyone tell me what the lft and rgt column in the assets table are? I can't see them anywhere on the api documentation!
Also, how does yapeal deal with the Item X is inside Item Y? The xml provides a 'contents' value but as far as I can see yapeal just sets assets locationID to the same as their containers..is this right?
Thanks
-CJ
Hi CJ.
the 2 question you made is actually related to each other. the lft and rgt is hierarchical data and is a more advanced method to get what's inside a container or what a ship is fitted with or what is in a station.
to find out more about this, read in the Yapeal wiki in this section: hierarchical data Read and use the links in there and your question will be answered :)
Kind Regards Satis Iqulenaz Member of Yapeal Project: Installer/Setup |
Dragonaire
Caldari Corax.
|
Posted - 2009.02.06 05:46:00 -
[146]
Something that might give you and others a better understand of some of the power that nested sets gives you here some examples. Finding all your assets in the -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Satis Iqulenax
Amarr Hybris Pride
|
Posted - 2009.02.06 14:12:00 -
[147]
Originally by: Dragonaire Something that might give everybody a better understand of some of the power that nested sets gives you here's some examples.
I just took the opportunity to take your small guide Dragonaire and paste it in the wiki on Yapeal Wiki.
The link is here: Small and simple nested sets guide
Kind Regards Satis ---- Yapeal Developer Member Yapeal Setup Creater |
Dragonaire
Caldari Corax.
|
Posted - 2009.02.10 20:51:00 -
[148]
Hi all it's been a couple weeks since I've really posted about any changes or updates on Yapeal so I thought I'd let people know what's been going on. I've been in the process of doing a much needed re-factoring on all the code that will make it much easier to maintain and add to. Many of the ideas for the changes I've been kicking around for a couple months but was put on hold until I had more of the bugs fixed and what I considered the base set of APIs working. The old code though it worked had several problems with it that made it difficult to add new APIs especially by anyone other than me and sometimes when adding new APIs it would break others. It also had some limitations that made adding some requested features difficult or near imposable without changing a lot of code. I've also been learning a lot about how many site hosting locations setup stuff for their customers and where things I had done with Yapeal made it hard for many people to setup and use it. Given all the above I decided to 'crawl into a hole' so to speak and do a near complete re-write of much of the code.
Okay on to what this will mean for anyone using Yapeal which is all that most of you are interested in anyway Here's a broad outline of some of the changes/additions to expect.
- Table name prefixes. Many people are only allowed a single database at their hosting site so they need to have their applications and Yapeal tables all play nice together. I was also running into some issues with APIs using duplicate names on some rowsets which adding table name prefixes would also help solve.
- Ability to use multiple database to store all of Yapeal's varies tables has been dropped. This allowed for many of the other changes to be done much easier and was believed to be a largely unused feature. With the addition of user settable table prefix name the need for this is believed to be largely mote now so it was removed.
- There will be some changes to the database tables. All the table names have been changed to add a two part prefix the first part is user configurable and second part set internally by Yapeal.
- Some new tables have been add for additional APIs or old APIs that have been expanded on to make them more complete.
- Each API is now implemented as it's own class which solves many of the problems of changes to one API effecting others. This has also made adding more APIs easier and should make it easy for other programmers to understand how to add an API. That should mean not always having to wait on me to get around to adding new ones. This doesn't mean I won't be continuing to add APIs just that maybe I won't have to do all of them myself. At least that is my hope anyway.
- Some bugs and mis-features fixed. Probably added a few new ones but I've been do much more testing on this code then some of the code I've released in the past.
- The yapeal.ini has had a major overhaul and been streamlined. Dropping multiple database table support was one of the main things helping with this but there were many other factors that made this possible.
Ok that should get you an idea what's coming. I hope to be finished with the conversions/updates and have finished all the testing I can do this week and be able to release everything into trunk for people to try out. I'll try to have a more detailed change list available when I release the code and probably have some instructions on what you'll need to do if you're upgrade from the current version of Yapeal. |
Dragonaire
Caldari Corax.
|
Posted - 2009.02.19 00:36:00 -
[149]
Hi all so it took a little more than a week but someone else decided to have an extend downtime on me but I've now merged all the changes into trunk for people to try. All current users be sure to read the updating.txt file in the root directory it has some important instructions on migrating your data from the old database tables into the new ones as well as some other information you'll need.
Please report any bugs you find. I've tested this revision more that many in the past but some bugs may have got through since I have limited resources to test some things with the characters available to me.
The currently supported API list on the wiki has also been updated for anyone interested.
revision: 572 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Ramov Tinoga
Tinoga Enterprises
|
Posted - 2009.02.23 11:48:00 -
[150]
Dragionaire, thank you very much for the new framework!
To give you a heads up: I'm working on the implementation for the Standings API (character and corp).
I haven't seen an API that has a structure similar to the Char Standings API (two groups with several rowsets). From my first analysis and following the approach used in CorporationSheet, it would need 5 new tables for char and corp each.
- [char|corp]StandingsToCharacters
- [char|corp]StandingsToCorporations
- [char|corp]StandingsToAlliances
- [char|corp]StandingsFromAgent
- [char|corp]StandingsFromNPCCorporations
- [char|corp]StandingsFromFactions
But I think I'll merge them together so that a total of 4 tables (charStandingsTo, charStandingsFrom, corpStandingsTo, corpStandingsTo) with 5 fields (one of them an enum field for the rowset name) will do.
What do you think?
-----
|
|
Dragonaire
Caldari Corax.
|
Posted - 2009.02.23 20:08:00 -
[151]
My general principal is to make each rowset a new table or anything that acts like a rowset ie attributeEnhancers and attributes in CharacterSheet became their own tables even though they aren't exactly a perfect match. I've also been naming the tables by the name attribute given to the rowset but here that's a problem as you have StandingsTo and StandingsFrom with rowsets having the same names (corp, alliance, etc) :P
Quote: (one of them an enum field for the rowset name)
I don't think a enum is way to go as I've generally tried to keep the tables free of any MySQL only data types so if someone wanted to port them to another DB backend that ADOdb supports it would be easier. It's better to use a plain text field and have a list of values that is enforced in the PHP instead. I did that with MarketOrders for the buy/sell field as an example. Where I have used MySQL specific SQL I've also tried to isolate it into a function so it only has to be changed one place to make porting easier should someone want to do so.
Ok after looking at the both APIs some more the way I'd do the character one is to have the 5 tables named charStandingsToCharacters, charStandingsToCorporations, ..., charStandingsFromFactions. This does end up with 5 tables but it stay more in line with how the other tables have been done I think. The corporation ones look somewhat more complex at first but you can basically use the same system with them. corpCorporationStandingsToCharacters, ..., corpCorporationStandingsFromAgent, ...,corpAllianceStandingsToCorporations, ...
Doing it this way does result in a large number of small tables with long table names but will make getting data back out in applications easier I believe.
You've managed I believe to have picked one of the harder APIs to tackle first :)
Having said all that if you feel like trying it the other way with the change from enum to a char column and post it so we can take a look at what you're thinking. Maybe we'll get some input from others and see what they think would be easier and make more sense when trying to use it. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Ramov Tinoga
Tinoga Enterprises
|
Posted - 2009.02.24 08:31:00 -
[152]
Originally by: Dragonaire Ok after looking at the both APIs some more the way I'd do the character one is to have the 5 tables named charStandingsToCharacters, charStandingsToCorporations, ..., [..]
Doing it this way does result in a large number of small tables with long table names but will make getting data back out in applications easier I believe.
When you're ok with 12 more tables, then I'm ok too. It's much easier to maintain in the code when there's just a multiupsert for each rowset without having to tackle the different cases. I had second thoughts because each half of the 12 tables has identical structure (fromID, fromName, standings / toID, toName, standings).
Quote: You've managed I believe to have picked one of the harder APIs to tackle first :)
Now that you mention it.. It's the one I'm missing most at the moment, so I started with that, "charStandingsFromNPCCorporations" to be particular.
-----
|
Dragonaire
Caldari Corax.
|
Posted - 2009.02.24 17:25:00 -
[153]
If you're interested and have a Gmail account (it's free) I can add you on to the project if you'd like. Just contact me via either the E-mail from the code or my Gmail one which you can figure out from the project. If you decided you want to do that please include you Eve character name some where in the title so don't I delete it with the spam
Anyone else that's interested in developing one of the other APIs is also welcome to email about joining the project. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax.
|
Posted - 2009.02.26 18:44:00 -
[154]
Hi again thought I'd let everyone know we now have a new Russian translation for the installer that someone did for us. Like to thank John for getting that for us.
While I talking about translations for it I'd like to see a few more so if any of you are interested in helping us out with them please contact either me or Satis Iqulenax about doing so.
revision 602 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Caelon Bissau
|
Posted - 2009.02.27 06:50:00 -
[155]
This seems like a simple problem but I can't find any reason for it to behave this way.
New install and I've set yapeal.php in a cron job but the only output I get is that it thinks I'm running it in a web browser and sends me that error message instead.
Any thoughts?
|
Dragonaire
Caldari Corax.
|
Posted - 2009.02.27 08:33:00 -
[156]
You're probably on a Debian or hosted site using Debian or something similar that has the CGI version of first in your path. Most better hosting will have a wiki or other resource to help you with what you need to do. If you can't figure it out on your own on a hosted site contact support and get some help. If you have console access you can also look around usually and find the CLI version of php somewhere.
Once you know the location for the CLI version of PHP you just need to use the alternate crontab instructions from wiki.
http://code.google.com/p/yapeal/wiki/CrontabSetup -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax.
|
Posted - 2009.02.27 08:37:00 -
[157]
You're probably on a Debian or hosted site using Debian or something similar that has the CGI version of first in your path. Most better hosting will have a wiki or other resource to help you with what you need to do. If you can't figure it out on your own on a hosted site contact support and get some help. If you have console access you can also look around usually and find the CLI version of php somewhere.
Once you know the location for the CLI version of PHP you just need to use the alternate crontab instructions from wiki.
http://code.google.com/p/yapeal/wiki/CrontabSetup -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax.
|
Posted - 2009.02.27 08:39:00 -
[158]
You're probably on a Debian or hosted site using Debian or something similar that has the CGI version of first in your path. Most better hosting will have a wiki or other resource to help you with what you need to do. If you can't figure it out on your own on a hosted site contact support and get some help. If you have console access you can also look around usually and find the CLI version of php somewhere.
Once you know the location for the CLI version of PHP you just need to use the alternate crontab instructions from wiki.
http://code.google.com/p/yapeal/wiki/CrontabSetup -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax.
|
Posted - 2009.02.27 08:42:00 -
[159]
You're probably on a Debian or hosted site using Debian or something similar that has the CGI version of first in your path. Most better hosting will have a wiki or other resource to help you with what you need to do. If you can't figure it out on your own on a hosted site contact support and get some help. If you have console access you can also look around usually and find the CLI version of php somewhere.
Once you know the location for the CLI version of PHP you just need to use the alternate crontab instructions from wiki.
http://code.google.com/p/yapeal/wiki/CrontabSetup -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax.
|
Posted - 2009.02.27 08:46:00 -
[160]
You're probably on a Debian or hosted site using Debian or something similar that has the CGI version of first in your path. Most better hosting will have a wiki or other resource to help you with what you need to do. If you can't figure it out on your own on a hosted site contact support and get some help. If you have console access you can also look around usually and find the CLI version of php somewhere.
Once you know the location for the CLI version of PHP you just need to use the alternate crontab instructions from wiki.
http://code.google.com/p/yapeal/wiki/CrontabSetup -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Phobos v2
Big Bangs Emporium Langers R'Us
|
Posted - 2009.03.02 22:18:00 -
[161]
I was wondering if anyone could point me in a direction here. I've installed Yapeal, setup the tables and corrected the ini file. When I run the cron job for eve-api-pull.php i just get this in response..
X-Powered-By: PHP/5.2.8 Content-type: text/html
It does populate the tables or any logs.... Not sure what i have done wrong.. |
Dragonaire
Caldari Corax.
|
Posted - 2009.03.02 23:55:00 -
[162]
First thanks for trying Yapeal. That you're getting anything that looks like headers talking about html suggests your not using the CLI version of PHP or it's mis-configured. Also you should be running yapeal.php not backend/eve-api.pull.php as that's change but the documentation hasn't caught up yet. Here's a few question/ideas of things that might help in figuring out the problem:
Where are you see that output because you shouldn't every get that kind of output from Yapeal.
It would be helpful to know what OS (Linux I assume since you said crontab) you're run it on etc
If you look at the cache/log/ directory the log files there might help you figure out what the problem is or help me know what's going on anyway
Did you try running it manually from the command-line before trying it as a crontab because you'll get to see more what's going on when you do that usually.
Have you tried changing 'log_level' in config/yapeal.ini to E_ALL like suggested in the example for testing?
Have you tried changing all the settings to the suggested ones for testing from the example they should give you a lot more information about what's going on both on the command-line and in the log files.
Last thing that I probably don't have to say but better safe than sorry Have you checked you have the latest from the subversion? Current revision is 620 something at this time. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Phobos v2
Big Bangs Emporium Langers R'Us
|
Posted - 2009.03.03 08:33:00 -
[163]
Edited by: Phobos v2 on 03/03/2009 08:33:20 Thanks for your quick response, I have a feeling it might be that I haven't got CLI php. I certainly have debug on full and don't get anything from it in the logs. And now i've moved to pointing the cron job at yapeal.php i'm getting the message that i'm running it as a web page (i'm getting these by outputting the results to a file as I don't have cli access to my server).
Thanks :) I'll come back once i've worked through what you've suggested :D |
Dragonaire
Caldari Corax.
|
Posted - 2009.03.03 14:28:00 -
[164]
Okay just something to add since you're on a hosted site without command-line access Have a look at my post in 156 sound like a similar problem and you'll probably end up having to do something like that. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Phobos v2
Big Bangs Emporium Langers R'Us
|
Posted - 2009.03.03 18:26:00 -
[165]
Working now, php path in as per one of the recommendations on your cronjobs pages :)
THanks dragonaire :D
|
Dragonaire
Caldari Corax.
|
Posted - 2009.03.04 06:36:00 -
[166]
Good to hear and since you said something about them and reminded me, I've now gone through the Linux pages and updated them to be in line with newest revisions of Yapeal. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax.
|
Posted - 2009.03.05 23:27:00 -
[167]
Hi again I'm like to announce a new improved Yapeal for you all to try out. I'll give a quick list of changes here.
- Fixed bug with charWalletTransactions. This may require you to alter a table, details below.
- Added standings API for characters and corporations. Thanks to Ramov Tinoga for making it and writing such nice clean code made it easy to test and add with only minor additions.
- APIs to pull can be selected on a per char/corp basis ie if you only want to get CharacterSheet and AccountBalance for a character or only AssetList and MarketOrders for a corp now you can.
- Updated configurer thanks to Satis Iqulenax. It now includes an update section for those of you upgrading a recent version.
- Configurer now let's you select which APIs you wish to get. Needed to work with change above.
- The usual minor tweaks and improvements etc that I never seem to run out of
Here's the SQL you'll need to run to fix the charWalletTransactions table.
Quote: ALTER TABLE `charWalletTransactions` DROP COLUMN `characterID`; ALTER TABLE `charWalletTransactions` DROP COLUMN `characterName`;
You'll still need the latest revision of Yapeal to have it work right but these changes can be made either before or after updating as needed.
As always bug reports or a thank you are welcome.
We are currently working on a couple more APIs and Satis Iqulenax has started working on an addition to the configurer so you can use it to upgrade Yapeal using a single button more information on these changes as the code is closer to being done.
revision 656 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Goonda
Minmatar DOMINATIO
|
Posted - 2009.03.07 14:06:00 -
[168]
It took me a while to set this thing up. Like a few others here, I dont have command line access on my server. Now that I have it running, it is great.
I am planning to create a Drupal plugin with features similar to Out of Eve, and this seems like the perfect API library to base it off of.
|
Dragonaire
Caldari Corax.
|
Posted - 2009.03.07 20:51:00 -
[169]
Glad you like it and good luck with the application. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Goonda
Minmatar DOMINATIO
|
Posted - 2009.03.10 19:37:00 -
[170]
I'm really loving this thing. It is very powerful and is making my site development a lot easier. Which is a must, considering that I am teaching myself PHP, SQL, and the EVE-API as I go.
Also, about the code you are working on to auto-populate the utilRegisteredCharacter and utilRegisteredCorporation tables. I actually prefer the current situation with complete application-side control of those tables. It allows better flexibility, even if it does take a little more code in the application.
I have one suggestion regarding the corp tables. Currently the ownerID fields within the corp tables is only the corporationID, but does not include any character related information. Would it be possible to add another "ownerID" field with character identifiers?
Maybe call it ownerIDchar, and have it contain a space delimited list of the characterID for each character (registered in utilRegisteredCorporation) that can get that info from the API.
|
|
Dragonaire
Caldari Corax.
|
Posted - 2009.03.10 23:42:00 -
[171]
Hi glad to hear it's helping you out developing your application.
I've limited the utilRegisteredCorporation to using only one characterID because it made Yapeal much easier to program plus I believe easier to use since you only need to associate one character with the corporation to use it.
Quote: I have one suggestion regarding the corp tables. Currently the ownerID fields within the corp tables is only the corporationID, but does not include any character related information. Would it be possible to add another "ownerID" field with character identifiers?
If it did that I'd also have to make it part of the primary key which would mean we'd end up have multiple copies of say corpCorporationSheet or corpAssetList which isn't a good thing. Which is the correct one? How do we handle the extra record when a director leaves the corp for example? Plus it just not good database practice to do so to better understand why look up database normalization.
Quote: Maybe call it ownerIDchar, and have it contain a space delimited list of the characterID for each character (registered in utilRegisteredCorporation) that can get that info from the API.
This is also related to the above as to why not to add a column for this but to help you out developing the list for your needs I'll show you how to get this information from the existing APIs. First some background information you should know. The CEO of a corporation has full access to all the corp APIs using their full APIkey. Also any Directors in the corp has full access. Some of the APIs also let you have access by just being a member of the corp or by having some role in the corp like accountant, etc. There are a couple ways to look up if a character has the needed roles in a corporation. One is to use the charCorporationRoles* tables but requires that the char is registered and active. The other way to do it is to use the corpMemberTracking table which is much easier and only requires the corp API to be active. Using it does make for a bit of a chicken and egg problem when setting stuff up but that something that you'll have to solve as an application developer I will give you a hint on finding the corp members with director access though. You'll need to do something like this:
Quote: SELECT `characterID`,`name` from corpMemberTracking WHERE (`roles` & 1) = 1;
Hopefully that helps you understand the reasoning and ways you can get the information you need. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Goonda
Minmatar DOMINATIO
|
Posted - 2009.03.11 00:17:00 -
[172]
Thanks for the lesson on database structure. I always like learning new things, and its tough trying to figure everything out from scratch.
Originally by: Dragonaire Some of the APIs also let you have access by just being a member of the corp or by having some role in the corp like accountant, etc. There are a couple ways to look up if a character has the needed roles in a corporation.
This is the part that I'm having trouble figuring out. I understand CEOs and Directors having full acccess, but it is the partial access for regular members and other roles that I'm trying to figure out. I suppose the issue is more of an API question than anything.
I can't seem to make any sense of the 'roles' column within the corpMemberTracking table. Which is outputting values like '575900001641700992' and '9223372036854775807'. The charCorporationRoles* tables would probably serve this same purpose. In either case, the issue then becomes figuring out which roles allow access to which corp info. Another pair of general API questions.
If I could find some resource that had the above info, I could figure it all out.
My feature request above was all about trying to work around this entire issue.
|
Dragonaire
Caldari Corax.
|
Posted - 2009.03.11 06:58:00 -
[173]
The first link in the sticky above is best resource http://www.eveonline.com/ingameboard.asp?a=topic&threadID=1006676 You'll also find a few more links on the main page there to places like Chucker's that covers some of the same stuff in different ways and also stuff that Eve-Dev doesn't. There's also an example class for dealing with roles that I put out for people to use and abuse in the API Building blocks section near the bottom you should find useful. Basically the roles are in a 64bit long bit map so you need to mask it to find out which ones are set. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Sondrou Xi'Tral
Gallente Terror Solutions Stargate Experiment 626
|
Posted - 2009.03.13 23:19:00 -
[174]
I've been playing around with this quite a bit over the past few days since this seems to be almost exactly what I am looking for when it comes to pulling API data for my alliance website. There are some questions I have, but first I want to post a fix I have come up with that may solve some problems you may have if setting this up on a site with shaed hosting.
Concerning the crontab setup, my hosting company has set the server's CLI php.ini to read only, and the only way to get the CLI to read your custom php.ini is by adding some information to the cronjob. I was getting errors stating that mysqli was not installed when I ran the cronjob, but the CGI (phpinfo()) showed that I had it enabled (as did the check in the setup.php file). However when I went to my CLI and typed php --info, I saw that I was not only using PHP4, but some of the required extensions were missing from my CLI. The fix for this is three parts.
1) Contact your hosting company and find out what the path to PHP5 is. For instance, I have two paths for PHP, one for PHP4 (usr/local/bin/php) and one for PHP5 (usr/local/bin/php5). If this is the case MAKE SURE YOU USE THE PHP5 PATH.
2) Create a php.ini file and place it somewhere on your webserver that is not able to be browsed to, i.e. if you have something like ftpname -> html -> mysite.com, place it in the ftpname folder. A standard php.ini that you can edit to your needs can be found here. All you have to do is remove the ";" from the front of the extensions you want to use.
3) Modify your cronjob to point to the new php.ini in the following format: /path/to/php5 -c /path/to/php.ini /path/to/yapeal.php -c path/to/yapeal.ini
This got me up and running on my shared host (aplus.net), and hopefully it can help some of you out as well.
Since this post is already long enough, I'll make another post with my questions :)
|
Sondrou Xi'Tral
Gallente Terror Solutions Stargate Experiment 626
|
Posted - 2009.03.13 23:29:00 -
[175]
Ok, now for my questions:
I am running an alliance website, and each member that registers to the site provides either their limited or full api key upon registering, so I can check to ensure they are a member of the alliance. I am planning on adding other feature with the API keys, but with over 200 registered members, it will be tedious as hell if I have to run the setup.php to add each one of them.
Currently my registration asks for the API User ID, the API Key, and whether it is Limited or Full, and saves this to a database table combining the info with their website ID. What I need to know is, is there a way that I can have Yapeal look to this table (in the same database as the Yapeal tables) for the API information without breaking anything. Also, is there a way to make it so that I only have to supply the API User ID and the API Key, and Yapeal can run a job to collect the Character ID's of all the character's associated with that account, as well as those Character's Corp ID's?
If I can't make Yapeal look to my current API table and pick the API info from there, I can always do a cron import of the data once every few days, but I would really need to be able to have Yapeal take the API User ID and API Key from the utilRegisteredUser table and populate the utilRegisteredCharacter and utilRegisteredCorporation tables with all the Character ID's and Corporate ID's.
Any tips would be very appreciated!
|
Dragonaire
Caldari Corax.
|
Posted - 2009.03.13 23:44:00 -
[176]
Thanks for sharing you tips for things to look for and the workarounds. Only thing I'd add to your post is that in 3) if you used /path/to/php5 -c /path/to/php.ini -f /path/to/yapeal.php -c /path/to/yapeal.ini it might be better though the '-f' is supposedly optional.
-- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Goonda
Minmatar DOMINATIO
|
Posted - 2009.03.15 02:17:00 -
[177]
What do you think about the idea of adding foreign keys (for delete cascade) to each of the char* and corp* tables (and possibly the accountCharacters table)?
It would sure make deleting characters, corps, and accounts a lot easier.
|
Tenshi Ryu
|
Posted - 2009.03.15 07:09:00 -
[178]
Edited by: Tenshi Ryu on 15/03/2009 07:12:53
Originally by: Dragonaire
NEW HOME http://code.google.com/p/yapeal/
Can someone please tell me where the heck on the above website I can download this? I been over it from top to bottom .... NOTHING!!!!
pleeeeeeasse help ... I really wanna try this.
|
Dragonaire
Caldari Corax.
|
Posted - 2009.03.15 07:44:00 -
[179]
Had the tables done that way before in the API application I made that Yapeal developed from and I ended up taking them out because trying to get it all working was a nightmare. Also some people don't want their skill list to disappear when they delete their CharacterSheet for example. Also how to you handle corpMemberTracking when someone leaves one corp for another and they are both in the same DB? Much better for that logic to be in the application code where each developer can decide how they want to handle it. I've tried not to build in any interdependences between API tables as any that are added might interfere with someone's application they are making with it. There were several things that got designed into Yapeal as it was because how I had used things in my other programming that I've been slowly trying to remove so as to make Yapeal more useful for more applications. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Gorfob
Minmatar GoonFleet GoonSwarm
|
Posted - 2009.03.15 10:10:00 -
[180]
Originally by: Tenshi Ryu Edited by: Tenshi Ryu on 15/03/2009 07:12:53
Originally by: Dragonaire
NEW HOME http://code.google.com/p/yapeal/
Can someone please tell me where the heck on the above website I can download this? I been over it from top to bottom .... NOTHING!!!!
pleeeeeeasse help ... I really wanna try this.
This man makes a point. UNless we are supposed to grab the source from the source viewer on the website there is no link to download it.
|
|
Dragonaire
Caldari Corax.
|
Posted - 2009.03.15 14:45:00 -
[181]
From the first post.
Quote: Available through subversion at new home.
I also now edited my first post to add some additional information and links that might be helpful.
So to put it simple there aren't any 'downloads' at this time and may not ever be you need to use a subversion client to get Yapeal. You can find out more about subversion and what you need to do to get it at http://code.google.com/p/yapeal/source/checkout there's also some instructions for installing Yapeal on Windows in the wiki. http://code.google.com/p/yapeal/wiki/InsYapWinSer
This has also been asked/wrote about a couple times already in this thread as I remember so there's probably some more info back a couple pages if you look.
Just some notes for people that are on hosted server and don't have command-line access or no subversion access from it, you can get Yapeal on any computer and then upload it with ftp, etc just like you would any other web page or script. The preferred place to have Yapeal installed would be outside of any directory accessible by the web server but that isn't always possible I know and does make using the configurer very hard If you use a local test server (You should be you know) you can even copy it's configuration to your live server so you don't even need to run the configurer on the remote server which should make it easier to instill it somewhere else for added security. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Marty Thompson
|
Posted - 2009.03.16 00:41:00 -
[182]
Hey, just wanted to say thanks for the cool tool. I finally have it up and running on my computer and I'm working on creating useful output for myself.
|
Dragonaire
Caldari Corax.
|
Posted - 2009.03.17 22:50:00 -
[183]
Just thought I'd let everyone know I've added a page to the Eve online Wiki about Yapeal you can view it at http://wiki.eveonline.com/wiki/Yapeal
No new information in it since I basically took the wiki page from Eve-dev and dropped it into page but thought I'd let people know about it.
In other news I'm working on some issues that have come up while working on a new API and some errors that have been reported to me by some others as well. I expect to have some fixes ready in a few days. Satis Iqulenax has also been work on some issues with the configurer that have been reported and hopes to have them fixed within a couple days also. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Wraas Mlnir
Arctic Flying Penguins A.X.I.S
|
Posted - 2009.03.18 00:02:00 -
[184]
Edited by: Wraas Mlnir on 18/03/2009 00:04:57 I did scan through to see if it had already been mentioned (apologies if this is a dupe, its been a long day).
Your Yapeal.sql file has a typo. The section that creates the TABLE utilConfig is referred to as utilconfig a couple of lines below causing the sqlscript to throw an error when it is run.
A quick search in vi for utilconfig will highlight only one instance and if you need a line count its on line: 742 meh |
Dragonaire
Caldari Corax.
|
Posted - 2009.03.18 00:54:00 -
[185]
Your the first to report it but I had spotted that when I was doing something else with the SQL files. It'll be in one of the upcoming fixes. Thanks for the report.
For those interested or needing the fix before I merge it with the trunk change line 742 of install/Yapeal.sql to read:
INSERT INTO `utilConfig` VALUES('version', '$Revision: 621 $') ON DUPLICATE KEY UPDATE `Value`=VALUES(`Value`);
-- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax.
|
Posted - 2009.03.18 23:21:00 -
[186]
Ok Now that they've changed it to something easier to work with I've added the Skill Queue API to Yapeal.
I've also release some minor fixes the some of the SQL files, etc.
The backend/ directory with the old eve_api_pull.php file has been dropped also. It was replaced by the Yapeal.php a while ago but I left the old file in for a while to let people have time to switch over but I've decided it been long enough for everybody to make the switch
Revision 690 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Wraas Mlnir
Arctic Flying Penguins A.X.I.S
|
Posted - 2009.03.19 23:01:00 -
[187]
Is there any chance I can see an example of the three records I need to insert as part of the initial setup as per the Getting Started guide.
I think I am either missing something, or putting in too much into the utilRegistered* tables.
thanks
-Farting on exiting elevators since 2003 |
Dragonaire
Caldari Corax. Sex Drugs And Rock'N'Roll
|
Posted - 2009.03.20 00:52:00 -
[188]
Actual the instructions were missing a step that is needed now to have it work. I've added the step about activeAPI that was probably causing you the problem along with some addition notes that should be helpful. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Wraas Mlnir
Arctic Flying Penguins A.X.I.S
|
Posted - 2009.03.20 13:01:00 -
[189]
That did the trick, thanks for the update.
I have a question about how data is persisted in the database. With large datasets like journals, the API only allows you to go back a fixed amount (either time or number of records if I am not mistaken).
My question is does Yapeal accumulate the data, or does it write over the last dataset with the new data?
-Farting on exiting elevators since 2003 |
Dragonaire
Caldari Corax. Sex Drugs And Rock'N'Roll
|
Posted - 2009.03.20 14:44:00 -
[190]
Most APIs are deleted/truncated and then inserted but the Industry Jobs, Market Orders, Wallet Journal, and Wallet Transactions are not. They will keep the last values from the last update received from the API for each record and there for have a history that continues to grow. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Dragonaire
Caldari Corax. Sex Drugs And Rock'N'Roll
|
Posted - 2009.03.21 19:48:00 -
[191]
Hi everyone it's me again I've just finished killing some bugs in the latest API to be added to Yapeal. With some help from Johnathan Roark on it Yapeal now has Kill Log (Kill mails). You can now get them for both characters and corporations.
Also in this revision Satis Iqulenax and I have been trying to fix all the problems that have crept into the SQL lately for both the main files and the ones used by the configurer. We're looking at making some changes to decrease the number of SQL files that need to be updated and kept in sync which should help some of the problems we are having now.
There was a small bug in the Skill Queue that I also fixed in this revision.
Work is still continuing on the problems with Wallet Journal and Wallet Transactions not walking back through API correctly but has been held up by a need to rewrite much of the code that Yapeal uses to connect to the API servers so has been slow going since it ends up effecting all the APIs to a degree and I'm trying not to break everything all at once for a change
Revision 702 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
General Ordogg
|
Posted - 2009.03.26 04:49:00 -
[192]
Dragonaire, Your php to Mysql is awesome. Thank you for making this available to us all.
I have a question for anyone as I'm not a PHP programmer.
If someone could basicly rip out most of the code for the PHP files for the setup to change it to a free form user addtition to the database that would be awesome. it should be pretty simple for someone with some programming experiance. I just basiclly want to use the wizard or a new page to have a user enter their API and then tag all characetors for that API to get put into the database table utilregisteredcharacter.
I'm willing to pay isk for this.
|
Wraas Mlnir
Arctic Flying Penguins A.X.I.S
|
Posted - 2009.04.03 11:13:00 -
[193]
I'm working on just that at the moment General.
Its not being rushed at the moment, as I am still sorting out some crap with my host, but then I am moving on to some tool development, mostly its database admin, and some basic reports from the database to begin with, but the first step HAS to be user administration as its a ball ache doing it manually...
-Farting on exiting elevators since 2003 |
Selene D'Celeste
Caldari The D'Celeste Trading Company
|
Posted - 2009.04.19 18:22:00 -
[194]
Following the steps here: http://code.google.com/p/yapeal/wiki/InsYapWinSer
I get to "setup.php?install=step3" of the Yapeal setup and the apache server crashes.
Problem signature: Problem Event Name:APPCRASH Application Name:httpd.exe Application Version:2.2.11.0 Application Timestamp:493f5d44 Fault Module Name:php5ts.dll Fault Module Version:5.2.9.9
I can't find any more information on what could be configured wrong to cause this. Ideas?
|
Satis Iqulenax
Amarr Free Imperial Vikings
|
Posted - 2009.04.20 15:53:00 -
[195]
Originally by: Selene D'Celeste Following the steps here: http://code.google.com/p/yapeal/wiki/InsYapWinSer
I get to "setup.php?install=step3" of the Yapeal setup and the apache server crashes.
Problem signature: Problem Event Name:APPCRASH Application Name:httpd.exe Application Version:2.2.11.0 Application Timestamp:493f5d44 Fault Module Name:php5ts.dll Fault Module Version:5.2.9.9
I can't find any more information on what could be configured wrong to cause this. Ideas?
In the cache/log folder where you have installed yapeal, you should have a setup log. with the date and time from where you started to use the setup.php.
Please check where it stops.
Kind Regards Satis install dev ---- Yapeal Developer Member Yapeal Setup Creater |
Satis Iqulenax
Amarr Free Imperial Vikings
|
Posted - 2009.04.20 19:10:00 -
[196]
Okay NM my last post.
We have just released our new release. There is nothing new in the API of Yapeal but the setup it totally rewritten.
It's the 2. generation of the yapeal setup and right now, there is no manual install, so you have to use the setup.php from the install folder.
The character selection is not needed anymore and will not be shown in the first time setup, but first after yapeal is setup and running from your web host. The reason for this is that the character select and api registration is ONLY meant to be used as a test to test yapeal. When implementing into your system, do not use the test character section.
Another new thing that is added is that the setup now works together with yapeal error handler and there is now 3 new files in cache/log folder where all the new error/warning/notice logs will be added if there is one in the setup and it will be easier for us to find the error if you get one.
The backwards compatibility only goes back to last release so if you are using an older version than the last one, then you will need to start with a clean install.
Kind Regards Satis ---- Yapeal Developer Member Yapeal Setup Creater |
Ticnala
|
Posted - 2009.05.01 05:19:00 -
[197]
I was trying to use the setup.php today after grabbing the 755 revision. The page loads up blank in my browse and when I went to check on the code in funciton.php I noticed there were some for loops missing foreach ( from the beginning. Dropping back to 754 will display the first page but I had to drop to 752 for it to pass the file write test. In 753+ there was a log error saying that the YAPEAL_LOG_LEVEL varible was undefined. 752 doesn't have that problem though and has been working so far.
I'm running PHP 5.2.8, Apache 2.2.11, and mySQL 5.1.32 revision# 2761.
Thanks again for the awesome work :D
|
Coryigon
Minmatar Research Unlimited
|
Posted - 2009.05.01 17:16:00 -
[198]
When accessing setup.php I get this
Parse error: syntax error, unexpected T_AS in /home/repoindu/public_html/Yapeal/install/inc/function.php on line 77
|
Satis Iqulenax
Amarr Free Imperial Vikings
|
Posted - 2009.05.02 05:27:00 -
[199]
Okay after having a look over in the code (and fixed some tiny bugs Dragonaire made :P) I found some small bugs that should be fixed now.
Try grab it from the trunk again and see if you still get the same errors
Kind Regards Satis ---- Yapeal Developer Member Yapeal Setup Creater |
Dragonaire
Caldari Corax. Sex Drugs And Rock'N'Roll
|
Posted - 2009.05.02 06:43:00 -
[200]
Hi guys I've fixed a few more things. The class/api/*AssetList.php files for char/corp have been updated to use the new lvl column. charSkillQueue should now update correctly also.
Revision 758 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Coryigon
Minmatar Research Unlimited
|
Posted - 2009.05.02 12:53:00 -
[201]
Working good now thanks.
|
Dragonaire
Caldari Corax. Sex Drugs And Rock'N'Roll
|
Posted - 2009.05.02 19:48:00 -
[202]
Some more fixes.
- Fixed errors caused by merging a project member's killboard version of the *KillLog xml definitions from one of his other projects instead of one without the extra columns
- Fixed minor missed edit to corpAssetList that caused warning messages when running yapeal.php
Revision 759 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
powers sellers
|
Posted - 2009.05.03 10:15:00 -
[203]
i tried to use yapeal. All is ok but when i create cron i have this :
Quote: nullPHP Warning: mime_magic: type regexBEGIN[[:space:]]*[{]application/x-awk invalid in Unknown on line 0 PHP Warning: mime_magic: type search/400\\inputtext/x-tex invalid in Unknown on line 0 PHP Warning: mime_magic: type search/400\\sectiontext/x-tex invalid in Unknown on line 0 PHP Warning: mime_magic: type search/400\\setlengthtext/x-tex invalid in Unknown on line 0 PHP Warning: mime_magic: type search/400\\documentstyletext/x-tex invalid in Unknown on line 0 PHP Warning: mime_magic: type search/400\\chaptertext/x-tex invalid in Unknown on line 0 PHP Warning: mime_magic: type search/400\\documentclasstext/x-tex invalid in Unknown on line 0 X-Powered-By: PHP/4.4.8_pre20070816-pl1-gentoo Content-type: text/html <br /> <b>Parse error</b>: syntax error, unexpected '{' in <b>/home/nthr/www/yap/yapeal.php</b> on line <b>101</b><br />
is it me or the code wich make problem ?
|
Dragonaire
Caldari Corax. Sex Drugs And Rock'N'Roll
|
Posted - 2009.05.03 13:12:00 -
[204]
Quote: X-Powered-By: PHP/4.4.8_pre20070816-pl1-gentoo
Your trying to run it with PHP4 instead of PHP5 which won't work. Yapeal requires at least version 5.2.1. I'm also guessing from some of the rest of the message that you're trying to run it with the CGI version of PHP and not the CLI.
Just as a guess you're at a hosted site and you're using their so called 'cron' setup and not using the crontab command directly through a remote login like SSH to try setting it up which seems to cause all kind of problems for people. There is some help on the Yapeal website including some pointers in one of the issues on how to work around that. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Meissa Anunthiel
Redshift Industrial
|
Posted - 2009.05.08 09:37:00 -
[205]
Hi Dragonaire,
Your early comments refer to a yapeal.sql file that doesn't exist [anymore?].
Followed your InsYapWinserver documentation to install, everything is fine, works flawlessly until you reach the "Character Select and API Pull Select".
There's no such thing. :-)
|
Satis Iqulenax
Amarr Free Imperial Vikings
|
Posted - 2009.05.08 10:51:00 -
[206]
Originally by: Meissa Anunthiel Hi Dragonaire,
Your early comments refer to a yapeal.sql file that doesn't exist [anymore?].
Followed your InsYapWinserver documentation to install, everything is fine, works flawlessly until you reach the "Character Select and API Pull Select".
There's no such thing. :-)
Okay first of :P InsYapWinserver documentation is something I wrote and sorry for not updating it to the new version of yapeal that we have released. I'll go fix that now. The character select have been removed from the first time setup, since it's not really needed in a website where yapeal is implemented in. However if you are still just trying Yapeal out, then just run the setup.php again and then there is 3 menu now, where you can change database info, change Yapeal api handler and test character witch is the one you were looking fore ;)
about the yapeal.sql file, then if you have read one of my previous posts, then we have removed all sql files and manual setup is not possible now, Dragonaire might make a CLI installer, but that's that. We have changed from sql files over to use a axmls schema xml file to create the tables, since it's easier for us to maintain.
I'm guessing you found that info in a old dock :)
Kind Regards Satis ---- Yapeal Developer Member Yapeal Setup Creater |
Bonechewer
|
Posted - 2009.05.09 00:53:00 -
[207]
Hey guys...
Ive got a bit of a problem with the SVN ive downloaded. The password field is not provided during the setup. So when i get to http://192.168.1.56/yapeal/install/setup.php?funk=configini ... no matter what i try, it doesnt work.
Any ideas ?
|
Satis Iqulenax
Amarr Free Imperial Vikings
|
Posted - 2009.05.09 01:23:00 -
[208]
Originally by: Bonechewer Hey guys...
Ive got a bit of a problem with the SVN ive downloaded. The password field is not provided during the setup. So when i get to http://192.168.1.56/yapeal/install/setup.php?funk=configini ... no matter what i try, it doesnt work.
Any ideas ?
It should be on the yapeal.ini Setup page in the bottom. it's the page right after the tables have been created. Else check the cache/log folder and see if the setup_error.log, setup_notice.log or setup_warning.log have some info in it, since we need some more info on it.
Kind Regards Satis
---- Yapeal Developer Member Yapeal Setup Creater |
Matrix Lady
|
Posted - 2009.05.13 10:10:00 -
[209]
i want to try the yapeal but where is the download links? i try on google but nothing any can help me with this? thank you
|
Dragonaire
Caldari Corax. Sex Drugs And Rock'N'Roll
|
Posted - 2009.05.13 14:07:00 -
[210]
You have to use subversion to get it there's some instructions earlier in this thread and also in the wiki that should help you with getting it.
-- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Matrix Lady
|
Posted - 2009.05.14 01:56:00 -
[211]
done code downloaded and now i make my install thx One more question because i am noob on this and i can find other information.. i want my user to register on my site (this done)
It is possible with yapeal when my user is register and put the api key, this key save it on database for future use from user? is that easy? and if how can do it?
|
Dragonaire
Caldari Corax. Sex Drugs And Rock'N'Roll
|
Posted - 2009.05.14 02:19:00 -
[212]
Glad to hear you've got it now.
Quote: It is possible with yapeal when my user is register and put the api key, this key save it on database for future use from user?
Any users, chars, corps that you add to the util.RegisteredUser, ...char, ...corp tables and is active Yapeal will get their info once you have the crontab setup but since Yapeal is made as a library for other developers to integrate into their own applications we haven't include anything to do that directly except for a single test user that you can do during setup for your own testing to make sure it's installed correctly.
You should be able to find some more info from some of the other posts in this thread and comments in the issues and on the wiki that should help you more with Yapeal. You can also look at the code which is generally will commented IMHO anyway . You might also look through the stuff in the docs directory by browsing in the source code tab. I will say that much of it is meant more for a programmer then for an end user since Yapeal isn't an application but a library
-- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Matrix Lady
|
Posted - 2009.05.14 20:48:00 -
[213]
Edited by: Matrix Lady on 14/05/2009 20:49:04 know THAT BECOME embarrassing to ask but I am a new to all this I want to make a small start to use this api library and i now my next question is stupid but I do not know where to begin.. so any help with this start on me i would appreciate it very much Let's say I have a .html page Blank and i need to see what characters i have in my account,so i have the id and api key after? Let's say I have one 2 textboxs one for id and one for api key, what code i need to pull out the data from yapeal and show in my blank web page after that explain i now where i start thank you.
|
Satis Iqulenax
Amarr Free Imperial Vikings
|
Posted - 2009.05.14 21:54:00 -
[214]
Originally by: Matrix Lady Edited by: Matrix Lady on 14/05/2009 20:49:04 know THAT BECOME embarrassing to ask but I am a new to all this I want to make a small start to use this api library and i now my next question is stupid but I do not know where to begin.. so any help with this start on me i would appreciate it very much Let's say I have a .html page Blank and i need to see what characters i have in my account,so i have the id and api key after? Let's say I have one 2 textboxs one for id and one for api key, what code i need to pull out the data from yapeal and show in my blank web page after that explain i now where i start thank you.
Well you need to add some php code to get it to work. the first page you make the form and on the other page you use php codes to insert the data to the database in utilRegisteredUsers, utilRegisteredCharacter and utilRegisteredCorporations.
You might want to look at my code I use for the test character section. goto install/inc/config in your yapeal dir and then have a look at configapi.php, char_select.php and goapi.php this files holds the code I used to create a test character and it should be easy to convert them over for your own needs :)
Hops this helps.
Kind Regards Satis ---- Yapeal Developer Member Yapeal Setup Creater |
Matrix Lady
|
Posted - 2009.05.16 23:26:00 -
[215]
i have a small problem i try everything but nothing.. i make install on my mac zend studio and zend server all is ok with this i make install yapeal all ok until login screen.. when i put my pass or no pass or everything i try say login fail. php.ini is ok i take like this errors
/usr/local/zend/apache2/htdocs/testdb/install/inc/config/login.php on line 52 [17-May-2009 02:20:43] PHP Notice: Undefined index: password in /usr/local/zend/apache2/htdocs/testdb/install/inc/config/login.php on line 39 [17-May-2009 02:20:43] PHP Notice: Undefined index: yapealsetup in /usr/local/zend/apache2/htdocs/testdb/install/inc/config/login.php on line 40 [17-May-2009 02:20:43] PHP Notice: Undefined index: password in /usr/local/zend/apache2/htdocs/testdb/install/inc/config/login.php on line 52 any help on this thx..
|
Satis Iqulenax
Amarr Free Imperial Vikings
|
Posted - 2009.05.17 14:04:00 -
[216]
Originally by: Matrix Lady i have a small problem i try everything but nothing.. i make install on my mac zend studio and zend server all is ok with this i make install yapeal all ok until login screen.. when i put my pass or no pass or everything i try say login fail. php.ini is ok i take like this errors
/usr/local/zend/apache2/htdocs/testdb/install/inc/config/login.php on line 52 [17-May-2009 02:20:43] PHP Notice: Undefined index: password in /usr/local/zend/apache2/htdocs/testdb/install/inc/config/login.php on line 39 [17-May-2009 02:20:43] PHP Notice: Undefined index: yapealsetup in /usr/local/zend/apache2/htdocs/testdb/install/inc/config/login.php on line 40 [17-May-2009 02:20:43] PHP Notice: Undefined index: password in /usr/local/zend/apache2/htdocs/testdb/install/inc/config/login.php on line 52 any help on this thx..
okay first off. I have fixed those notifications that you got. so new release in the trunk.
Second be sure that you have cookie turned on or else it wont work. another thing to check is in the database. go into utilConfig and see if there is a row with Name: password if it has that, check if it's empty. the password field may not be empty at all, not even if you have added a blank password, since it still convert the blank password into a hash string.
Another thing dragonaire and I talked about, might be that you are running it on a mac + on a zend studio since we don't know if that can run it properly, but we might be wrong about that.
Try it out and please give us a hint if it's working.
Kind Regards Satis ---- Yapeal Developer Member Yapeal Setup Creater |
Asimina
|
Posted - 2009.05.19 00:38:00 -
[217]
i am matrix from up post:) so i try that yoi say on up post and i have the same results.. this time i try it on windows with zend server.. i make the installation all is green and ok on install when i go on login screen i take again the same error. i check the UtilConfig you say and i take this results from there and i hope help you.. i dont find any row with password inside.. the 2 Rows i find is Name and Value
utilconfig Table comments: InnoDB free: 11264 kB
Field Type Null Default Comments Name varchar(90) No Value varchar(255) Yes NULL
Indexes: Keyname Type Cardinality Field PRIMARY PRIMARY 8 Name
Space usage: Type Usage Data 16,384 B Index 0 B Total 16,384 B Row Statistics: Statements Value Format Compact Rows 8 Row length ° 2,048 Row size ° 2,048 B Creation May 19, 2009 at 03:26 AM
|
Dragonaire
Caldari Corax. Sex Drugs And Rock'N'Roll
|
Posted - 2009.05.19 02:45:00 -
[218]
My suggestion is try it with PHP 5.2.x or better and only with the extensions it needs to run. I'd also suggest looking through the install and troubleshooting info in the Yapeal wiki and see if that doesn't help you figure out where it's going wrong better. If that doesn't seems to help with your problem we'll probably need you to send us some some of your log files so we can figure out better where the problem is. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Grandolfer
JotunHeim Hird Mostly Harmless
|
Posted - 2009.05.22 08:28:00 -
[219]
I see that you need the api key(s) and userid from EVE for this.. I have this, but in another db. Is it possible to make YAPEAL fetch that data from another db/table instead of yapeal.utilRegisteredUser and yapeal.utilRegisteredCharacter Gr34tB4ll$ |
Dragonaire
Caldari Corax. Sex Drugs And Rock'N'Roll
|
Posted - 2009.05.22 11:15:00 -
[220]
Grandolfer The DB name can be anything you want so you can install Yapeal so it just adds it's tables to your existing DB if you want. If you look in the inc/common_db.php file you'll find the main functions that are used to do the queries to the DB. To use different tables in the DB for the userID, ApiKey etc you would have to modified the queries there and it should work The only problem would be when we put out new versions of Yapeal you would have to modify them again. A better way might be to make a view in MySQL to map your exist table so it overlays (renames) the table/columns that it wants but to tell the true I'm not sure if/how well that might work as I've never tried something like that and I am not a DB guru so don't know if that would work or not Maybe someone else will have some ideas about this also and share them with us. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Dragonaire
Caldari Corax. Sex Drugs And Rock'N'Roll
|
Posted - 2009.05.28 13:14:00 -
[221]
Hi everyone just thought I'd update everyone on some stuff we've been working on. Finally after many requests and a long time coming I've added the Starbase Detail API. This makes what I consider the 'core' APIs complete now.
This means that any other APIs that get added by me will probably only get added if I find I need it for any of the other projects I'm working on that use Yapeal. I'll still be adding and improving Yapeal as I get time or I get inspired to work on something but doing so will take a backseat to other things for now. As always I will continue to fix any bugs that get found or reported. Hopefully other people will decide to write and share some of the missing APIs with the project as I would like to see Yapeal have all the APIs implemented and be truly complete.
Since I've said something about working on other projects I'll tell you all about an old project that has come back to life that in part was why I made Yapeal to start with. It's called EMPA and is now currently it a very early alpha state of development by part of the development team of Yapeal plus a couple others. We're now working on the core framework which we should have to a usable state in the near future but everyone is welcome to download it and try it out but be warned it's in a rough state and subject to regular major changes and probably more than a few bugs I'd like to thank Satis Iqulenax and the others who have took up the project and really got it going again. I will probably also be working on some other small projects related both to Yapeal and EMPA but none of them are complete enough to talk about yet.
revision 786 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
DrefsabZN
Caldari Butterfly Effect Corp.
|
Posted - 2009.05.28 13:27:00 -
[222]
Thanks for the update Dragonaire, I've been playing with EMPA the other day (was looking for something similar to out of eve seeing that doesnt seam to be an active project any more). I definatly like where this is going and just wanted to say thanks for all the hard work.
|
Dirty Snipe
|
Posted - 2009.06.04 07:53:00 -
[223]
I just tried to follow the migrate instructions as I am already using another version of yapeal.
3. Use the install/Yapeal.sql
I cannot see this file. I also checked the svn and it also is not located in install/
I cant find it anywhere.
|
Dragonaire
Caldari Corax. Sex Drugs And Rock'N'Roll
|
Posted - 2009.06.04 14:47:00 -
[224]
To Dirty Snipe and others that have tried to use the upgrade instructions in Updating.txt I'd like to apologize for the confusion they have been causing. Those instructions were for some changes we made back sometime in the revision 400-500 range and does not work for more current revisions. As often seems to happen during development the documentation doesn't also get updated when it should. As you noticed we have removed all the SQL files from Yapeal now that we've switch it to using the newer AXMLS system to do database updates in a semi-automatic way. To help people determine which revisions need to do what and what resources they (i.e. addition older files needed etc.) we'll try to put together something on the wiki to help out in the next couple days. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
lillitheve
Lupus Draconis
|
Posted - 2009.06.05 02:14:00 -
[225]
Ok, maybe I am missing something, or maybe I've read too many of the posts in this thread. I looked through the two files, configapi and goapi and not sure what I need to put in there or where...second, and it might be related, if you enter something in the test char section, does the test char data not get put into the DB? Lupus Draconis Home |
Dragonaire
Caldari Corax. Sex Drugs And Rock'N'Roll
|
Posted - 2009.06.05 04:52:00 -
[226]
lillitheve try just installing/copying Yapeal to your web server and browse to the url for install/setup.php once you've done that you'll want to try running yapeal.php from a command line so that Yapeal populates the database tables with the data APIs you have set active during setup. Once that seems to work right you'll need to create a crontab/scheduled task to run it every minute. For more details refer to the wiki pages from the project's home. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
lillitheve
Lupus Draconis
|
Posted - 2009.06.05 13:08:00 -
[227]
ok, well been trying that, the setup went beautifully, as far as I can tell, have lots of tables, but no data in them. I am using godaddy hosting for my webserver.. It appears that the php5 is being run through the cgi not a true command line, so the cron job outputs this:
Quote:
/web/cgi-bin/php5: Symbol `client_errors' has different size in shared object, consider re-linking Content-type: text/html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http:www.w3.org/TR/xhtml1" xml:lang="en" lang="en"> <head> <title>Yapeal is not a web application</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <body> <h1 style="font-size: xx-large;color: #ff1010;">USER ERROR USER ERROR USER ERROR</h1> <p> If you are seeing this you have tried to run Yapeal as a web page which is incorrect. Yapeal is made to <b>ONLY</b> ran from the command line. See the <a href="http://code.google.com/p/yapeal/w/list">Yapeal Wiki</a> for more information on using it. </p> </body> </html>
trying to run it through ssh on putty gives me this:
Quote: <b>Parse error</b>: syntax error, unexpected '{' in <b>/home/content/g/w/y/gwyndion/html/yapeal.php</b> on line <b>101</b><br />
any ideas on how to get it to work?
|
Dragonaire
Caldari Corax. Sex Drugs And Rock'N'Roll
|
Posted - 2009.06.05 13:54:00 -
[228]
Have a look at this article http://help.godaddy.com/article/1083 and look around at some more of their help about the path you may need to use to run the PHP5 CLI since it looks like they are like most hosting places and have the PHP4 version in your path by default instead of 5 Also look at the old issues at Yapeal's web site as there was some pointers there for how someone worked around a similar problem at another hosting. |
lillitheve
Lupus Draconis
|
Posted - 2009.06.05 22:03:00 -
[229]
well, after plugging away at it, I never did get it to work on their hosting. Tis unfortunate, as it would be a good foundation for what I wanted to do. Hopefully, there will be a way that you can get it as a web access, instead of an application in the future, in the mean time, I will just quietly follow the progress to see where it goes. Thanks for trying dragon Lupus Draconis Home |
Satis Iqulenax
Amarr Free Imperial Vikings
|
Posted - 2009.06.06 03:39:00 -
[230]
Originally by: lillitheve ok, well been trying that, the setup went beautifully, as far as I can tell, have lots of tables, but no data in them. I am using godaddy hosting for my webserver.. It appears that the php5 is being run through the cgi not a true command line, so the cron job outputs this:
Quote:
/web/cgi-bin/php5: Symbol `client_errors' has different size in shared object, consider re-linking Content-type: text/html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http:www.w3.org/TR/xhtml1" xml:lang="en" lang="en"> <head> <title>Yapeal is not a web application</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <body> <h1 style="font-size: xx-large;color: #ff1010;">USER ERROR USER ERROR USER ERROR</h1> <p> If you are seeing this you have tried to run Yapeal as a web page which is incorrect. Yapeal is made to <b>ONLY</b> ran from the command line. See the <a href="http://code.google.com/p/yapeal/w/list">Yapeal Wiki</a> for more information on using it. </p> </body> </html>
There is a way to use yapeal with that conjob you have, but you will need to disable that error test. This how you do it: open yapeal.php in a text editor and goto around line 85. there you will see an function triggered with the name: notAWebPage(); just add 2 / in front of it to disable that check, like this: //notAWebPage(); Now you can run it in a web browser as well.
I uses this hack on yapeal in the project EMPA that Dragonrun, stephen12, wengole and I are doing right now. I had to make that hack, since my web host also don't have a real CLI cronjob.
Hope this helps ;) |
|
lillitheve
Lupus Draconis
|
Posted - 2009.06.06 15:38:00 -
[231]
yes! that worked...now using the hack from another api puller to give id's friendly names, and then to design a php document to list things in a table, I'll have the corp asset items plugged into my smf forum in no time (no time being figurative for a very long time, but a step in the right direction) Lupus Draconis Home |
Cory Sopapilla
Minmatar
|
Posted - 2009.06.11 18:59:00 -
[232]
Very nice tool. Thanks for sharing it.
The docs could definitely use an update though ;) I just kinda hacked it together after figuring out I needed to run the setup.php script thru a browser, did the "test character" thing and found it actually populated something in the DB after trying to find the config file to enter users/API keys, and finally realized it had put my limited API key in the full API field. After that it was all working.
So, 2 questions: 1) It didn't seem to work with just my limited key. Does it really need the full access key? It also kept saying I didn't have the proper role to pull some of the data (I'm CEO so that's not right). 2) Any plans on adding eve-central market pulls? Currently I pull the entire daily dump and spend about 20 hrs deleting duplicate orderIDs in a script. I'd love to be able to just pull the pieces I want and shove it in the DB ;)
Thanks!
|
Dragonaire
Caldari Corax. Sex Drugs And Rock'N'Roll
|
Posted - 2009.06.12 06:21:00 -
[233]
Quote: It didn't seem to work with just my limited key. Does it really need the full access key? It also kept saying I didn't have the proper role to pull some of the data (I'm CEO so that's not right).
Many of the APIs do require the full APIkey so Yapeal just assumes that what you gave it. As you've noticed it doesn't really matter if you are CEO or not some things just need the full key to work.
At some point we might add Eve-Central data as well but I'm busy with new job right now and the rest of the team and I are working on EMPA which uses Yapeal for it's backend API stuff. That doesn't leave much time to add new stuff right now
I am still try to get around to updating the docs so they are more current but not sure when I'll get that done. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Nick Partridge
|
Posted - 2009.06.16 19:48:00 -
[234]
Just wondered, I had a problem on my server and had to reinstall yapeal.
However now I keep getting the error Failed map.xml file was not found or a bad XML file
I have tried to svn download, copy and paste the file etc, but it continues with same error.
Any ideas ?
|
Johnathan Roark
Caldari Quantum Industries RAZOR Alliance
|
Posted - 2009.06.16 21:12:00 -
[235]
Originally by: Nick Partridge Just wondered, I had a problem on my server and had to reinstall yapeal.
However now I keep getting the error Failed map.xml file was not found or a bad XML file
I have tried to svn download, copy and paste the file etc, but it continues with same error.
Any ideas ?
look in the install/ folder and see if you have a map.xml file
Vuk Lau for CSM 3.0 |
Nick Partridge
|
Posted - 2009.06.16 21:18:00 -
[236]
Yup it is there. I tried to replace it witha fresh download. I opened the file deleted contents and filled it with the online file in yapeals downloads.
Tried restoring an old version on the PC.
All still have same error. :-(
|
Johnathan Roark
Caldari Quantum Industries RAZOR Alliance
|
Posted - 2009.06.16 22:41:00 -
[237]
Edited by: Johnathan Roark on 16/06/2009 22:42:22
Originally by: Nick Partridge Yup it is there. I tried to replace it witha fresh download. I opened the file deleted contents and filled it with the online file in yapeals downloads.
Tried restoring an old version on the PC.
All still have same error. :-(
Make sure your actually has permission to read it, normally www-data group or something like that and chmod g+r,u+rwx map.xml |
Nick Partridge
|
Posted - 2009.06.17 09:46:00 -
[238]
Hiya, thanks for your reply. I have tracked down the problem. I still had Map tables in the DB. Unlike the other tables for some reason the install script wont run unless you remove the tables and it can install them from scratch.
Now I am trying to resolve a new issue, which has been a cause of the svn and the weird server changes that have occured.
Quote: Notice: Yapeal version 779 (beta) 2009-05-21 15:16:39 in /home/nickph/yapeal2/inc/common_backend.php on line 54
This ones new :-)
|
Dragonaire
Caldari Corax.
|
Posted - 2009.06.17 15:31:00 -
[239]
Hi looks like you solved your problem but thought I'd comment on the part about deleting the tables so the installer would re-create them. You shouldn't need to do that if you use the update part of the installer as it was made just for that. Only case where it will have problems is if you have a very old version of the tables that it doesn't understand in which case you might have to delete them so it can rebuild them correctly. |
Nick Partridge
|
Posted - 2009.06.25 10:21:00 -
[240]
Edited by: Nick Partridge on 25/06/2009 10:22:34 Yeah you most liely right, I was stuck by vertue of the fact all the tables were corrupted that Yapeal uses so nothing worked at all :-)
|
|
Cory Sopapilla
Minmatar
|
Posted - 2009.06.25 15:07:00 -
[241]
Ok so I was building a sandbox server for API tool development and ran into the map.xml issue myself. If you put the CCP dump into a DB then add yapeal to the same DB, mapJumps is a duplicate table. So even from a fresh install, the 2 can't coexist unless you delete/rename mapJumps from CCP. It makes me worry about the next CCP data dump upgrade though. I'm going to end up losing mapJumps for yapeal most likely since I'll probably forget by then.
Any chance of looking into that and possibly renaming the yapeal mapJumps next build if this is confirmed? |
Dragonaire
Caldari Corax.
|
Posted - 2009.06.25 15:37:00 -
[242]
No need to rename it that why we added the prefix stuff to Yapeal so if this became a problem there was already a fix in place When you run the instiller just make sure you use the prefix option when setting up the tables so for example all of them look like MyDB.YapealaccountCharacters etc. |
Cory Sopapilla
Minmatar
|
Posted - 2009.06.25 18:58:00 -
[243]
Cool. As always, thanks for the quick response.
|
Barrington Farquharsen
Simtech Industrial Inc.
|
Posted - 2009.07.11 12:39:00 -
[244]
I'm trying to pull CorporationSheet data for corps entered into the utilRegisteredCorporation table.
How would I go about editing your code to allow for the entry of an activeAPI (corpCorporationSheet) and a corporationID into this table so that it would update corpCorporationSheet accordingly?
Ideally, I'm not wanting to be limited to a single corp in this table (by restrictions such as characterID cannot be NULL and needing API keys for a character to be entered too). I would like to enter multiple corpIDs and pull the CorporationSheet for each one to be entered into the corpCorporationSheet table automatically.
I'm sure this would be possible within your code structure but just can't figure it out myself.
Great API library though
|
Dragonaire
Caldari Corax.
|
Posted - 2009.07.11 14:01:00 -
[245]
Barrington Farquharsen - What you'll need to do is add another row to the utilRegisteredCorporation table with a minimum of the isActive, corporationID, characterID, and activeAPI set with the information on the corp. ActiveAPI is a space separated list of the APIs you want it to get for that corp. You'll need a row in utilRegisteredCharacter that correlates with the characterID column. You'll also need to add a row in utilRegisteredUser that correlates to the userID in utilRegisteredCharacter and has the fullApiKey filled. You don't have to set isActive=1 except if you also want to get API data for the character. The characterID you have in utilRegisteredCorporation needs to have CEO or director level access in the corp for it to work correctly. That is because of requirements setup by CCP to access most of the corp APIs.
Hopefully the above get you started down the right track. Yapeal was design to support multiple users, chars, and corps as that was a requirement for it in EMPA and also for it to be more generally useful for other developers. The installer only let's you add one of each as it is only meant to be used for initial testing for people to try out Yapeal before developing their own applications with it. Look for some useful util classes to show up in EMPA to make managing the utilRegistered* tables easier in the near future as more of what is being worked on in the branches get merged back into the trunk on it. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Barrington Farquharsen
Simtech Industrial Inc.
|
Posted - 2009.07.11 14:33:00 -
[246]
I follow that the 3 tables need to be populated to do what you say, but ideally I would only like the utilRegisteredCorporation table to be populated.
As far as I am aware, the CorporationSheet can be accessed without an API key -- it only requires a corpID. This is what I would like to do. Ideally all I would do is populate the utilRegisteredCorporation and the cron job populates the corpCorporationSheet table.
Sadly I'm not interested in Corp or Character specific information, only CorporationSheets, hence the need for something where a characterID or API key is not required.
Would this be possible within Yapeal?
|
Dragonaire
Caldari Corax.
|
Posted - 2009.07.13 17:43:00 -
[247]
Can people get 'public' info about a corporation without being part of the corp? Yes
Could Yapeal be modified to not require you to have corp member info to access the API? Yes.
Do we plain on doing so? No, but it is open source so if someone wanted to branch it and do so they're welcome to do so and they would probably even get a few points from me on things that would need to be changed.
Something that might work but I haven't testing is to point the characterID at your character info for the other corps and see if it'll let you still pull the info from the API. The only thing you might run into is Yapeal may error out because of any missing stuff in the API info returned since you aren't a member in the corp and don't have access. Also depending on how the API works when Yapeal passes your UserID and API key it may give you an error about not being a member of the corp. You would just have to try it with all the logging turned on and see what happens but it might actually work -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax.
|
Posted - 2009.07.16 15:18:00 -
[248]
Hi everyone been working on some stuff in EMPA and that's shown me a few areas where I could be improved in Yapeal as well. Decided to bring over the class autoloader first as it's one of the easiest and required little in the way of changes. It's something I had thought about doing before but never got around to so when the need for one in EMPA came up I wrote it and decided I should port it back into Yapeal too.
In the process of adding the class autoloader I also made a couple small changes to the installer so it'll now cache the SQL it uses to build the tables. You can find the files in cache/. Some of you might find them interesting or even useful when move stuff between development and hosting servers. The ones it'll save if there's an error might also be useful during debugging for you and us
Look for some more changes/improvements to show up as my work schedule and development on EMPA allows.
revision 803 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Cory Sopapilla
Minmatar
|
Posted - 2009.07.16 15:59:00 -
[249]
Awesome. Thanks for the update. I'll check it out tonight.
Anything in the autoloader classes that would help in user registration of API info to populate the tables? I'm working on my own but don't want to reinvent the wheel if it's already done.
Thanks
|
Dragonaire
Caldari Corax.
|
Posted - 2009.07.16 17:04:00 -
[250]
No this let's me get rid of most of the require_once statements that were scattered throughout the code. You can read more about what it effects here. I do have planned some changes that will effect some of the utilRegistered* tables and the ini file but not sure when they will be done. There will also be a few changes that shouldn't be visible to anyone using Yapeal but should improve it in several ways much like this change which doesn't really show up in anyway to the outside developers. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Al Coholick
|
Posted - 2009.07.21 12:52:00 -
[251]
Is anyone working on integrating Eve Central data into Yapeal? If not, I'd like to give it a go.
|
Cory Sopapilla
Minmatar Kiroshi Group Exiliar Syndicate
|
Posted - 2009.07.21 18:02:00 -
[252]
I just added a table to my eve_db and pull the daily csv file in. I was going to work with the API pulls but that is WAY down on my list.
|
Al Coholick
|
Posted - 2009.07.21 20:13:00 -
[253]
I was actually thinking about using the Mail-push feature. It should be fairly easy to set up a dedicated google email account (or whatever email you choose) and suck the posted mails in from there. Perfect for a cron task.
Also perhaps include an import function for the existing CSV data files.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.07.22 13:24:00 -
[254]
Hi there has been some talk about adding Eve-Central and/or other pricing data but the latest person to talk to me about it is very busy with a couple other projects at this time so not sure if/when he would get any code done. I had some code in the original project that Yapeal grow out of that worked with the CSV feed. You could try the e-mail approach as well if you think you really need minute by minute updated data but the extra overhead and complications getting and decoding the e-mail would probably outweigh the benefits if you don't need that.
If either or both of you would be interested in work on this let me know via my G-mail account from the project and I can add you to the project if you're interested in working on it in a branch. I could also dig up my old code for you to have a look at too. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Al Coholick
|
Posted - 2009.07.27 13:29:00 -
[255]
Well, I finally got around to working on the Eve Central data this weekend, and it's 95% finished. After looking at the size of the dump files, I decided that the email approach probably wasn't a good idea. I didn't realize just how much data was recorded by Eve Central.
Which brings me to the problem I've come across. There is just SO much data. Over 4 million records just for the first 12 days of January.
I've not really used or studied the data yet, so I'm not sure if there are rows I should be updating (instead of inserting a new row). I see some duplicated rows, probably because multiple people submitted the same data. I'm thinking I should make OrderID an exclusive key, and update any duplicates.
Should I throw away data older than X days?
Any advice?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.07.27 18:09:00 -
[256]
OrderID does recycle every so often so might think of using it and the date/time of the order but you will still end up with dups. In my old code I used the daily CSV and sorted and got rid of any dups in it as I went then when I upserted it to the DB I let MySQL take care of dups between the dailies. How ever you do it make sure you use the one with the latest date/time or you can end up outdated data. Out of all the orders in each CSV I'd say probably 33% were dups with the main trade centers running closer to 75-90% dups at times.
In my old code I had it deleting any record older than a year and really anything older than 3 months is ancient history with Eve but just in case someone want to do some market trend stuff a year might be useful.
Hope that helps. Like I said if you are interested in having a look at my old code let me know it was really rough but did seem to work well. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Al Coholick
|
Posted - 2009.07.27 18:22:00 -
[257]
Edited by: Al Coholick on 27/07/2009 18:24:11 Here's what I decided to do.
There is a new INI variable called "days_back", and this is used to determine how many days of data to process. Any dump files older than this will be ignored.
Also, duplicate rows (by OrderID) will be updated rather than inserted as a new row.
A preliminary version is ready. Since I don't have SVN write access, here is a direct download.
http://www.greygames.com/yapeal_with_EveCentral.zip
The install process is untested, but the SQL statement to create the new databases required are in the comments of eve_central.php.
There is a new section in Yapeal.ini for the Eve Central specific variables. Be sure to change the values to fit your system.
------------------------------------------- ; Section for Eve Central settings. (required if Eve Central updates are enabled) [EveCentral]
; Only go back X days. Ignore any dump files older than this. days_back=10
; A writable (by crontab) directory for processing EVE Central downloads temp_dir="/home/USERDIR/tmpFiles"
; Name of the****cutable used to unpack Eve Central's "gz" files ; Include the full path if necessary. unpack_util="gunzip" -------------------------------------------
There is a variable in eve_central.php named $maxProcessFiles which specifies how many dump files to process per cron run. Be careful if you increase this value from its default of 1. It takes about 3 minutes per dump file (on my web server, including the file download), and if the the cron job doesn't finish before its next scheduled run, errors will occur. When doing the initial download and import of the data, you may want to increase the frequency of the cron task (10 minutes?), and leave $maxProcessFiles at 1.
One major thing still missing the the cacheUntil feature. So please ensure your cron task doesn't run too often after the initial downloads, to prevent hammering Eve Central.
P.S. Dragonaire, please check your evemail.
EDIT: Oops, I must have been typing this when you replied, Dragonaire. Thanks for the tip about OrderID recycling. I'll have to do something about that.
|
Cory Sopapilla
Minmatar Kiroshi Group Exiliar Syndicate
|
Posted - 2009.07.27 18:28:00 -
[258]
Edited by: Cory Sopapilla on 27/07/2009 18:33:18 Al, you're in our public channel so gimme a shout ;) I've done alot of the work already and we have a corp project going for an API frontend for yapeal. I have all of the csv stuff working already so maybe we could compare notes.
Basically, I grab the entire daily dump and put in a temp table but only allow the newest by date for each orderID per regionID (there are items in jita reported hundreds of times per day). Then I generate a list of unique itemIDs per regionID and delete all matches (1 at a time) and replace with the new orderIDs for that itemID in the regionID. There's lots of other stuff like deleting any that expired, etc.
What I want to do ultimately (on top of this) is pull the xml for mineral prices from the eve-central API so I can get hourly prices on those as well as an option in the front end to request new prices on other things if they have recently sent a new dump to eve-central.
|
Phaedriel
|
Posted - 2009.07.31 16:10:00 -
[259]
Hi Dragonaire,
I just set Yapeal up on my server after a little messing around with Cron tasks (getting paths etc). I'm now getting an error returned to me. Seems like the database tables are in lowercase and the reference to them in the code are in uppercase.
Is this something you've come across before? Can you see any issues with me just renaming the database tables to how they are referred?
E.g.
yapeal.utilCachedUntil is inthe database as yapeal.utilcacheduntil
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.07.31 17:11:00 -
[260]
Would probably cause you issue when trying to use the installer to update. The normal setting for MySQL is mixed case so I'd look at it's settings on your server myself to see if I couldn't fix that. I do know on Windows they seem to use a forced lower setting but it doesn't seem to cause any problems since MySQL just silent converts everything for you so the mixed case doesn't matter. I may look into adding settings to the DB connections in ADOdb to set for mixed case but you're the first one to have noticed it outside of one of the developers using Windows and I don't think it cause him any problems but let me know if it is and I'll look into it some more. The reason for the mixed case is the match the API as closely as possible and CCP does use mixed case in a very specific way in their naming. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Phaedriel
|
Posted - 2009.07.31 21:30:00 -
[261]
Okay, I manually changed the names. As you say, I think it's a windows issue. I installed it on my local server and pretty much just copied it to my live server and exported/imported the SQL (yea, bad habit but it works most of the time!).
Just wanting to confirm the the message I'm getting means that all is okay (if so I'll disable the message).
Notice: Yapeal version 803 (beta) 2009-07-16 15:31:27 in (path)/httpdocs/Yapeal/inc/common_backend.php on line 54
(I editted (path) for security reasons but it's the path to the file.
If this is all good then I have to move onto Phase 2 of my application (not for public release, designed with myself and close friends in mind, just a useful tool)
|
Johnathan Roark
Caldari Quantum Industries RAZOR Alliance
|
Posted - 2009.07.31 23:05:00 -
[262]
Originally by: Phaedriel Okay, I manually changed the names. As you say, I think it's a windows issue. I installed it on my local server and pretty much just copied it to my live server and exported/imported the SQL (yea, bad habit but it works most of the time!).
Just wanting to confirm the the message I'm getting means that all is okay (if so I'll disable the message).
Notice: Yapeal version 803 (beta) 2009-07-16 15:31:27 in (path)/httpdocs/Yapeal/inc/common_backend.php on line 54
(I editted (path) for security reasons but it's the path to the file.
If this is all good then I have to move onto Phase 2 of my application (not for public release, designed with myself and close friends in mind, just a useful tool)
Thats normal
Quantum Industries is recruiting! |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.08.01 05:26:00 -
[263]
Yeah once you're sure it working the notice messages can usually be turned off without any problems do leave on the warnings and errors though as they can be helpful when something goes wrong. You'll also want to make sure you didn't turn on the tracing which is off by default
-- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.08.03 17:30:00 -
[264]
Ok just ran across something again and decided to add it into Yapeal. You can now view the syntax highlighted source code of any of the PHP files in a web browser. For example: http://localhost/path/to/yapeal/yapeal.php?viewSource=1 will return the highlighted source code for yapeal.php
This is mostly for show but thought I'd add it anyway Developers or someone trying to learn PHP might find it useful. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Aedrine
|
Posted - 2009.08.17 14:39:00 -
[265]
Hello,
Is it possible to disable the sql part of this API? I just want to manipulate the XML.
Thanks :)
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.08.17 14:41:00 -
[266]
Aedrine if you just want the raw XML to start with why are you trying to use a library when you can just grab the XML directly from API if that's what you want -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Cory Sopapilla
Minmatar Kiroshi Group Exiliar Syndicate
|
Posted - 2009.08.17 17:05:00 -
[267]
Edited by: Cory Sopapilla on 17/08/2009 17:08:03 Edited by: Cory Sopapilla on 17/08/2009 17:07:13 Aedrine,
http://wiki.eve-id.net/APIv2_Page_Index is where you want to start. Each of the listed API calls is in the format following:
http://api.eve-online.com/account/Characters.xml.aspx?userID=1234567&apiKey=ABC123
Just start with http://api.eve-online.com and end it with the desired URI example column and fill in the ?name= input arguments. The one above would give the raw xml listing of your 3 characters if you use your own userid and apiKey as an example.
Note the cache short/long/etc timers to see how often you can pull. Don't hit longs every 5 minutes or you may end up being blocked ;)
|
autoland2
|
Posted - 2009.08.20 15:28:00 -
[268]
Hi,
Stupid question, and yes they do exist :-)
Can I modify yapeal to run from mysql instad of mysqli ?
I tracked down the 2 files in teh installtaion that refence the DB Driver type, but will it work.
The new server we have meets all requirements except the mysqli driver.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.08.20 18:13:00 -
[269]
If your server doesn't have mysqli I think you'll find there are also other things missing as it's a normal part of the standard build as defined by the PHP org that everyone seems to ignore but as to you're question since Yapeal uses transactions for some things (most of the API table updates) which the mysql drive doesn't support you'll run into trouble. There are reasons that I've set the requirements to what they are and they really aren't that hard to meet given a relatively new and correctly configured server. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Nick Partridge
|
Posted - 2009.08.20 19:36:00 -
[270]
Ok fair enough. Trying to get answers out of our server host, who support all the features of the system (Yapeal) except that, and there telling us they dont use it and we cant have it :-( what a pain.
|
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.08.21 04:38:00 -
[271]
Don't know if it'll help you much with them but point them to this:
Quote: Note: If you are using MySQL versions 4.1.3 or later it is strongly recommended that you use the mysqli extension instead.
from the docs for PHP 5 which you can find here and might also point out that mysql ext is in maintenance only mode now which is shown in the table at the bottom of that page and next step is to drop support for it. Hope that extra information can help you to get them to move out of the dark ages -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Sable Blitzmann
Minmatar Eve University
|
Posted - 2009.08.23 02:47:00 -
[272]
I'm a bit confused...
I got Yapeal installed, and the databases have updated... But now what? I'm very new to the EVE API, but I was hoping to create a kind of character sheet on my local home server to get acquainted with it and then move on to a bigger community project.
Yapeal is a library of classes in OOP, correct? Which files should I include to pull the information that I need? I guess it's better to explain what I'm looking to do.
For example, I would like to register my character. I would put the userid and API key in two text fields, hit submit, and a new page should display asking which characters I would like to use. I select one, type in the password I would like to use to log into that character, hit submit, and then be taken to a page that displays some basic character information.
Basically, how would I incorporate Yapeal into a web application? I'm not asking anyone to make the application for me, rather to point me in the right direction on which file(s) have functions that can be included and used to pull different types of information. The problem I'm having with Yapeal is that it seems to only run from a terminal; thus, when I complete step one of the registration process (id and key) how would I exchange this information with Yapeal?
Sorry if this post is hard to understand. It's late and I always have trouble explaining things.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.08.23 04:49:00 -
[273]
Think the problem is you don't understand what Yapeal does for you and how it works. I'll quote from the main page:
Quote: Here's an extend explanation of what Yapeal does since it a little different then the other PHP API libraries people are using.
It not only grabs the data from the API for you but also saves the data into a MySQL database as well. It was made to be ran from a crontab job and works in the background to 'Auto-magically' as I call it, keep the database updated so all you have to do is work with the database tables not the API and XML. It was made to be set and forget once configured.
So basically it's grabbing the XML data from the Eve API and storing it into database tables for you and you get to write the application that takes the data from the tables and shows it to the web browser in some interesting way
No part of Yapeal works with the IGB as other than the installer/test configurer nothing shows a webpage. There is a little code in all the PHP files now to show their source code in a web browser when passed ?viewSource=1 as part of their URL but that's so people can look at the files with source code highlighting not as any kind of normal operation.
Hopefully that makes things clearer for you. You might also take a look though the wiki as it has some additional information you will probably find useful. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Sable Blitzmann
Minmatar Eve University
|
Posted - 2009.08.23 05:19:00 -
[274]
Edited by: Sable Blitzmann on 23/08/2009 05:22:07 The wiki and docs are few and far between, but I kinda understand now how Yapeal works. It it run on a schedule, and when it is, it updates everything in the database to their current true values, correct?
Great, that's awesome. However, I'm still having a little bit of trouble understanding how to initially create a user. I know you can manually add them to the database, but I would have thought there'd be an easier way to add the account to the database, and from that pull the characters, and from that register a character. I'm still trying to wrap my head around that part of the process. =)
Also, the IGB thing - I thought there was an installer version being released for the IGB, but I read through the topic more carefully and figured out that this is no longer the case.
Questions: What is a good time to schedule Yapeal? Once an hour? Once every 10 minutes? Every minute? And how fast is the updating if I use this in a community site where there's the potential of thousands of users being registered and updated? Will this put a heavy heavy load on my or CCP's server? Also, since you're not pulling data directly from CCP every time you access a characters info, but instead pull it from a local database, how accurate will that be (I'm sure that's depenant on how often I run the cron, yes?)?
I think this project is awesome by the way. Keep up the good work
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.08.23 07:31:00 -
[275]
Yapeal is made to be ran every minute in a crontab and keeps track of the cachedUntil times itself so it plays nice with the API servers. The data in the database will be update as often as the API allows with a tiny bit of randomness to help disperse bursts of calls to the APIs. As to if the API servers can handle thousands of accounts grabbing all that data that's a better question asked of CCP than of me.
You put your info into the utilRegistered* tables for any characters and/or corporations you want data for. We are currently working on some changes that should make managing available APIs etc in applications easier as all the settings will be in the DB instead of a mix of the DB and the ini file. The installer is last part that needs updated before it's released in the trunk so people can try it. The main programmer for the installer was busy in RL plus his MySQL server had crashed on him and needed re-installed Hope to have new version out this weekend or this next week at latest.
Also look for future version to add a way to call APIs in an 'on demand' basis in addition to the current crontab system. Using that should scale much better for larger web applications while causing less loading of the API servers. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Sable Blitzmann
Minmatar Eve University
|
Posted - 2009.08.23 07:55:00 -
[276]
Originally by: Dragonaire Yapeal is made to be ran every minute in a crontab and keeps track of the cachedUntil times itself so it plays nice with the API servers. The data in the database will be update as often as the API allows with a tiny bit of randomness to help disperse bursts of calls to the APIs. As to if the API servers can handle thousands of accounts grabbing all that data that's a better question asked of CCP than of me.
Well, the reason I ask about the server load is because of this: Lets say Yapeal runs every minute. Lets also assume Yapeal is running as a back-end to a web application that serves thousands of EVE's players. Within any given moment, those thousands of EVE players have changing values in their wallet and whatnot. It would seem that to keep the Yapeal database up to date it would have to update thousands of records (maybe more? ) per minute. Now that sounds like a lot to me, but with computers, who knows. Maybe it's nothing.
Originally by: Dragonaire You put your info into the utilRegistered* tables for any characters and/or corporations you want data for. We are currently working on some changes that should make managing available APIs etc in applications easier as all the settings will be in the DB instead of a mix of the DB and the ini file. The installer is last part that needs updated before it's released in the trunk so people can try it. The main programmer for the installer was busy in RL plus his MySQL server had crashed on him and needed re-installed Hope to have new version out this weekend or this next week at latest.
Thanks for the info; looking forward to testing out the new install.
Originally by: Dragonaire Also look for future version to add a way to call APIs in an 'on demand' basis in addition to the current crontab system. Using that should scale much better for larger web applications while causing less loading of the API servers.
I think everyone would appreciate this. I've looked through the code and it seems like it wouldn't be too difficult to modify bits and pieces here and there so that you can easily include a lot of these classes right into webpage's and applications. For example, and from what I can tell, you already have the classes to call for API info from either fresh from the server or the database using YapealApiRequests(). Any ETA on when something like that would be available?
I really look forward to studying and breaking down this code. You've done a very good job with this cool project. It's been a while since I've been active in coding, and I think I'm gonna start my reintroduction with this
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.08.23 15:01:00 -
[277]
If you look through the revision history of Yapeal you'll see where it's gone from a completely procedural library to a nearly completely class based one over time as it has been refined. The changes that I'm currently working on will move it farther in that direction and will add some new or at least better refined options for proxy support and other things. All the changes are coming about because of some need that the development team has thought of, has come up during development in EMPA or one of our other projects, or been brought to our attention by someone using it. Some of the things that are being added to Yapeal now or are looking at adding are things that we said no to in the past. There have been many reasons for saying no to stuff in the past the main ones being:
- The state and design of the code at that time just didn't support it
- The main developer (me) didn't have time to do it
- The problem wasn't explained well or more often mis-understood by the developers
- Developer knowledge and backgrounds.
On that last point in my own case this was only my second PHP project though I've programmed in many other mostly procedural languages on projects before. For some of the other developers this was their first project ever in anything or at least in PHP. We have also had developers with more experience helping along the way too.
Time frame for the 'on demand' code is unknown at this time but is being developed by us for a designer of another project with a large community of Eve users (Thousands of users) as part of a re-coding project on their site. It'll be some time after the current changes we're working on as some of them are needed to make it work. So figure on any where from a week to a month or more depending how that project goes and when we get these current changes done. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Sable Blitzmann
Minmatar Eve University
|
Posted - 2009.08.23 16:02:00 -
[278]
Thank you for your helpful and thoughtful responses. =D
Can't wait to see what the devs come up with.
|
Sable Blitzmann
Minmatar Eve University
|
Posted - 2009.08.25 19:30:00 -
[279]
I have another question relating to SVN...
I'm new to SVN, so i don't really know the mechanics. If I were to add my own notes to the source files, and then I updated to the latest revision using `svn up`, would I lose all my edits? Or will ASVN know to ignore my additions and just add yours?
|
Cadeyrn Gwrtheyrn
|
Posted - 2009.08.26 00:16:00 -
[280]
Originally by: Sable Blitzmann I have another question relating to SVN...
I'm new to SVN, so i don't really know the mechanics. If I were to add my own notes to the source files, and then I updated to the latest revision using `svn up`, would I lose all my edits? Or will ASVN know to ignore my additions and just add yours?
It will try to merge the files, but don't count on it always working
|
|
Sable Blitzmann
Minmatar Eve University
|
Posted - 2009.08.26 00:49:00 -
[281]
lol, I thought that's what might happen. Thanks!
|
Sable Blitzmann
Minmatar Eve University
|
Posted - 2009.08.28 04:49:00 -
[282]
Edited by: Sable Blitzmann on 28/08/2009 04:51:44 I'm still playing around with it. I finally got cURL working on my server so I've been testing a lot of things out. Question: the corp stuff only works if you are the CEO of said corp, correct? Because I put in my characters info AND my corps info into the appropriate util* tables, yet when I go to run yapeal.php, it returns errors.
I assume then that I must be CEO of that corp or have some sort of role (of which I do not have...), thus making the corp API's useless to regular corp members...
Do the character APIs export the characters role in his or her corp so that I can use that to narrow down what options are available for that character? For example, if a regular corp member without roles registered on the site, I do not want to insert anything into the utilRegisteredCorp table. If the corp accountant registers, I only want to enter into the `activeapi` column the API's that character can access.
Also, how does yapeal handle character deletions and role removals? If a character was removed from a role, will yapeal update the database to reflect this?
So many question, I know, but I'm very intrigued with this project.
|
Johnathan Roark
Caldari Quantum Industries RAZOR Alliance
|
Posted - 2009.08.28 06:35:00 -
[283]
Originally by: Sable Blitzmann Edited by: Sable Blitzmann on 28/08/2009 04:51:44 I'm still playing around with it. I finally got cURL working on my server so I've been testing a lot of things out. Question: the corp stuff only works if you are the CEO of said corp, correct? Because I put in my characters info AND my corps info into the appropriate util* tables, yet when I go to run yapeal.php, it returns errors.
I assume then that I must be CEO of that corp or have some sort of role (of which I do not have...), thus making the corp API's useless to regular corp members...
Most of the corp APIs need the character to be either CEO or director. I think the only exception is corpMemberTracking which would just have missing data. I'm not positive how yapeal will treat the missing fields.
Originally by: Sable Blitzmann
Do the character APIs export the characters role in his or her corp so that I can use that to narrow down what options are available for that character? For example, if a regular corp member without roles registered on the site, I do not want to insert anything into the utilRegisteredCorp table. If the corp accountant registers, I only want to enter into the `activeapi` column the API's that character can access.
I am rather sure that is data only a director or ceo can get from the corpMemberTracking api. The easiest way would be to try an pull an api that only a director can get and see if it returns an error, 209 Character must be a Director or CEO.
Originally by: Sable Blitzmann
Also, how does yapeal handle character deletions and role removals? If a character was removed from a role, will yapeal update the database to reflect this?
Roles being changed should get updated. I am not sure what it would do for a character deletion.
Quantum Industries is recruiting! |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.08.28 06:38:00 -
[284]
Some corp APIs can be access with some of the other roles but basically you do need to use the CEO's or a director's full API key to access stuff and the best info for that is to look at info from eve-dev wiki and/or stuff at Chucker's site which are in the sticky above.
As it is now the roles aren't being updated correctly but that will be fixed when I do the next merge from the current branch I've been working on. There will also have some what more intelligent handling of some of the API errors so it can auto deactivate users, chars, corps, and their APIs. I'm hoping to merge the new stuff into trunk on Friday or at latest this weekend. When I do I'll try to post a good list of all the changes that have been made and bugs fixed.
Yes the roles are in the character sheet so you can see what roles and titles they may have in their corps. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
M4g3ll4n
Circle of Shadows Novus Ordo Mundi
|
Posted - 2009.08.28 07:51:00 -
[285]
Hi,
I have a short question regarding adding of corporation API keys. I would like to add the key of a director of a second corporation. How do I do this?
Just alter the yp_utilRegisteredCorporation table?
Thx in advance, Mag
P.S.: Ypeal is a genious tool, as base for development of own API based applications. Circle of Shadows - Recruiting now www.eve-cos.info |
Sable Blitzmann
Minmatar Eve University
|
Posted - 2009.08.28 08:30:00 -
[286]
Thanks for all the great work Dragon.
I do see one corp API that any corp member can access: `corpCorporationSheet` This just gets basic (and from what I can tell, public) details about the corp. So there is a reason to add a corp to the untiRegisteredCorps, even if that character doesn't have any roles. =)
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.08.28 18:14:00 -
[287]
OK here the short version of the changes in Yapeal.
- All the Eve API classes have had some code clean done to them
- New abstract classes have been made and are used by the the Eve API classes
- The inc/pull*.php files have been replaced by new class/Section*.php files
- Much of the code dealing with API sections in yapeal.php have been moved into the section files where it belongs now
- Required memory footprint for Yapeal have been reduced by breaking up the larger API upserts into 1000 record pieces instead of one huge upsert.
- Most error and tracing log messages have been updated and should be shorter and more useful
- Yapeal should now use less connections to the MySQL database server by re-using existing connections
- Yapeal now uses SPL Iterators directly in many of the new/updated classes and functions/methods where it didn't before
- New utilSections table was added to database and some new fields were added to the utilRegistered* tables to support the new proxy config stuff
- config/yapeal.ini has been change with many of the settings having been move into new utilSections table to make managing them in an application easier
- Now each char/corp can have their own proxy setting as will as each API section can have it's own default that will be overridden by the individual char/corp one
- Yapeal is now more proactive when it come to dealing with Eve API errors by deactivating users, characters, corporations, or individual APIs of them as needed and logs an error message when doing so
- Yapeal now 'soft' limits how long it will run to approx. 5 minutes
- Many other change that I've forgot
Everyone should make a backup of their DB before updating to this revision of Yapeal, then make another one just to make sure
Anyone run a revision of Yapeal before about revision 800 will probably have some problems upgrading because of all the change to both the code and DB.
Everyone needs to run install/setup.php from a webbrowser and it should update the DB and config/yapeal.ini for you.
I will try to document the changes more on the weekend. For anyone that is really interested in understanding the code have a look at https://yapeal.googlecode.com/svn/docs/Developer Guide/phpDocs/ where you'll find two version of Yapeal in HTML format.
revision 857 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Sable Blitzmann
Minmatar Eve University
|
Posted - 2009.08.28 19:42:00 -
[288]
Edited by: Sable Blitzmann on 28/08/2009 19:43:04 EDIT: nvm.
Awesome stuff, btw
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.08.30 18:17:00 -
[289]
Ok here's a list of some bugs that were fixed:
- Sub-tables of CharacterSheet like rolesAt* and titles were not clearing old data. Now the old data is delete before adding new ones so no one just accumulates roles
- Same type of fix was done on several other APIs that had same problem as above with accumulating stuff
- Time out error exceptions, etc. from cURL were not being handled at all in the API files. They are now catching these exceptions correctly
-- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Teavan
First CityWide Change Bank New Eden Retail Federation
|
Posted - 2009.08.31 14:17:00 -
[290]
Is it typical to get "Expected before ref/trans ID = 0: wallet not previously loaded." issues when executing yapeal.php with a cron job? It successfully pulled the info on the first execution, and the time difference is not long enough, but I figured yapeal wouldn't try to pull something it knew should be cachedUntil.
|
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.08.31 15:41:00 -
[291]
Even if you obey the cachedUntil time sometimes you get that error it's a pain in the A$$ that the Eve API servers sometimes get behind on their accounting for which ones you've got already (I've added all kind of delays, etc to try minimize the number of errors) but sometimes you'll still get a few You'll also get some of those errors if you stop and restart the MySQL server as the utilCachedUntil is stored in memory and is cleared every time you restart it. So to directly answer you question yes it normal to get a few of those from time to time but it should only do it once in a while usually when the API servers are under heavy load or having other issues. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Teavan
First CityWide Change Bank New Eden Retail Federation
|
Posted - 2009.08.31 16:01:00 -
[292]
Thank Dragonaire ... nice piece of software, very much helped to jump start my latest project.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.08.31 16:34:00 -
[293]
Just was going through my logs this morning and noticed some errors with the new exception code functions Everyone should grab revision 867 BTW Teavan it could have been related to the extra error messages you were seeing as it was effecting updating the utiCachedUntil table. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.09.01 06:01:00 -
[294]
How can something work without any errors for a week then after merging it into trunk it starts throwing all kind of errors and exceptions Anyway give revision 870 it has the fixes. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.09.01 16:38:00 -
[295]
Think I've finally fixed a long standing bug with KillLog, WalletJournal, and WalletTransactions walking code where it would throw mostly errors instead of working right. As goes with most errors of this type the fix was simple and easy to do once found
revision 873 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Teavan
First CityWide Change Bank New Eden Retail Federation
|
Posted - 2009.09.02 18:38:00 -
[296]
Ok, a few things:
1.) I know I uploaded revision 870, yet when it runs it says 862. Forget to update something?
2.) I can't say for sure it is yapeal, but after an hour or so I can't seem to run yapeal manually, it never finishes. When running it with a crontab every 10 minutes, the entire system would get locked up within 24 hours. Any ideas on what to check? I checked the yapeal_error.log file and it is blank.
3.) Has work already begun on a Corp_MemberSecurity interface? I'd like access to the roles for my project and I can handle writing the file for yapeal if it is necessary, but I don't want to waste my time if its already in the works.
I apologize if any of this has been answered before.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.09.03 16:12:00 -
[297]
I haven't been changing yapeal.php that's why the revision number doesn't change. That's cause by way svn works I'll have to remember to make minor change to it so it'll update too once in a while As to the locking up problem I don't know why you're having problem as I've been running it even minute in crontab for several days without any problems. I would suggest you setup your crontab correctly by having it run every minute. * * * * * /path/to/yapeal/yapeal.php By not letting it run every minute you're keeping it from doing part of it's job correctly which is pulling the APIs by the cachedUntil times and also it tries to even out server load over time with some randomness which also won't work as well with running it only every 10 minutes.
To get more error logging to see what's going on try these settings in config/yapeal.ini: cache_xml=TRUE log_level=E_ALL|E_STRICT trace_active=TRUE trace_level=2 trace_sections=YAPEAL_TRACE_ALL
That should give you a LOT more logging that may point to where the problem is.
As far as I know no one is work on MemberSercurity if you want to work on it send an E-Mail to the project manager's G-Mail with your G-Mail account and I'll add you to project and we'll setup a branch where you can work on it in the svn. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.09.04 15:22:00 -
[298]
An issue has been reported with the MemberTracking API in issue 20 only storing the last corp member for each corporation. Thanks for the error report Matthew. You can read about the fix in the issue.
I've also corrected an error that was leaving all the Eve API error XML files in the main cache/ instead of cache/{section}/.
Revision 880 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Garo Hertee
|
Posted - 2009.09.05 17:00:00 -
[299]
What a fantastically useful library. Thanks Dragonaire. Having set it up and got it running, I hit issue 20. I came on here to report it only to find it had already been fixed. Very nice.
|
Elnar Khad
Minmatar Deathadder Coalition
|
Posted - 2009.09.06 16:38:00 -
[300]
Let me say, thank you to everyone who has worked on this project. It is very well thought out and will be very useful. I'm coming up against a wall during setup of the scripts. I have followed the windows version of the setup and most things seem to be working. It is correctly pulling down server, map and alliance information, and pulling the characters out of my accounts correctly. The only things that are not getting put into the database are the items that I put into the "ActiveAPI" fields in the utilregisteredcharacter and utilregisteredcorporation tables. Per the instructions, it should be "char" or "corp" and then the name of the api, so I'm putting in items like: Quote: charAccountBalance charAssetList charCharacterSheet charIndustryJobs charKillLog charMarketOrders charSkillInTraining charSkillQueue charStandings charWalletJournal charWalletTransactions corpAccountBalance corpAssetList corpCorporationSheet corpDivisions corpWalletDivisions corpLogo corpIndustryJobs corpKillLog corpAttackers corpItems corpVictim corpMarketOrders corpMemberTracking corpStandings corpStarbaseDetail corpCombatSettings corpFuel corpGeneralSettings corpStarbaseList corpWalletJournal corpWalletTransactions
I am not seeing any errors in the logs, and the yapeal/cache/char and corp folders are not getting xml documents.
I've been staring at this for days and I don't see what I'm doing wrong. Any ideas? Thanks, Elnar
|
|
Johnathan Roark
Caldari Quantum Industries RAZOR Alliance
|
Posted - 2009.09.06 17:45:00 -
[301]
Originally by: Elnar Khad Let me say, thank you to everyone who has worked on this project. It is very well thought out and will be very useful. I'm coming up against a wall during setup of the scripts. I have followed the windows version of the setup and most things seem to be working. It is correctly pulling down server, map and alliance information, and pulling the characters out of my accounts correctly. The only things that are not getting put into the database are the items that I put into the "ActiveAPI" fields in the utilregisteredcharacter and utilregisteredcorporation tables. Per the instructions, it should be "char" or "corp" and then the name of the api, so I'm putting in items like: Quote: charAccountBalance charAssetList charCharacterSheet charIndustryJobs charKillLog charMarketOrders charSkillInTraining charSkillQueue charStandings charWalletJournal charWalletTransactions corpAccountBalance corpAssetList corpCorporationSheet corpDivisions corpWalletDivisions corpLogo corpIndustryJobs corpKillLog corpAttackers corpItems corpVictim corpMarketOrders corpMemberTracking corpStandings corpStarbaseDetail corpCombatSettings corpFuel corpGeneralSettings corpStarbaseList corpWalletJournal corpWalletTransactions
I am not seeing any errors in the logs, and the yapeal/cache/char and corp folders are not getting xml documents.
I've been staring at this for days and I don't see what I'm doing wrong. Any ideas? Thanks, Elnar
It looks like your mixing the character and corporation apis. Corporation apis need to be in utilRegisteredCorporation and character apis need to be in utilRegisteredCharacter
Quantum Industries is recruiting! |
Elnar Khad
Minmatar Deathadder Coalition
|
Posted - 2009.09.06 17:58:00 -
[302]
Sorry I wasn't clear when I made that post. I do have them split appropriately. I just copy/pasted both sets into the forum for review. Am I putting the wrong capitalization/spelling in there? Like I said, I know the api's are pulling appropriate information since I'm getting the character lists in accountcharacters and I did get an error message the other day when I let one of the accounts lapse and had to reactivate it. I'm stumped. Thanks again for the help.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.09.06 19:03:00 -
[303]
The problem is the docs haven't caught up the the code it seems, sorry about that. Try putting the API names in without adding "char" or "corp" to them that was a change that was made when updating to use utilSections table etc. that just was done a couple weeks ago. I'll look through the docs again and try to get them updated as it seems I missed that. Maybe a little while as I was just up until 5am re-doing Linux on my development machine after making mistake of trying the bleeding edge version of my desktop and still trying to get everything setup right again . -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Elnar Khad
Minmatar Deathadder Coalition
|
Posted - 2009.09.06 20:08:00 -
[304]
It was the "Getting Started" guide on http://code.google.com/p/yapeal/wiki/GettingStarted
I'll try it out and see if that gets it. Thanks for the quick replies! Elnar
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.09.06 20:40:00 -
[305]
Guess you missed this: Deprecated - Use web installer
I've updated it to: WARNING Deprecated - Use web installer
but I did update the part about adding APIs to reflect the setting for ActiveAPI also while I was at it. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Pricecheckinaisle Amarr
|
Posted - 2009.09.08 13:24:00 -
[306]
I did miss that, although even using the web installer, a person would still need to put their API information and the items in the "ActiveAPI" field by hand. Unless there is a different web installer I don't know about.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.09.08 18:09:00 -
[307]
In install/setup.php it does have a test character section to it after the basic config but it only does one char and corp. It wasn't made as a full application just something to help people try it out before building their own app around it
We are working on adding some wrapper classes around the utilRegistered* table to make it a bit easier for anyone using it to work with them. They are in alpha testing now and should be done within a couple weeks. Also just started on some per char/corp on-demand style API classes that should be useful for apps that don't want, need, or can't use crontab for some reason. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Elnar Khad
Minmatar Deathadder Coalition
|
Posted - 2009.09.08 18:12:00 -
[308]
My web host apparently did not install the CLI version for PHP (only the CGI) I'm paid up through the year, so I don't want to switch hosts yet. Any idea if I can get this working? Thanks, Elnar
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.09.08 18:19:00 -
[309]
I know some people have had some luck using Yapeal with CGI instead but it's not something I've done. From what I understand of it you may be able to just use it directly but not sure. Have a look in the issues and wiki for some pointers that might help. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Cory Sopapilla
Minmatar Kiroshi Group Exiliar Syndicate
|
Posted - 2009.09.14 15:15:00 -
[310]
My table serverServerStatus still shows the last known good API pull rather than a status of the API being offline. Is this something addressed in a newer version I don't have? |
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.09.14 16:49:00 -
[311]
When they take the API servers off line like that there's no way to get a new status so it doesn't update it again until a new one is available. If you want to know if it's stale also look at the date/time and if it's more then say 15 minutes old it's probably not being updated. Once again this is something to be handled in the application being developed it's not Yapeal's place to be deciding if it should return something other than what the API servers tell it as that would be beyond it's function which is to only return the most complete and current data as possible in a useful format for you to use.
Quote: In computer science, a library is a collection of subroutines or classes used to develop software. Libraries contain code and data that provide services to independent programs.
from Wikipedia
You are the programmer for the 'independent program' that uses it but Yapeal isn't the program it just makes it easier to write one IMHO anyway -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Cory Sopapilla
Minmatar Kiroshi Group Exiliar Syndicate
|
Posted - 2009.09.15 15:57:00 -
[312]
I know. Was just checking to see if you had put any timeouts to grab an error value or something in newer versions before I wrote it myself ;)
Thanks for the feedback though.
|
Scribbly
|
Posted - 2009.09.17 02:13:00 -
[313]
Hi guys,
This looks very promising and I hope I can get it to work correctly as have loads of ideas for it. I have been able to get it to pull data from the API as I now have assets, transactions etc. However it does not seem to be updating my characters account balance. I do see the following message
[2009-09-17 01:15:04.070] NOTICE: Message: Upserting 1 records for charAccountBalance File: /xxx/yapeal/class/YapealDBConnection.php Line: 240
and should I be concerned about the following message?
[2009-09-17 01:15:10.686] NOTICE: Message: Peak memory used:2621440 File: /xxx/yapeal.php Line: 200
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.09.17 05:30:00 -
[314]
The peak memory use is nothing to worry about that is just there as it says as a notice. If you ever see one larger than about 12 MB do let me know as I've been trying to reduce that and in my testing it's not going over about 12 MB now.
Do you see a record in the charAccountBalance table? If not then there might be a problem. First make sure you've activated that API both in the utilSections->char->activeAPI setting and in the utilRegisteredCharacter. You might also try deleting the record and see if it reappears if it does it's being updated but the API isn't changing which is an issue for CCP to solve -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Johnathan Roark
Caldari Quantum Industries RAZOR Alliance
|
Posted - 2009.09.17 09:45:00 -
[315]
Originally by: Dragonaire The peak memory use is nothing to worry about that is just there as it says as a notice. If you ever see one larger than about 12 MB do let me know as I've been trying to reduce that and in my testing it's not going over about 12 MB now.
Do you see a record in the charAccountBalance table? If not then there might be a problem. First make sure you've activated that API both in the utilSections->char->activeAPI setting and in the utilRegisteredCharacter. You might also try deleting the record and see if it reappears if it does it's being updated but the API isn't changing which is an issue for CCP to solve
I would also check the utilCachedUntil table to see if it has an entry for charAccountBalance.
Quantum Industries is recruiting! |
Scribbly
|
Posted - 2009.09.18 02:53:00 -
[316]
ok I have it working!!! This is the coolest thing since sliced bread!
Whats the chances of finding/getting a table with all the eve items in it? Will let me match up transactions, assets etc
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.09.18 04:37:00 -
[317]
For that check out the stickys about the static data dump which you can get in MySQL format and look at the invTypes table. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.09.19 17:38:00 -
[318]
Ok someone has found an error in the charMarketOrders and corpMarketOrders tables that is cause duplicate records to be created. You can read more about it at http://code.google.com/p/yapeal/issues/detail?id=21 and find the fix at http://code.google.com/p/yapeal/wiki/Issue21fix
I'll be releasing an update in a couple days for Yapeal but because of the nature of the error the above instructions MUST be used first or running install/setup.php again will either fail or end up deleting all you data which could be a bad thing on a production application with real data you'd like to keep. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Scribbly
|
Posted - 2009.09.21 01:31:00 -
[319]
Originally by: Dragonaire For that check out the stickys about the static data dump which you can get in MySQL format and look at the invTypes table.
Do you know if any of these dump table names would clash with Yapeal? Would like to know so I can import it all into the same database to keep the complexities of the queries down
|
Johnathan Roark
Caldari Quantum Industries RAZOR Alliance
|
Posted - 2009.09.21 05:23:00 -
[320]
Originally by: Scribbly
Originally by: Dragonaire For that check out the stickys about the static data dump which you can get in MySQL format and look at the invTypes table.
Do you know if any of these dump table names would clash with Yapeal? Would like to know so I can import it all into the same database to keep the complexities of the queries down
nope, and you can set table prefixes for yapeal tables
Quantum Industries is recruiting! |
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.09.21 16:13:00 -
[321]
Ok I've deployed the fix for issue 21 to trunk all existing users please make sure to look at http://code.google.com/p/yapeal/wiki/Issue21fix before updating as this revision could cause you problems like lost of data. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
ChriztaneE
|
Posted - 2009.09.27 10:06:00 -
[322]
Edited by: ChriztaneE on 27/09/2009 10:11:52 Hi. I have a problem with Yapeal, when everything is installed and the setup is finished. Going to the CONFIG menu it keeps asking to update the database, and everytime I UPDATE it takes me to the config menu, but it only sends me back to the update menu again, when hitting any buttons..
Also hitting the command prompt xxx\php5.3.0\php.exe -f xxx\yapeal.ph gives an error in common_backend.php on line 62 <- maybe these problems is connected?
|
ChriztaneE
|
Posted - 2009.09.27 10:39:00 -
[323]
Originally by: ChriztaneE Edited by: ChriztaneE on 27/09/2009 10:11:52 Hi. I have a problem with Yapeal, when everything is installed and the setup is finished. Going to the CONFIG menu it keeps asking to update the database, and everytime I UPDATE it takes me to the config menu, but it only sends me back to the update menu again, when hitting any buttons..
Also hitting the command prompt xxx\php5.3.0\php.exe -f xxx\yapeal.ph gives an error in common_backend.php on line 62 <- maybe these problems is connected?
Found out it has to do with the date in yapeal.ini.. Tried to change this from $Date:: 2009-08-28 19:31:54 #$ to Date .. Then cmd says im missing all elements in yapeal.ini (Cahce, Databse and Loggin)
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.09.27 19:47:00 -
[324]
Sound like you maybe try to use an yapeal.ini file from before the latest changes to it's format. I would suggest backing it up and then deleting it and try running setup again and see if it doesn't work better for you. The installer should have been able to update it for you but not sure how well that was tested.
On a related note look for Yapeal to be moving to a totally new and different installation and configuration system soon(tm). It will have a multi-platform GUI and CLI installer instead of the current drop into web directory and configure system. The current system will be kept in place for now but long term it will need to either be rewritten or just dropped if it is determined that it isn't needed anymore. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Zebullon
Gallente Pulsar Inc. Tau Ceti Federation
|
Posted - 2009.10.03 12:16:00 -
[325]
I have the same problem as ChriztaneE and I can't resolve it... The problem is certainly with the date or the release version...
The error message when I run the yapeal.php: Notice: Yapeal version 898 (beta) 2009-09-21 18:06:41 in xxx\inc\common_backend.php on line 62
In my yapeal.ini file, I have this data : date="$Date:: 2009-09-02 17:59:29 #$" version="$Revision: 849 $"
If I change the date and version whith the data in error message, it's the same think. When I delete yapeal.ini and run setup.php, it's again the false data...
I think it's OK for the data base (70 tables created), and I've filled the table correctly...
could you help me ?
|
Johnathan Roark
Caldari Quantum Industries RAZOR Alliance
|
Posted - 2009.10.03 12:48:00 -
[326]
Originally by: Zebullon I have the same problem as ChriztaneE and I can't resolve it... The problem is certainly with the date or the release version...
The error message when I run the yapeal.php: Notice: Yapeal version 898 (beta) 2009-09-21 18:06:41 in xxx\inc\common_backend.php on line 62
It always throws that notice, if there are no other problems and your getting data into the database, do not worry about it. Its just to let you know it has ran.
Quantum Industries is recruiting! |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.10.03 19:13:00 -
[327]
Notice: Talks about something that someone may find interest to look at
Warning: Something probably went wrong but the program could continue to run. Can mean an bug in the program or just some bad input and output (GIGO)
Error: Something went wrong and the program stopped running. Usually a bug in the program that needs fixed. Can be cause by either logic error or getting unexpected data that wasn't taken into consideration by programmer in program which probably needs to be fixed also.
Exception: Similar to a warning and usually used to handle something that might cause an error if it hadn't been caught by the programmer and handled in some way.
Uncaught exception: This is a exception that happens when the programmer some how missed handling an exception but was smart enough to add something to let him know he missed it.
From the above the only ones that normally need to be worried about are warnings, errors, and uncaught exception and be reported as they will need to be fixed or at least figured out why they have happened. Notices and exception are mostly use to help figure out where something want wrong or right, or just so you know something is really happening -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Zebullon
Gallente Pulsar Inc. Tau Ceti Federation
|
Posted - 2009.10.04 06:59:00 -
[328]
OK, thanks form the explication. My configuration should be OK because the file TranquilityapiseverServerStatus.xml is correctly downloaded... But I have any other file... (I have any notice for the other files in logs)
I have certainly misinformed the rows in Database, but I don't now why... In the table utilregistereduser : I have filled the full and limited api and userid correctly, and isActive=1. In the table utilregisteredcorporation : I've only filled AccountBalance in activeAPI for the test, characterID and corporationID are filled and isActive=1. Do I filled the field proxy ? with "http://api.eve-online.com/%2$s/%1$s.xml.aspx" ? In the table utilregisteredcharacter : I've only filled WalletJournal in activeAPI for the test, corporationName, name, userID, characterID and corporationID are filled and isActive=1. Do I filled the field proxy ? with "http://api.eve-online.com/%2$s/%1$s.xml.aspx" ? In the table utilconfig : fields charAPIs and corpAPIs are null... is it normal ?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.10.04 16:58:00 -
[329]
The proxy can be left blank except if you want/need to use one. The default is to use the normal API servers if not set.
Quote: In the table utilconfig : fields charAPIs and corpAPIs are null... is it normal ?
If you didn't run the config/install that would be normal and that table isn't use by anything but it and can be ignored.
Do make sure in the utilSections table you've add the APIs to activeAPI that you want to get for each section as they act as an admin override to what utilRegisteredCharacter/Corporation are allowed to do and of course isActive needs to be set in it too. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
ChillingEchos
|
Posted - 2009.10.04 17:53:00 -
[330]
Was wondering if anyone happened to have the solution to working around the killLogs flag field being set to zero except when its drones or cargo bay?
Found in : /char/KillLog.xml.aspx
Results : <rowset name="items" columns="typeID,flag,qtyDropped,qtyDestroyed"> <row typeID="3520" flag="0" qtyDropped="3" qtyDestroyed="1" /> <row typeID="12076" flag="0" qtyDropped="0" qtyDestroyed="1"> <rowset name="items" columns="typeID,flag,qtyDropped,qtyDestroyed"> <row typeID="12259" flag="0" qtyDropped="0" qtyDestroyed="1" /> <row typeID="1236" flag="0" qtyDropped="2" qtyDestroyed="1" /> <row typeID="2032" flag="0" qtyDropped="1" qtyDestroyed="1" /> </rowset>
Notice how all the flags are 0. in the more broad list there are only flag number 87 and 5 of which are drones and cargo bay items.
Not sure if I have a glitch somewhere or maybe everyone else has found the work around? Or, perhaps like most of my related troubles it is something literally staring me in the face and I just dont see it.
While I'm at it. The yapeal sql for kill data uses the 'lft' 'lvl' 'rgt' fields to show the items. I may need to see if anyone can help me understand the intended use. I really cant help but to think that I may be having a glitch in my Yapeal install cause there are no "apparent" order to the results a couple will be ok and right in terms of how they were fitted on the ship then viola, gets scattered all over the place.
I could use a bail me out our if anyone got a minute and knows what I am doin wrong and can maybe help me figure out what to do with the flags ( god knows having to manually install slots of each item would be awful )
Any help appreciated, and on BIG round of applause to yapeal crew, brilliant work!
Cheers
|
|
Johnathan Roark
Caldari Quantum Industries RAZOR Alliance
|
Posted - 2009.10.04 20:41:00 -
[331]
Originally by: ChillingEchos Was wondering if anyone happened to have the solution to working around the killLogs flag field being set to zero except when its drones or cargo bay?
Found in : /char/KillLog.xml.aspx
Results : <rowset name="items" columns="typeID,flag,qtyDropped,qtyDestroyed"> <row typeID="3520" flag="0" qtyDropped="3" qtyDestroyed="1" /> <row typeID="12076" flag="0" qtyDropped="0" qtyDestroyed="1"> <rowset name="items" columns="typeID,flag,qtyDropped,qtyDestroyed"> <row typeID="12259" flag="0" qtyDropped="0" qtyDestroyed="1" /> <row typeID="1236" flag="0" qtyDropped="2" qtyDestroyed="1" /> <row typeID="2032" flag="0" qtyDropped="1" qtyDestroyed="1" /> </rowset>
Notice how all the flags are 0. in the more broad list there are only flag number 87 and 5 of which are drones and cargo bay items.
Check to see if its coming from the API this way. You can turn on file caching and look at it in the cache folders.
Originally by: ChillingEchos
While I'm at it. The yapeal sql for kill data uses the 'lft' 'lvl' 'rgt' fields to show the items. I may need to see if anyone can help me understand the intended use. I really cant help but to think that I may be having a glitch in my Yapeal install cause there are no "apparent" order to the results a couple will be ok and right in terms of how they were fitted on the ship then viola, gets scattered all over the place.
Look in the yapeal wiki about Hierarchical Data. The examples are for assets, but it applies to the killLog items as well.
Quantum Industries is recruiting! |
ChillingEchos
|
Posted - 2009.10.04 21:33:00 -
[332]
Ty for the info on hierarchy data, may take me a bit to still wrap my head around that (been one of those weeks)as I still fail to grasp the idea. no worries there...
as for the cache, yes, I already looked into that and yes the data is cached that way. the rowsets show in previous example came from the sources found on eve-dev, I found it kinda interesting that their examples showed the exact same results as do mine. |
ChillingEchos
|
Posted - 2009.10.04 21:43:00 -
[333]
mk, maybe spoke too soon. I figured out the 'lft' 'rgt' ordering kew, thats kinda neat. |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.10.05 00:22:00 -
[334]
Just like with assets the order of the items and locations isn't sorted come from the servers. It's common to have assets say in corp hangers at a station be in the order item, item, item, container, item, container, ... From want I've seen the killlog seems to do the same thing. The only constant is if something is inside something else it will always be inside it's parent container but even between 2 different pulls the order of the containers and/or the things inside them can change. Welcome to the world of most DB systems where if you don't add any 'order by' clause you get it in some random order that even the DB designers couldn't tell you how it decided Since we don't have anyway to pass an 'order by' to the API server and CCP didn't include any in their queries it was decided that Yapeal would 'pass the buck' on this too and let the developer using it decided how to handle the order after the data is in the local DB At some point I might re-visit that part of the code and see about re-ordering at least the container vs the stacks of stuff. Probably it would end up like: container, container, ..., item, item, ... but doing that is a very low priory for now and unlikely to be done for a long time if ever. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
ChillingEchos
|
Posted - 2009.10.05 22:40:00 -
[335]
Mk, no problems there, thank for you responce.
So any idea where things might be going out of place as far as the flags?
Cheers |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.10.06 05:18:00 -
[336]
Yapeal just stores them as it gets them. The flags are the locations where stuff was from which you can check what each means in the table here. http://wiki.eve-id.net/API_Inventory_Flags -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Scribbly
|
Posted - 2009.10.15 03:06:00 -
[337]
Edited by: Scribbly on 15/10/2009 03:16:04 Hi guys
I have been trying to reset up yapeal and have been having some difficulties.. I redownloaded by svncheckout and when browsing to setup.php I get the following error...Any ideas?
Fatal error: Call to undefined function elog() in /xxxsecret/install/setup.php on line 90
Has elog.php been removed?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.10.15 07:06:00 -
[338]
Seems you've found some kind of bug that causing an uncaught exception and elog isn't being included soon enough to log it which cause another error Try adding these lines to install/setup.php right after line 48 and see if at least it'll log the actual error that you're having so we can properly fix it so that exception gets caught.
/* * Require elog file */ require_once('..' . DS . 'inc' . DS . 'elog.php');
Once we have a better idea what's the root cause of error I'll add fix to trunk for everyone.
-- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Ariacus
|
Posted - 2009.10.15 07:22:00 -
[339]
Was keen to try this out but getting the same error. On my setup, it appears line 56 in common_paths.php has "$dir = realpath($incDir . '..');" $incDir doesn't have a trailing separator, so changing it to this seems to work (so far...) "$dir = realpath($incDir . DS . '..');" I'll post a note on the Google Code site if setup seems to work
Originally by: Scribbly Edited by: Scribbly on 15/10/2009 03:23:52 Edited by: Scribbly on 15/10/2009 03:16:04 Hi guys
I have been trying to reset up yapeal and have been having some difficulties.. I redownloaded by svncheckout and when browsing to setup.php I get the following error...Any ideas?
Fatal error: Call to undefined function elog() in /xxxsecret/install/setup.php on line 90
Has elog.php been removed? or common_paths.php changed so much that elog.php is no longer loading? Please help...I destroyed my old copy when install it :(
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.10.15 16:00:00 -
[340]
Thanks Ariacus for finding the bug seems when I committed that last one the changes I was making didn't all get saved to disk before I did it I was trying to make sure I had a good 'off site' backup of my work before going on a trip in case something happened to the laptop I've been using as main development machine. As usual when doing those things in a hurry something got missed
revision 904 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Scribbly
|
Posted - 2009.10.16 01:01:00 -
[341]
Guys.... Thanks for fixing that :)
I would like to make a donation of some kind? iskies ok? This app is just soo good, hope you guys continue to work on it. I imagine the API will only expand with the improvements CCP will be making with ingame mails, calendars, Dust 514 integration etc
|
Nick Partridge
|
Posted - 2009.10.16 11:43:00 -
[342]
Hi Dragonaire.
A Quick question if I may. Is there a way to get yapeal to autocheck during the API update cycles and update the details in utilRegsitered tables.
For instance a character changes corporation etc. ?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.10.16 16:37:00 -
[343]
Quote: Is there a way to get yapeal to autocheck during the API update cycles and update the details in utilRegsitered tables.
It does do some changes now. Example if a eve account isn't paid up and the APIs aren't available it does deactivate the user, chars, corp for that one so you don't get loads of API errors from the servers, etc. As to having it update them with corp changes etc. there are several problems with that ie how do you handle when they change corps and in the old corp they were a director and use in RegisteredCorporation but in the new one they aren't or in their new corp some other char is set to do it should their information over write the existing? Depending on the application the answer can be different and that just one example. That why I've left those types of things out of Yapeal as it needs to be decided at the app developer level what to do and not in the library. I only very recently changed it to change isActive based on API errors because I'd changed the code in a way that it wasn't really possible to handle it any other way any longer. For some more example of why not to make how Yapeal of even your app to depend on the API for that type of stuff just look at the several thread in the forums here where people were using the APIs to add and remove people from their corp/alliance forums and when the API was down for patches etc everyone was dropped from their forums include in some cases the admin user One reason I took a path that used isActive was I didn't want a bug or any type of logic error on mine or someone else's part to be able to screw those tables up because they are so important to how everything works. It's one thing to use the API information to say prompt an admin that they should update the information and even offer to do it for them but to do so without their knowledge is asking for problems IMHO -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Nick Partridge
|
Posted - 2009.10.17 10:54:00 -
[344]
Yeah fair point.
I can write a back end checker to run as a cron job for it and just disable the inputs.
Just thought i would check i wasnt missing an intended function :-)
Damn its good. I just need to integrate that chaps additional eve central bits and its completed for me :-)
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.10.27 18:32:00 -
[345]
Hi all, Thought I'd let everyone have a look at something I've been working on. I've been working at a replacement for the current install system used by Yapeal.The current system was largely the work of Satis Iqulenax and has been a great help in making Yapeal easier to install and setup which I have no doubt helped to make it more popular. Satis has done a great job with it and has been one of the best programmers I've worked with and has done a good job keeping up with the very demanding work load in Yapeal and not just on the installer but help on many other things with Yapeal. Unfortunately Satis has had to move on to some other Eve related projects for his corporation and others.
That leaves me with the task of keeping the installer up to date and change it as Yapeal changes that Satis use to do. In getting up to speed on the code it reminded me of several things I'd always want in the installer but we'd never got around to doing. One thing that had always bothered me is it was web base but Yapeal is really a library that is meant to be run from a CLI. Nothing in it required a web server except the installer and there was no install/configure help if you did install it on a computer without a webserver. So after think on that and some other issues with it I decided to go a different way and switch to a commercial installer that provides free licenses to open source projects. It's called Bitrock InstallBuilder and I release a early ALPHA test installer examples in the download section of Yapeal's website for people to try. I need to cut this post short as I'm running late for work but I would like some feed back on what people think of it so far. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
KtoJest
Minmatar Silkroad Partners
|
Posted - 2009.10.31 18:38:00 -
[346]
thanks for the package...elegant.
just went through a successful svn install.
i can download char data for multiple accounts
but i cannot download corp data.
none of the yapeal logs show any errors (only 'date_default_timezone_set() function' missing)
the eve API access log does not show any attempt to get corp data.
utilRegisteredCorporation has a record with the proper charid ie priveleges, it is set active.
what am i missing? can someone point me in the right direction?
thanx
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.11.01 06:22:00 -
[347]
Make sure you're running at least PHP version 5.2.1 or later and that the date extension is installed. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
KtoJest
Minmatar Silkroad Partners
|
Posted - 2009.11.01 07:28:00 -
[348]
thanx for the response.
topic: no corp data download
phpinfo(): PHP Version 5.3.1RC3-dev
phpinfo() - Date Default timezone Europe/Berlin (i've used the timezone function in some of my own coding so it seems to be installed)
yapeal db: activeapi field in corp record: AccountBalance AssetList MarketOrders WalletJournal WalletTransactions
where do i go from here?
|
Johnathan Roark
Caldari Quantum Industries RAZOR Alliance
|
Posted - 2009.11.01 08:47:00 -
[349]
Originally by: KtoJest thanx for the response.
topic: no corp data download
phpinfo(): PHP Version 5.3.1RC3-dev
phpinfo() - Date Default timezone Europe/Berlin (i've used the timezone function in some of my own coding so it seems to be installed)
yapeal db: activeapi field in corp record: AccountBalance AssetList MarketOrders WalletJournal WalletTransactions
where do i go from here?
Is the associated character in the database? also try setting it to active and see if it pulls your corp data? Also check the UtilSections table.
Quantum Industries is recruiting! |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.11.01 08:49:00 -
[350]
Look at activeAPI, isActive in utilSections as it will override utilRegisteredCorporation. Make sure you increase the logging also as it might give more information about what's going wrong. Just to let you know Yapeal hasn't been tested with PHP 5.3.x at all so it could have something to do with that as well. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
KtoJest
Minmatar Silkroad Partners
|
Posted - 2009.11.01 09:30:00 -
[351]
thanks to the 2 of you.
Quote: Look at activeAPI, isActive in utilSections as it will override utilRegisteredCorporation.
this was not set to 1.
the best-
|
Nevangalar
|
Posted - 2009.11.03 13:50:00 -
[352]
Hi there, first of all great AP!
Now i need a bit help.
After installing i got this error: Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/php_xsl.dll' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/php_xsl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
On a centos 5.2 linux server i need some .dll 's ?! Erm..
Someone got an idea?
/Nev
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.11.03 15:09:00 -
[353]
My guess is you some how ended up with a php.ini file made for PHP on Windows onto your Linux server. Try changing any lines that look like extension=php_xsl.dll to extension=php_xsl.so and see if it works. This is more a problem with your PHP setup then having to do with Yapeal and might be better to get help on a Centos forum for it. BTW Yapeal doesn't use XSL so could just comment out that line but you'll probably still have some other problems if your php.ini file isn't right. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Liam Fremen
Insurgent New Eden Tribe Systematic-Chaos
|
Posted - 2009.11.05 08:21:00 -
[354]
Hello m8
My corporation is using this tool from precisely 1 year, even if we never followed the updates correctly we have a lot of data for developing our internal softwares.
Now i have a big problem, i have moved all my stuff on a new webserver, sadly it runs plesk 9.2 and php 5.2.0, yapeal say that 5.2.1 is required... since i have spoke with the web server provider and they refused to update the php since it's "linked" to the plesk installation and sadly, i must keep plesk running smoothly, there is any way to make yapeal work on php 5.2.0?
Thanks
-- Systematic-Chaos, Executor |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.11.05 18:08:00 -
[355]
Glad to hear you've found Yapeal useful.
It's been a while since I looked at why I set 5.2.1 as minimum but I believe it was because there's a bug in SimpleXML that was cause problems with any version before that. Since all the API parsing is done with SimpleXML it would make it hard to work around. It is possible that changes I've made to Yapeal since then have made the problems I was having go away but I think it was something that couldn't really be worked around or I would have done so at the time of course.
There is another way for you or anyone else to work around problems like this with your hosting sites CHOOSING to put your site at risk by staying with older versions that have know bugs and security issues. If you have the HD space you can install your own copy of PHP. This can work with Yapeal because it's really a console application and you can just use a full path to PHP in the crontab. I.E. something like
* * * * * /path/to/private/php /path/to/yapeal/yapeal.php If you decide to go that route make sure the version of PHP you get is made for your host's distro version or is statically linked so it can run anywhere. One place you can find statically linked versions of a full LAMP (Linux Apache MySql PHP) stack or WAMP (same for Windows) is at http://bitnami.org/ which is made just for these types of problems to help you work around them. There are other similar packages out there but I found this one because it uses the same BitRock InstallBuilder that I'm now planning on using as Yapeal's installer once I'm finished learning to use it.
Hope this gives you some ideas how to go forward from here. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Liam Fremen
Insurgent New Eden Tribe Systematic-Chaos
|
Posted - 2009.11.06 14:15:00 -
[356]
Edited by: Liam Fremen on 06/11/2009 14:22:18
Originally by: Dragonaire Glad to hear you've found Yapeal useful.
It's been a while since I looked at why I set 5.2.1 as minimum but I believe it was because there's a bug in SimpleXML that was cause problems with any version before that. Since all the API parsing is done with SimpleXML it would make it hard to work around. It is possible that changes I've made to Yapeal since then have made the problems I was having go away but I think it was something that couldn't really be worked around or I would have done so at the time of course.
There is another way for you or anyone else to work around problems like this with your hosting sites CHOOSING to put your site at risk by staying with older versions that have know bugs and security issues. If you have the HD space you can install your own copy of PHP. This can work with Yapeal because it's really a console application and you can just use a full path to PHP in the crontab. I.E. something like
* * * * * /path/to/private/php /path/to/yapeal/yapeal.php If you decide to go that route make sure the version of PHP you get is made for your host's distro version or is statically linked so it can run anywhere. One place you can find statically linked versions of a full LAMP (Linux Apache MySql PHP) stack or WAMP (same for Windows) is at http://bitnami.org/ which is made just for these types of problems to help you work around them. There are other similar packages out there but I found this one because it uses the same BitRock InstallBuilder that I'm now planning on using as Yapeal's installer once I'm finished learning to use it.
Hope this gives you some ideas how to go forward from here.
I'm very sad about this issue since i'm loosing data even right now being 1-2 days that yapeal is not updating stuff... :(
Considering the actual situation, we could install ONLY a new debian version of php, under a different account, and just running yapeal over it... i don't like at all this situation.. i would prefer a different approach, considering i have a windows server 2008 machine with mysql installed could be a viable option to use your "windows" version and run it under the windows machine? actually the software that we use for corp management is written in asp.net, and i used to take data from the linux machine on the same net.
Can you give me some suggestions on how make yapeal work on my windows machine? i have windows server 2008 and IIS7 with php 5.2.11 installed (but not yet configured).
PS: do you have any other contact for speaking with you? i need to ask you some questions.. thanks
-- Systematic-Chaos, Executor |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.11.06 19:21:00 -
[357]
Best way to contact me direct for stuff you don't want to have in the thread would be through G-mail to the Yapeal project owner's account and we can get together via G-talk etc from there.
To run Yapeal on Windows I would suggest you install the stack from http://bitnami.org/ which has Apache, MySQL, and PHP and I've done some test on and seems to work. The other option is the setup as outlined on the Yapeal wiki as it's also been tested and work though some of the instructions maybe a little out of date.
Yapeal may work with what you have already with IIS7 but it is an un-test setup. Remember the only part of it that needs a webserver at this point in Yapeal is the old installer and you can do everything it does manual instead if need be.
Updating from a year old version of Yapeal to the current version I'm sure can be done but is not going to be easy depending on which tables you are using etc. There has been several updates to the DB table structures etc which will have to be worked out but can be done by anyone that is good with MySQL DB design. My first suggestion would be to backup your current DB and then back it up a couple more times some where else just in case then put together the SQL needed to move the data from the old DB into a new one with the current table setup. I can help provide some pointers on that part but it probably would be best if you have someone else to help you with that as my time is somewhat limited right now.
BTW stay with using the trunk from svn as the other download versions are "ALPHA" and not ready to be used in a production server really as it doesn't fully install and setup Yapeal and was only put out for people to make comments on what they thought of it etc. I'm still working on it and hope to finish something that can be use soon(tm) but I've been limit on time to work on it and want to make sure it's as bug free as can be before I try have people switch over to it as an option. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.11.15 02:21:00 -
[358]
Hi everyone, After doing an upgrade from OpenSuSE 11.1 to the new OpenSuSE 11.2 I started noticing some new messages in the logs about time zones not being set etc. Don't know if it just related to something in PHP5.3 which I'm now running or (more likely really) that there's been a small change in the default php.ini file they use but it has highlighted something I was not explicitly setting either for PHP or in MySQL connection that probably should be. I've now setting both to use UTC/GMT which should take care of any issues it might have been causing.
In other news the new installer is coming along nicely if a bit slower then I had planned. I've been adding checks that we never did/thought of before in the old installer but instead were making assumptions about. I'm trying to keep the simplicity from the old while adding a lot more options for those that want/need the extra control which isn't an easy task I'll try to have something that could be called an early beta out in the next few weeks as RL allows.
revision 919 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
KtoJest
Minmatar Silkroad Partners
|
Posted - 2009.11.15 09:36:00 -
[359]
i think this is a php 'thing'. i remember getting some time zone messages from Yapeal.
how to u like the 'dolphin' ? ;) i liked it so much that i switched to gnome. lol
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.11.15 19:53:00 -
[360]
I've been using openSuSE from when they were still just SuSE (version 5.x) and have learned to adapt as it changes. I've always preferred KDE but do use some apps from Gnome too. One reason I've always liked openSuSE is I don't have to choose to only use one or the other like some other popular distros make you do. Dolphin works good once you understand it and tweak it to your liking. I have to do the same with Windows etc to as the common defaults are just stupid IMHO. I've always liked this little commentary about OSes and using them http://www.zyra.org.uk/os-air.htm
I will say that 11.2 is much improved over 11.1 was and other than having to download the driver for my video card before my desktop worked correctly the install was very easy. I was able to have everything mostly tweaked to my liking and able to get back to doing useful stuff within only a few hours where often it can take me a couple days with Windows -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
KtoJest
Minmatar Silkroad Partners
|
Posted - 2009.11.16 20:56:00 -
[361]
you've got a headstart on me. started with mandrake and then joined suse in v8.0. had always used kde until opensuse v11.1. i think it was kde v4+ that broke my sound so i went gnome and retro to suse v11.0. maybe it's time to look at 11.2
http://www.zyra.org.uk/os-air.htm - great analysis :)
by the way, i've referenced Yapeal on a small eve blog, recently started. seems to be getting some hits. :)
http://evegamer.ch/caveat-emptor/sandbox under the 'eveAPI Trader Project -RollYourOwn' post.
the best-
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.11.17 05:22:00 -
[362]
First, thanks for the kind words and that's an interesting looking Blog you've got started there I've BM it and will try to keep up with it. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.11.19 19:21:00 -
[363]
New 'alpha' installer versions of Yapeal are available for testing in downloads. DON'T use any of these for production servers yet but do need feedback from anyone that tries them. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.11.20 19:00:00 -
[364]
... Continued
- If you choose 'Advanced' before you'll now have several more pages where you can change other settings that can be found in yapeal.ini which like the last page will default to either your current config/yapeal.ini or the ones from config/yapeal-example.ini
- Now it is ready to actually unpack everything and put stuff where you told it to which will take only a minute or so. If the database doesn't exist it will also be created for you.
- The last page gives you an option to view the very outdated README file and your instill should be done and you can start testing/using it.
I'll try to get a more complete walk through done on the wiki or hopefully someone will offer to make one for me If you're interested please contact me.
Also please report any bugs/problems you have so I can look into them. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.11.27 10:13:00 -
[365]
I thought I'd let everyone know I've been working on a new branch for Dominion and I've added the new APIs for char and map sections already but will wait to release it until after I had a chance to do a little testing before merging it into trunk/. I should be done with it within a couple days after the API servers come back up from the Dominion release. I'm going to wait until the final release notes to see if I need to change any of my caching code to deal with the new ideas they are talking about use with some of them. I don't think it will really effect Yapeal much because of how it works but time will tell. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Morgenholt Blue
|
Posted - 2009.11.29 11:41:00 -
[366]
I would like to make a suggestion.. nothing big or feature wise just something to hopefully make it work better.
In yapeal.php
To determine if it is a browser or the command line running the script you are currently doing
if (PHP_SAPI == 'cli')
Now this might always return the same thing depending on how the server is setup. So I recommend you change it to: if ($_SERVER['SHELL'] != NULL) From what I have see this will return something like "/bin/sh" if it is the command line and browsers will return null.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.11.30 01:35:00 -
[367]
Where it's using that it has to be the CLI SAPI and doesn't make sense to check any other way. Only times that's used is when running CLI and passing in params to it otherwise it only pays attention to it when deciding if it should also output log messages to the terminal or not. I believe with your way it would run into problems under Windows since $_SERVER['SHELL'] isn't set there outside of when using CGI in web server. The method I use is what is recommend by the people that wrote PHP. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Morgenholt Blue
|
Posted - 2009.12.01 18:24:00 -
[368]
There are other variables that it would output any ways if you don't want me to suggest things for compatibility then I wont. Just saying that some servers will return the same thing whether it is run by the CLI or via a browser.
I looked it up on the PHP website to: http://www.php.net/manual/en/function.php-sapi-name.php#89858
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.01 18:27:00 -
[369]
Ok I've had a chance to try my Dominion branch and seems to work after a couple minor fixes so I've merged it into trunk. You'll probably have to add the new API names into your utilRegisteredCharacter tables manually as I'm not updating the old installer for them since I'm hoping to have it replaced soon(tm). Same goes for new SovereigntyStatus table in map section. It should add/update all the tables right but let me know if it doesn't.
revision 935 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Redick
Minmatar Nex Exercitus IT Alliance
|
Posted - 2009.12.02 00:34:00 -
[370]
Is there a list of "new API's" supported by this version of Yapeal that we can manually add? I can't seem to sort out which are new and which are old. Respectfully,
Re****
|
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.02 05:29:00 -
[371]
You can look at this DevBlog for more info on the new APIs but I've also update the wiki page for Yapeal with the new ones that have been added. Of course there's also info on them at http://wiki.eve-id.net/APIv2_Page_Index as usual. Basically they added 4 new ones and changed 2 others and one of the updates didn't effect Yapeal at all because somehow that field was already missing in the StarbaseDetail API and had never been caught by anyone. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Rottw Adleweh
|
Posted - 2009.12.02 09:57:00 -
[372]
What is the easiest way to update yapeal?
To install it on my server I used an export of the SVN as I can't use any of the installers on my Unix box. I used the setup.php in the installer directory to get the database sorted out, but how can I now get the new API tables in the current database and if I again export the svn can I just copy it over the existing dir?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.02 17:27:00 -
[373]
Just do a svn up then svn export --force over the old copy should work fine as that's how I usually do it during development also To get the new tables into the DB you should be able to just run install/setup.php again and it'll update/add the tables for you. If for some reason it doesn't seem to work let me know and I'll look into it.
Quote: ... I can't use any of the installers on my Unix box.
Just wondering why you couldn't? In this case no one should be using them as they aren't updated yet for Dominion and are really in a ALPHA state anyway but I should have that fixed soon as well. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Rottw Adleweh
|
Posted - 2009.12.02 21:10:00 -
[374]
Originally by: Dragonaire
Quote: ... I can't use any of the installers on my Unix box.
Just wondering why you couldn't?
Because FreeBSD doesn't run linux binaries out of the box. I can install linux compat, but don't want to install things I don't really need.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.03 05:47:00 -
[375]
Ah Ok that make sense then. BTW if you would like I can have it build for that as well I think but didn't have anyway to test it on so didn't do so. Also didn't know anyone was running it on BSD either Good to know it works on it as well though not surprised since both are very similar in most ways that count. If you'd like to give it a try send me a E-mail to my G-Mail account that you can get from the project and I'll send a build to to try. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Rottw Adleweh
|
Posted - 2009.12.03 07:24:00 -
[376]
Nah, no need for the installer, works like this pretty well.
Something I came across during initial installation thought:
step 1: navigate to <yapeal-host>/install/setup.php step 2: set initial database credentials step 3: setup does creating all the tables and stuff and says its done step 4: go back to <yapeal-host>/install/setup.php to check other things/update database ----- At this point you get a login screen, but the password has never been set.
I expected that the password thus was set to admin or so. But it turned out to not been set at all, so it is impossible to log on.
At first I simply disabled the line in the phpcode that checked the password and substituted it with a line that is aways true. That let me get through the setupscreen where you can set the password. For some reason it didn't work either, but it showed me that I had to set the password in the database, but the field doesn't initially exist. So it took a while to figure out where to set the pw and how to make sure I can login, because that wasn't possible until manually added a record called: [password][md5(passwd)] in the utilConfig table.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.03 09:19:00 -
[377]
Yeah I've ran into that as well. It seems to be using a blank password or something even if you don't set one. I've thought about trying to fix it but since I'm changing away from using setup.php etc and going to be doing most, if not all of that, in the new installer I've not bothered trying to find it. I'll have something else to use for those that still install Yapeal from svn in the future but it will be different and designed for an application developer to use during testing and to learn what they need to do to manage accounts in their own apps. I do not plan to have it be web based since Yapeal itself isn't directly. I'll probably design something for the command line that using some PHP classes that should be easy to integrate with a web application as well. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Labrena
|
Posted - 2009.12.03 21:08:00 -
[378]
I just tried updating to the 935 from a previous release.
It did not add the new mail/notifications tables.
How do I add the new tables and grab the data?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.04 15:54:00 -
[379]
Are you still having problems? Both are working for me. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Labrena
|
Posted - 2009.12.04 18:23:00 -
[380]
Edited by: Labrena on 04/12/2009 18:24:15 Yes, I checked this morning.
They are the only 2 that stopped pulling data. Last entry for them was before the server went down for the patch on Dec 1st. All of the others are updating.
I removed them, re-added them to active and still nothing.
I did a new install for another character/corp, and that one is working correctly.
But the mail one will still not pull the corp WalletJournal or WalletTransactions.
Also, I could not get the setup to add the 4 new tables for the new API's. I just copied them from the other table I setup through.
|
|
Seraphina Oriana
The White Rabbits The Gurlstas Associates
|
Posted - 2009.12.04 22:30:00 -
[381]
Okay, I've just installed the latest version from the svn - I've got it installed, and I can see all of the database being successfully made, and it's now going to setup.php and telling me there's a database update, I click update, it says à.
Progress Database: Connecting TolocalhostConnected Database: Update Tables Fromutil.xml fileDone Database: Update Tables Fromaccount.xml fileDone Database: Update Tables Fromchar.xml fileDone Database: Update Tables Fromcorp.xml fileDone Database: Update Tables Fromeve.xml fileDone Database: Update Tables Frommap.xml fileDone Database: Update Tables Fromserver.xml fileDone Database: Updateyap_utilSections -> accountDone Database: Updateyap_utilSections -> charDone Database: Updateyap_utilSections -> corpDone Database: Updateyap_utilSections -> eveDone Database: Updateyap_utilSections -> mapDone Database: Updateyap_utilConfigDone Update File:yapeal.iniDone Database update is done.
And then when I click go to database settings, it tells me there's an update and the process loops.
Any suggestions? DEADLY NIGHTSHADE - http://www.clan-oriana.com |
Verchan Stoneheart
First Flying Wing Inc Primary.
|
Posted - 2009.12.05 03:39:00 -
[382]
Originally by: Labrena Edited by: Labrena on 04/12/2009 18:24:15 They are the only 2 that stopped pulling data. Last entry for them was before the server went down for the patch on Dec 1st. All of the others are updating.
I removed them, re-added them to active and still nothing.
Ditto
|
Sraelon d'Phist
|
Posted - 2009.12.05 05:01:00 -
[383]
Installed the latest (937) and I can't find a setup.php anywhere under the installation directory.
Also, even with a system-wide install under /opt, it's installing config directories under my home dir and so when I run yapeal, it can't find it's config file.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.05 06:04:00 -
[384]
Sraelon d'Phist - You're trying the new Alpha grade installer which doesn't use/have a setup.php. It hasn't progressed to the point of doing everything the regular Yapeal does during install. You need to add you character/corp info by hand to the tables etc. As to the problem it's having not finding yapeal.ini that's a bug and I'll have a fix out for it this weekend as it can also effect a svn install. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.05 06:59:00 -
[385]
Seraphina Oriana - You only need to run the update when you download a new version. It's not check anything or able to get any updates. That's only used when you install a new version over the old to let it update the old tables. The new installer will have that but the old doesn't. You don't have to keep updating it as it will just keep remaking the same tables. Just add your test char/corp and finish the install. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Sraelon d'Phist
|
Posted - 2009.12.05 07:23:00 -
[386]
Thanks for the answer :) How can I get 935, or whatever version is operational? I don't see older versions on google code and svn is latest as well.
Thanks )
|
Sraelon d'Phist
|
Posted - 2009.12.05 07:31:00 -
[387]
I looked at the SVN checkout and it DOES have setup.php....
So are there two versions of 937?
Also, when trying to use setup.php for the SVN version of 937, it's asking for a password, but this isn't set anywhere?
I can't login. Is there a place that has ALL the info needed to get this running?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.05 07:38:00 -
[388]
For those of you having problems with some of the tables not working it may be something I've just noticed. For some reason Yapeal seems to be using up to 10x more memory then normal at times. To see if that's causing your issue try upping the memory PHP allows and see if it works for you then. I'm looking into what's cause the memory increase and hope to have it fixed soon once I figure out the cause. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Sraelon d'Phist
|
Posted - 2009.12.05 07:53:00 -
[389]
Yes, I'm a moron.
Thank you for not pointing that out :) It's installed and running.
|
Labrena
|
Posted - 2009.12.05 17:49:00 -
[390]
Originally by: Verchan Stoneheart
Originally by: Labrena Edited by: Labrena on 04/12/2009 18:24:15 They are the only 2 that stopped pulling data. Last entry for them was before the server went down for the patch on Dec 1st. All of the others are updating.
I removed them, re-added them to active and still nothing.
Ditto
I found the cause of this.
I was using a directors API key. Switched to the CEO's API key and it worked. Seems CCP goofed something with the API roles.
|
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.05 17:54:00 -
[391]
Got a fix to the svn for the excessive memory use that was causing problems. Those of you having issues give it a try and let me know if it fixes stuff for you. Also included the fix for the hard coded path to config/yapeal.ini that was causing issues if you move config/ somewhere other than the default.
revision 939 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Rottw Adleweh
|
Posted - 2009.12.06 19:56:00 -
[392]
I haven't updated to the above version yet, but after the dominion update I also had problems that api wasn't pulling things. With that update I used the setup.php to update the tables. I just found that in the utilSections table the values for all but the ServerStatus was set to 0.
I don't know if it was because of the update or because the api was down during deployment of Dominion. But setting the values back to 1 fixed the problems I had.
|
Seraphina Oriana
The White Rabbits The Gurlstas Associates
|
Posted - 2009.12.06 23:18:00 -
[393]
Originally by: Dragonaire Seraphina Oriana - You only need to run the update when you download a new version. It's not check anything or able to get any updates. That's only used when you install a new version over the old to let it update the old tables. The new installer will have that but the old doesn't. You don't have to keep updating it as it will just keep remaking the same tables. Just add your test char/corp and finish the install.
I can't even get to that - as soon as I log in I get there's an update, when I click update, it says done and show the three buttons at the top. No matter which one I click I get a new update and the process starts again. DEADLY NIGHTSHADE - http://www.clan-oriana.com |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.07 01:16:00 -
[394]
Quote: I don't know if it was because of the update or because the api was down during deployment of Dominion. But setting the values back to 1 fixed the problems I had.
update.php will reset those because it over write your setting from the install/*.xml files. I'll look at changing that as it isn't very nice that it does that
Seraphina Oriana - Are you trying to use the Alpha installer version from downloads? They are all broken right now as I've been busy working on some other things and haven't done a new build of them and uploaded them yet.
Quote: So are there two versions of 937?
Yes and No Since I'm using a branch for the new installer I'm working on so there can be differences between the version from downloads and the one you get from the SVN trunk. Just to make it clear for a production server and most developers you should still be using the SVN trunk for now. If you want to help me debug/test the new installer and make suggestions on how to improve it then give it a try and let me know how it works otherwise use the SVN for now.
I'm trying to decide how I want to do the test char/corp part right now and maybe have it be an outside program/library that isn't just useful with the installer but I've been hitting some walls doing what I would like to do. I'm thinking about starting with something just for the installer for now and maybe switch to something else in the future. It keeps seeming to grow bigger every time I look at what I was thinking about doing and seems to keep go father down the slippery slope to being part of an application and not just something to be used during testing for developers. I'll try to make up my mind on some of the things I've been looking at today and once that's done progress should increase on the new installer again and will have a version that lets you add the test char/corp as well and at that point the push to Beta version shouldn't take long. Once it's at that point it will become the default installer for trunk and the current setup system will be retired. Once that is done I'll probably start suggesting everyone use downloads instead of SVN. The SVN will of course always be available but for most people the version from downloads and the updater that comes with that version will because the preferred way to get Yapeal.
Hope that help clears up any confusion there might have been and gives everyone some idea where things are going with the project. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Morgenholt Blue
|
Posted - 2009.12.07 11:26:00 -
[395]
I just noticed that the server status table isn't updating when the server is down, it just stays as it was right before the server went down. Shouldn't it change serveropen to 0?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.07 17:12:00 -
[396]
For those of you that never read sticky threads they have turned off the /map/SovereigntyStatus.xml.aspx API as they thought it gave away to much intel. Have a look at the Removal of /map/SovereigntyStatus.xml.aspx API thread about it. You'll need to remove SovereigntyStatus from activeAPI for map in utilSections table to keep from get a lot of errors reported in log/yapeal_error.log. I'm going to probably hold off for a couple days before I release an updated revision of Yapeal in case they decide to bring it back but in a changed form like has already been suggested on the thread above.
Morgenholt Blue - Yapeal takes a simple approach to stuff. It grab the information from the APIs and puts it into the tables. If it can't get it do to say a connection error, the API is down, etc it leaves it alone. I've tried to never make assumptions that I know better that the XML what is true. If you want Yapeal to report the ServerStatus correctly during DT etc then report it as a bug to CCP (which it is IMHO BTW). You can always look at the cachedUntil time from utilCachedUntil on any API to determine how 'fresh' something is and act accordingly in your application. You could even update the ServerStatus table yourself based on the assumptions you wish to make and when Yapeal starts receiving data again it will simply update it with what it has. Just make sure your application plays nice by looking before changing any of the tables and uses SQL transactions. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Morgenholt Blue
|
Posted - 2009.12.07 17:52:00 -
[397]
The reason I told you was because the API was up. According to tools such as EVEMon I could connect to the EVE API fine and it reported off-line.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.08 08:27:00 -
[398]
I could be wrong but last time I knew EveMon was still polling the server directly instead of using the API but they could have changed by now. I'll take a look into it some more because after looking at the XML I see they seem to be setting <serverOpen>True</serverOpen> instead of 0/1 so that could be causing some issues with it not being understand somewhere along the chain and always returning 1 in the table. I may have to convert it to logical 0/1 or may just change table so it's a text field and let everyone else decide how to handle it -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.08 17:36:00 -
[399]
Ok I've update Yapeal with some API changes
- Map Sovereignty Status is now deactivated
- In Server Server Status the serverOpen field has been change to text instead of boolean so now everyone gets to handle it themselves and not Yapeal trying to decide how to interpret it
- Tried to update the old installer to let people select the new character APIs. Should work but didn't have chance to test it
revision 940 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Morgenholt Blue
|
Posted - 2009.12.08 20:53:00 -
[400]
server.xml file was not found or a bad XML file
The file is there and works on 939.
|
|
Seraphina Oriana
The White Rabbits The Gurlstas Associates
|
Posted - 2009.12.09 03:16:00 -
[401]
Quote: Seraphina Oriana - Are you trying to use the Alpha installer version from downloads? They are all broken right now as I've been busy working on some other things and haven't done a new build of them and uploaded them yet.
No, I'm using the latest SVN. DEADLY NIGHTSHADE - http://www.clan-oriana.com |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.09 06:45:00 -
[402]
Sorry about that didn't get the <UNSIGNED/> out of the server.xml file when switching from integer to char. You can either delete it yourself at line 45 or download new revision where I fixed it.
Revision 941 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.09 06:51:00 -
[403]
Seraphina Oriana - Try clearing the directory where you're instilling Yapeal and download the latest revision. I'm guessing but think something is bad with the one you got. Also if this wasn't an upgrade you might try deleting and remaking the DB and see if that helps. Might look to see what's in your cache/log/setup_*.log files as well for clues why it's not working for you. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Zuzaxx
|
Posted - 2009.12.09 16:20:00 -
[404]
hi
im trying to get yapeal up and running and having some problems
i ran the web-setup and everything seamed to go fine, i connected via ssh and ran php ./yapeal.php which spat out a bunch of text, basically complaining that i'd not put my full api key (sadly i foolishly cleared the log so can't reproduce the error)
whenever i rerun the script (i've tried it with the full api, it makes no difference) it now spits out the version number / compile date and "public_html/yapeal/inc/common_backend.php on line 64"
Quote: // Log Yapeal version information. $mess = 'Yapeal version ' . YAPEAL_VERSION . ' (' . YAPEAL_STABILITY . ') '; $mess .= YAPEAL_DATE; trigger_error($mess, E_USER_NOTICE);
(line 60-64)
i've no idea what i've done thatÆs making it get stuck here, any help would be much appreciated
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.09 17:18:00 -
[405]
Quote: whenever i rerun the script (i've tried it with the full api, it makes no difference) it now spits out the version number / compile date and "public_html/yapeal/inc/common_backend.php on line 64"
That's normal it's just a NOTICE message so you know it did something Look in your database and see if you have some data there. I talk about all of that in post 327. Remember also that all the APIs have cache times so when there's nothing to do Yapeal just logs a few notice lines in the log and ends.
Now that you have the full apikey added you may need to look at the utilRegisteredCharacter/Corporation tables and add back in the APIs that may have got deactivated to activeAPI. You can copy&paste them from utilSections table. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.10 18:28:00 -
[406]
Thanks to matthiasvill for reporting issue 23 about corpStarbaseDetails. I'd missed changing something and it was causing that table not to update correctly and some other problems. There's a fix in the latest revision.
revision 943 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Strombizzle
|
Posted - 2009.12.11 18:21:00 -
[407]
I have Yapeal running under my Godaddy hosting account. It's shared hosting so I have to make due with what I have.
I set up the cronjob and here is the response I got:
/web/cgi-bin/php5: Symbol `client_errors' has different size in shared object, consider re-linking Content-type: text/html
#!/usr/bin/php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http:www.w3.org/TR/xhtml1" xml:lang="en" lang="en"> <head> <title>Yapeal is not a web application</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <body> <h1 style="font-size: xx-large;color: #ff1010;">USER ERROR USER ERROR USER ERROR</h1> <p> If you are seeing this you have tried to run Yapeal as a web page which is incorrect. Yapeal is made to <b>ONLY</b> ran from the command line. See the <a href="https://eve-search.com/externalLink.asp?l=http%3A%2F%2Fcode%2Egoogle%2Ecom%2Fp%2Fyapeal%2Fw%2Flist">Yapeal Wiki</a> for more information on using it. </p> </body> </html>
It seems to be giving me a php library error along with the message saying that I'm running the file from the web browser.
Has anyone encountered this before? Any easy fix in the config or is this something I'm going to need to take up with godaddy?
Thanks!
|
Johnathan Roark
Caldari Quantum Industries Prime Orbital Systems
|
Posted - 2009.12.12 07:57:00 -
[408]
Originally by: Strombizzle I have Yapeal running under my Godaddy hosting account. It's shared hosting so I have to make due with what I have.
I set up the cronjob and here is the response I got:
/web/cgi-bin/php5: Symbol `client_errors' has different size in shared object, consider re-linking Content-type: text/html
#!/usr/bin/php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http:www.w3.org/TR/xhtml1" xml:lang="en" lang="en"> <head> <title>Yapeal is not a web application</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <body> <h1 style="font-size: xx-large;color: #ff1010;">USER ERROR USER ERROR USER ERROR</h1> <p> If you are seeing this you have tried to run Yapeal as a web page which is incorrect. Yapeal is made to <b>ONLY</b> ran from the command line. See the <a href="https://eve-search.com/externalLink.asp?l=http%3A%2F%2Fcode%2Egoogle%2Ecom%2Fp%2Fyapeal%2Fw%2Flist">Yapeal Wiki</a> for more information on using it. </p> </body> </html>
It seems to be giving me a php library error along with the message saying that I'm running the file from the web browser.
Has anyone encountered this before? Any easy fix in the config or is this something I'm going to need to take up with godaddy?
Thanks!
First one I have no clue, maybe something to ask your host about? The other, if you still have the issue check the Wiki page and read through Issue 6. They may have information that you may find useful.
Quantum Industries is recruiting! |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.12 10:15:00 -
[409]
You can also try commenting out line 85 in yapeal.php and see if it works for you using cgi. I haven't tried it but it might work. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Strombizzle
|
Posted - 2009.12.13 15:27:00 -
[410]
Ok, thanks for the info. I'll play with it a little and see what input my host has to offer.
|
|
Feng Schui
Minmatar Sebiestor tribe
|
Posted - 2009.12.14 08:59:00 -
[411]
using the latest release of wamp, can't install this version and last version.. keeps telling me that curl isn't installed (but I've confirmed that the extension is loaded).
Project:Gank
Pilgrim Guide
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.14 12:08:00 -
[412]
Make sure when you confirm Curl is load that you do so for the CLI version and not just the CGI as they do have different INI files and can have different extension loaded. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Strombizzle
|
Posted - 2009.12.15 01:16:00 -
[413]
Edited by: Strombizzle on 15/12/2009 01:16:26 After giving up on my godaddy hosting, I was able to install it on a local linux server and everything works great. Fantastic tool. Kudos to Dragonaire and contributors.
I could however use a point in the right direction as I just finished importing the static data dump for Dominion, but I can't find the static skill list in either the Yapeal imported data or the data dump. I must be missing something as I can't figure out where to get the skill list (other than importing it myself, which I'd like to avoid).
Thanks guys. |
KtoJest
Minmatar Silkroad Partners
|
Posted - 2009.12.17 10:04:00 -
[414]
hi- question: corpMarketOrders; field: orderState
what do the digits mean? in an earlier post you defined '2' what are '3', '0' defined as?
or where do i look?
thanx
Caveat Emptor |
Rottw Adleweh
|
Posted - 2009.12.17 12:19:00 -
[415]
Check this page: http://wiki.eve-id.net/APIv2_Corp_MarketOrders_XML
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.20 19:31:00 -
[416]
Strombizzle - Sorry that you didn't get an answer sooner to your question but seems the forums eat my first answer from a few days ago Yapeal doesn't implement all of the skill APIs yet but info on them is also I believe available in the data dump and I'd direct you to the stickys above for more info on how to get what you need.
Fixed the install/*.xml files so during Yapeal updates isActive isn't changed back to the defaults which should make updating less of a hassle. The original reason for it doing that was have Yapeal a more testing mode until application developers could see if anything was broken in an incremental way but now that the code is much more stable this shouldn't be needed anymore.
In other news after taking a short break from Yapeal to play a new game (AVATAR - The Game) I've now added API section activation and setting of activeAPI to the installer for the utilSections DB table. The last remain thing to be added is the test user/char/corp stuff which should make it feature complete when compared to the old installer. I'd like to hear some feedback (good or bad) from anyone trying it out on their test servers.
Revision 948 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.21 14:28:00 -
[417]
Yapeal has past the one year mark. The project moved over to Google Code after a very brief appearance as a project on Sourceforge. Here's some stuff I found interesting that I thought I'd share.
- Average commits per month: 63 (Better then 2 per day )
- Number of committers: 2 (Actual number of people contributing code is much higher but only have had a couple people that ever did new releases on the trunk)
- Lines of code: 19534 (trunk only)
- Comment lines: 10151 (trunk only)
- Estimated 4 person years for a team of programmers to reproduce effort
- Estimated cost to reproduce if programmers where paid $55,000/year: $244,392 USD
- Actual amount ever received: $0
- ISK received: 0
- Hours spent working on: More than I've have for my job
- Enjoyment from making something useful: Unmeasurable
Thanks to everyone that has helped make Yapeal what it is today and I look forward to continuing to work with all of you and many new people in the future as Yapeal continues to grow and change. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Morgenholt Blue
Gallente House CHOAM SwineFlu.
|
Posted - 2009.12.22 04:53:00 -
[418]
Quick question, does Yapeal support multiple characters? I tried 2 but then it stopped working.. will look up for any errors in a bit.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.22 08:45:00 -
[419]
It is made to work with multiple users, characters and corporations. The idea behind it is to work with large numbers of each but the exact number it can handle has never really been tested but by it's nature Yapeal is mostly limited by your Internet connections and the DB transactions rate of the server(s) you run it on. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Morgenholt Blue
Gallente House CHOAM SwineFlu.
|
Posted - 2009.12.22 09:59:00 -
[420]
I don't see how do you distinguish between the different characters?
I see some things but not all have ownerID which I guess is supposed to be used for this?
|
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.22 18:36:00 -
[421]
All char APIs do have a ownerID=charID and corp ones ownerID=corpID.The rest of the table are either admin tables for Yapeal (util) or general tables that don't have an owner really like the eve, map, server ones. The one from account is of course keyed to userID. Hope that helps if you need help with a particular table let us know and someone can give you an example I'm sure. You might also look back through the thread here as there is a lot of information on how things work in Yapeal in many of the posts as well plus in the wiki. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Lonestar Leo
|
Posted - 2009.12.23 11:20:00 -
[422]
Hi,
I just tried your your library and it looks promising .)
The installer didn't work: ./Yapeal-948-linux-x64-installer.bin Error: Error running /usr/local/include/php -f "/tmp/Yapeal/install/testForPHPVersion.php" : /bin/sh: /usr/local/include/php: Permission denied Press [Enter] to continue :
I used the svn version then and that worked... only the mail api produces an sql error on inserting into the charMailMessages table.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.23 17:50:00 -
[423]
Try the latest SVN revision 949 for the problems with charMailMessages as it has a couple fixes. As to your problem with installer version it looks like you didn't point it at a CLI version of PHP but either a CGI version (though it should work now too) or just the directory where it could be found and not the actual program. I probably need to make the instructions clearer that it needs to be set to the actual program and not just path to it. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Lonestar Leo
|
Posted - 2009.12.24 08:51:00 -
[424]
it is still in the latest svn... the query was:
insert into `yapealcharMailMessages` (`messageID`,`ownerID`,`read`,`senderID`,`sentDate`,`title`,`toCharacterIDs`,`toCorpOrAllianceID`,`toListIDs`) values (290720362,544714069,1,1001474112,'2009-12-18 07:33:00','Aw: Aw: xxx','544714069',,''), on duplicate key update `messageID`=values(`messageID`),`ownerID`=values(`ownerID`),`read`=values(`read`),`senderID`=values(`senderID`),`sentDate`=values(`sentDate`),`title`=values(`title`),`toCharacterIDs`=values(`toCharacterIDs`),`toCorpOrAllianceID`=values(`toCorpOrAllianceID`),`toListIDs`=values(`toListIDs`)
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2009.12.24 14:09:00 -
[425]
Make sure you run install/setup.php again at least also as there is a DB update that is needed to fix it as well as the update to the code. Have a look at http://code.google.com/p/yapeal/issues/detail?id=25 for more information. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.01.03 13:42:00 -
[426]
In trunk/: Implemented suggestion by gilgamoth from Issue 22 to set cachedUntil time to +6 hours on API error 902 and also 901. This should greatly reduce the amount of error spam when the API server is down which seems to have become all to common IMHO. Update handling of fullAPIKey and limitedAPIKey from utilRegisteredUser during API fetching. Now will use either with fullAPIKey having priority. Small change to the utilRegisteredUser table and some updates to the class/Section* files' SQL so they can use either key. Make sure at least one of the keys is set or expect some nasty error messages
Alpha from Downloads: For those of you having problem during install with the DB tables not being added etc. Try selecting 'Advanced' install option and it should work. Seems one or more bugs have come up in 'Legacy' option since I've been working mostly on 'Advanced' option during development. I'll be looking in what needs fixed soon(tm) For those trying out Linux versions on some distros you may have notice it aborts with an error message before it even seems to get started This is caused by a error during initiation while trying to auto detect path to PHP and it's version. I have someone testing a fix for that now and plan to release updated version later today.
Been making some progress on options to add test user/char/corp to utilRegistered* tables which is last feature I planned to add. Once that is done a general bug hunt and cleanup is planned which should lead to moving all the changes to trunk/ and the retirement of the old install system.
revision 953 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Qoi
New Eden Warriors
|
Posted - 2010.01.03 15:16:00 -
[427]
I'm using php 5.3 and yapeal revision 953. The corp AssetList contains 23633 Entries. When updating corpAssetList, i get this warnings:
WARNING: Message: SimpleXMLElement::addAttribute(): Attribute already exists File: /home/niklas/yapeal/class/api/corpAssetList.php Line: 186
WARNING: Message: SimpleXMLElement::addAttribute(): Attribute already exists File: /home/niklas/yapeal/class/api/corpAssetList.php Line: 170
In total I get 302607 Warnings per yapeal run and yapeal takes 2.6 Gigabytes of Memory. The AssetList in the database seems to be okay.
The callstack for the first warning is: editAssets(&$obj); editAssets(&$obj, 0, 2, 0); editAssets(&$obj, 0, 2, 0); editAssets(&$obj, 0, 32, 1); editAssets(&$obj, 0, 33, 1); editAssets(&$obj, &$obj, NULL, 2);
With the last call leading to the warning - i don't think the second argument should be an object at all? (It's an simplexml object)
|
Scribbly
|
Posted - 2010.01.03 22:42:00 -
[428]
Hi there
This is the best thing since sliced bread! One problem I am having is when inserting into charMailMessages, perhaps there is an extra ' in the mail message which is messing things up? I will investigate more
One question...What is the method for upgrading to a newer version? At the moment I am deleting everything and reinstalling although this is becoming a bit of a pain as I am loosing all my history?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.01.03 23:19:00 -
[429]
Qoi - Please try the new revision and see if it helps with some of your warning messages. If it doesn't clear them up please contact me through my G-Mail account which you can find by looking at the project owner for Yapeal and I'll have you give me some more details and try some things.
Scribbly - Usually you can just install the new version right over the top of the old without any problems. If you're using the SVN version you probably need to run install/setup.php at least to let it update any change in the DB tables which BTW you don't have to clear like you've been doing as it can update them with the data in them. The new installer is also made to update the DB tables with data in them though there are some bugs right now that would probably make you have to use the 'Advanced' option.
revision 954 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.01.04 05:40:00 -
[430]
New version of the 'Alpha' installer out which should have fixed the errors with Map section and the problem with auto-detecting PHP under Linux. 'Legacy' should work correctly now as well as 'Advanced'.
revision 955 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Ramov Tinoga
Tinoga Enterprises
|
Posted - 2010.01.06 11:15:00 -
[431]
Originally by: Dragonaire New version of the 'Alpha' installer out which should have fixed the errors with Map section and the problem with auto-detecting PHP under Linux. 'Legacy' should work correctly now as well as 'Advanced'.
revision 955
I've installed the Yapeal-955-linux-x64-installer.bin (Advanced Setup) on my openSUSE 11.0_x64 and it worked fine once I gave the yapeal database user all rights on the yapeal database.
I was a bit reluctant to update my old yapeal version manually, so the installer is really helpful and takes care of everything. -----
|
M4g3ll4n
Circle of Shadows Black Swan.
|
Posted - 2010.01.08 13:36:00 -
[432]
Hi, at the moment I am running "Yapeal Revision: 940" on webspace (no dedicated server or vserver, etc).
How is the best way (or are the steps) to update Yapeal to the actual Revision?
Thanks in advance. Mag
P.S.: Awesome tool!
Circle of Shadows - Recruiting now www.eve-cos.info |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.01.08 15:40:00 -
[433]
How you upgrade Yapeal depends if you're using SVN or trying out the new installer version. With SVN you can use the normal 'svn up' to do it or 'svn export --force' if you use an export to keep from having .svn/ directories in web accessible locations on your server. For a somewhat more detail set of instructions that were written for Windows you can have a look at the Wiki
With new installer you should find install/autoupdate-* file that you can run that works much like the installer and will check for newer versions and give you option to update to the newest revision. If you don't see autoupdate-* then you can also just grab the latest download and run it and it'll overwritten the existing install as well and then you should have the autoupdate-* to use in the future.
In general updating Yapeal is mostly a matter of overwriting outdated files with new ones, adding any new ones, deleting unused ones, and then sometimes making updates to the database tables and ini file, all of which you can do manually but using svn and install/setup.php or the new installer are much easier and far less error prone of course -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.01.09 09:01:00 -
[434]
Ok a week later then expected but I've finished adding all the test user/character/corporation stuff to the new installer. It's ready to be used a bit more now. It's still not full production ready but if you make some good backups of your data it would be useful to give it a try. There have been a few changes to the util tables like adding CorporationName to the utilRegisteredCorporation table. Some things that the installer does that the old one didn't is it will add all your characters and their corps to the utilRegisteredCharacter/Corporation tables but only make the ones you select active. For more information about changes that were made look through the commit notes as well.
revision 959 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.01.15 09:05:00 -
[435]
Ok did some clean up and bug fixing on the new installer. I've also enabled option for it to check for new updates on install so it can do the job of the autoupdater as well so you can always make sure you have to latest version
revision 961 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Qoi
New Eden Warriors
|
Posted - 2010.01.16 08:02:00 -
[436]
Edited by: Qoi on 16/01/2010 08:03:12 I was able to succesfully reproduce my problems on several systems (linux x64) with several php 5.3.X versions including HEAD and latest stable
http://bugs.php.net/bug.php?id=50670
I optimized the code (it uses 70% less memory for CorpAssetList now with php 5.2.X) but still I get very high memory usage under php 5.3, i guess there is something terribly broken :/
To make that clear: it's php that is broken if you ask me, not your code
|
Xaroth Brook
Minmatar BIG Libertas Fidelitas
|
Posted - 2010.01.19 11:31:00 -
[437]
Dragonaire,
First of all, nice work so far, it was some getting used to due to not having that much information about it, but I got most of it working.
One bit I didn't get working was this:
If you have multiple characters belonging to the same corp, you can still only enter 1 item -per corp- in the utilRegisteredCorporation table.. as such, once there's already somebody in that list with limited view rights (say, normal member), you'll have to manually confirm that the character you are trying to add for that corp has more access than the one already in place, then replace the entry.
how when you then remove that second character, adding the first could be possible with some logic, but then the system would again, try to load API sections it shouldn't be loading.
a small proposed change for this:
allow multiple character-corp entries (and linked as such, primary key on characterID or so), that each have their own activeAPI list.
then, per corp check the list of characters (so you know which api key to use), and check which activeAPI they have set, start with the character that has the most (after verifying it works, obviously), if another character has access to a sheet that hasn't already been processed, use that character to retrieve the information
as such you would end up with a relation like this:
character - access Char1 - A B C D E Char2 - A B C D E F G H Char3 - A C D E F G H I J K L
The system should then use Char3's key to retrieve A (not B as it doesn't have it) C-L .. after loading it should notice that B hasn't been loaded, and that Char2 (seeing it has the most lists available) has that.. 1+1=3, use Char2's access to Load B, and yer done.
that way, if any of the characters gets removed at a later point, the system will remain functional (albeit less data being processed).. also, a new character added to the list with all access will be checked first to verify it's access, after which proper access will be used to pick up the remainder.
It was like a baby, it landed on my lap and was helpless and totally defenseless. Then I shot it and bragged about it on a killboard.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.01.21 08:57:00 -
[438]
Quote: it was some getting used to due to not having that much information about it
Yeah I know but I do try to document the code fairly well to help out. You can even do a SVN checkout of some auto built webpages for it from here. It's mostly made for Yapeal developers to use but there's stuff in that can be of use to everyone.
Quote: If you have multiple characters belonging to the same corp, you can still only enter 1 item -per corp- in the utilRegisteredCorporation table.. as such, once there's already somebody in that list with limited view rights (say, normal member), you'll have to manually confirm that the character you are trying to add for that corp has more access than the one already in place, then replace the entry.
The 'best' way to find the character to use is look at their roles in the corp from the character sheet API tables and select one that has 'Director' role and insert them into utilRegisteredCorporation. If none of the available characters have that role use the one that has to most roles that cover the API access you want. That's something best done/decided in the application code not Yapeal IMHO.
Quote: allow multiple character-corp entries (and linked as such, primary key on characterID or so), that each have their own activeAPI list.
The problem you run into trying to having more than one entry in utilRegisteredCorporation for a corp is you could end up trying to pull the same API more than once and the 'second' one to do so will always receive an error from the servers and cause un-needed increase in server load plus risk chance of having you IP banned from API from not obeying the cache timer -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Trader Hek
Contingency.
|
Posted - 2010.01.22 16:50:00 -
[439]
I checked out the latest from svn and tried to install. I recieved a failure on importing char.xml during install. I had to edit /install/char.xml
LINE 634 From : <field name="`remainderPoints`" type="F" size="52"> To: <field name="`remainderPoints`" type="F" size="5.2">
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.01.22 21:27:00 -
[440]
Yeah sorry about that ended up committing something to trunk instead being in a branch to test it You'll probably find that WalletJournal for characters fails also I'm going to revert the changes to it and just have the new Research API added until I work out my bugs with the Journal. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.01.24 23:41:00 -
[441]
Ok sorry took this long but had a couple other things going on in RL that kept me from getting the corrected update for Dominion 1.1 patch out. The new charReseach API should be working now and charWalletJournal updated with new tax columns. As always let me know if something isn't working
I should have updates merged into installer downloads later or by tomorrow at latest.
revision 968 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.01.31 05:10:00 -
[442]
Minor update to let Yapeal be run with CGI instead of CLI which should make it a little easier to use with some web hosts. Limited testing but worked for me To use it from CGI you may need to change the first line in yapeal.php to read #!/usr/bin/php-cgi -Cq on Linux/BSD. The path maybe different on your system but that one should work for most people. I'll merge trunk into branch I use for installer version after a little feed back from people using it with CGI then release update for them as well. If you want to try it out you can copy the updated yapeal.php, /inc/common_backend.php, and /class/YapealAutoLoad.php from trunk/ and see how it goes.
For anyone that's been having problems running Yapeal from php 5.3 or latter you may need to change your php.ini file to allow 64MB memory as PHP now does proper accounting for memory use by it's extensions so you now have to deal with how much memory things like MySQLi and SimpleXML are truly using. So far in testing 55MB was highest I've seen reported but 64MB would be a nice round computer number to use
revision 970 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
KtoJest
Minmatar Silkroad Partners
|
Posted - 2010.01.31 11:12:00 -
[443]
hi- just got into 'nested sets'. thanx for the examples. Caveat Emptor -a trader's blog |
Roomsy
|
Posted - 2010.02.01 21:00:00 -
[444]
Hi
I think i'm being a complete numpty here but what is the password that your asked for at the end of the /install/setup.php web based setup? The DB password doesn't work and I can't seem to find a default password anywhere.
I did the setup by using the latest svn 971, created a new db and user with full permissions. The database is populated but I can't log in.
|
Roomsy
|
Posted - 2010.02.01 22:13:00 -
[445]
Originally by: Roomsy Hi
I think i'm being a complete numpty here but what is the password that your asked for at the end of the /install/setup.php web based setup? The DB password doesn't work and I can't seem to find a default password anywhere.
I did the setup by using the latest svn 971, created a new db and user with full permissions. The database is populated but I can't log in.
ok, seems I.E 8 jumps the page where you set the password.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.02.02 22:22:00 -
[446]
Ok finally got around to making a change to how Yapeal figures out the required and optional column types for ADOdb during table inserts. This change should have no effect on application developers but should make updating and adding new APIs easier in the future. Before the developer was required to put together the list manually for each table when adding a new API now ADOdb can figure it out for itself from the DB table This change has already highlight one minor bug in the StarbaseDetails tables that was missed with sovereign changes.
I have a few days off and plan on looking into high memory use that has shown up with switch to PHP 5.3. I've tracked it down to the allianceList API but could also effect some of the other large APIs as well. I'll be trying out some different coding in a branch to see what I can do to reduce usage.
I probably won't be updating the downloads with what I've been working on until after I finish one or two more of these type of changes but once they are in trunk/ I'm merge them out to that branch again and release update for them. I had a report of the autoupdater not working right and need to look into what changes I can do to make it work smoother before continue with work to merge that branch back into trunk/ as well.
trunk revision 973, download revision 969 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.02.07 10:49:00 -
[447]
Ok added feature to Yapeal that I've wanted to do for a long time and just never seemed to get around to. You can now have XML cache to the database instead of or in addition to files in cache directories To enable the new caching you'll need to update config/yapeal.ini in the [Cache] section by changing cache_output="file" to either "both" or "database" depend on if you want to use database caching in addition to files or instead of. The XML cached in the database if valid and not expired has priority over the files during fetch so keep that in mind if you decide to use both and wonder why changes in the cache files during testing don't seem have any effect
trunk revision 981, download revision 969 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.02.14 04:50:00 -
[448]
Ok I've finally finished what I can do for now on reducing memory usage in Yapeal and seem to have cut it in half at least for now from over 50MB down to 21MB or so in my testing. Farther cuts will have to wait until I can do some in-depth code profiling and tracing. That brings me to something else I've done. All the old tracing stuff have been removed to make way for an improved system that will probably be based on Xdebug instead. The time frame for adding the new code to do that is unknown at this time as changing over to the new install system and totally removing the old one is next planned thing to got finished. I have ideas for several things I'd like to add to or change with new installer but which of those get done before merge is still not decided yet but most will probably be put on hold until after merge.
revision 986 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.02.14 10:26:00 -
[449]
I've updated the downloads to latest merge from trunk/
trunk revision 986, download revision 987 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Mahoosiv
|
Posted - 2010.02.14 13:32:00 -
[450]
Probably numpty time, but I have installed the Linux version via ssh and it reports back just fine, db tables all created and so forth, i can even run yapeal from the command line and no errors.
However despite installing in 3 diff locations, no setup.php file is created/found in the install dir.
Is this a feature or is something not correct?
Mahoo
|
|
Mahoosiv
|
Posted - 2010.02.14 15:15:00 -
[451]
Edited by: Mahoosiv on 14/02/2010 15:47:01 Hi Again.
Now I am certain that this is numpty country, but reading through this forum I figured that the alpha download was a bit iffy - so I went to the svn version and checked out the trunk.
** Edited** I have looked at the code and unless i am reading it wrong, the paths in setup.php are not the same as the paths in the install, i refer to the cache dir which in setup and common paths is set to be in the same dir as inc...
Do I have a completely messed up copy of this?
Please either shoot me or something cos I cant take the suspense!
Mahoo
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.02.14 22:49:00 -
[452]
Mahoosiv - Actually right at this time the download version and the SVN are basically in sync and the download has advantage that it works correctly on new installs where the old one isn't being maintained anymore and I have no idea wither it works for them. I'm just working out some last minute issues before the branch I build the downloads from is merged into the trunk/ that you get from SVN. I've IDed a couple issues with MailMessages and StarbaseList APIs that I need to fix but once I've checked those fixes I will probably be doing the merge sometime this week. It would be very helpful for everyone to try the downloads and find any additional problems with it before then so they can be address.
I'm also looking for some help with updating the existing install info on the wiki etc. and writing some more guides from a new user point of view as I find it hard to write anything given that none of it is 'new' to me Anyone interested in helping out please contact me through my G-Mail account. You'll need to have a G-Mail account yourself to be able to edit the Wiki etc. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
AydenKain
SLOV Industries
|
Posted - 2010.02.16 04:03:00 -
[453]
So does anyone know how to associate ItemId and/or typeId to the actual Item name, assets for example?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.02.16 13:42:00 -
[454]
To do that you'll need to static data dump. from it you'll need at least the invTypes tables for the itemID to name stuff. You'll also need one or more of the map* ones to do locations. You can find MySQL versions of them in the Sticky above. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dirty Snipe
|
Posted - 2010.02.18 12:19:00 -
[455]
I downloaded from the svn and uploaded to webhost.
Browsed to the following location to install yapeal.
http://www.eve-miners.co.uk/eveapi/yapeal/install/setup.php
and I get the following error
Fatal error: Nonexistent directory defined for log in /home2/evewarco/public_html/eveapi/yapeal/install/inc/mainfile.php on line 60
Pls Help.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.02.19 01:15:00 -
[456]
Try creating either the log/ or cache/log/ directory that is missing. That an issue with the old installer/setup system and since it's being replace soon(tm) it's not being updated to some of the changes that have been made with directory structure. I recommend for anyone doing a new install to grab Yapeal from downloads from now on and use the new installer. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dirty Snipe
|
Posted - 2010.02.19 09:05:00 -
[457]
The problem with your installers is that I am uploading to a web host which I do not have shell access so your way of installing kinda buggers me up.
The old fashoned way of just uploading the files and running the setup.php to change config settings was a much better way of doing things.
Can this still not be an option on the downloads????
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.02.19 09:44:00 -
[458]
Short answer is no. The bit longer answer is that a way to let you remotely instill over the web is planned but I'm not sure my idea will work yet. Another way of doing it is to install it on a local machine and once it's setup locally copy it over. Even the SQL files are available in the cache/ directory after install. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.02.19 10:41:00 -
[459]
It's finally done the new install system has now replaced the old system in trunk/. I know some people liked the old system and this change will make it harder with some ISPs to install but there are ways to work around them. One of the reasons for the change is so several improvements could be made so there's more options where and how you can install Yapeal. I've also setup a new automated build system that should keep the downloads up to date with trunk/ as well.
revision 990 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
StinGer ShoGuN
Pleasure and Pain
|
Posted - 2010.02.24 20:23:00 -
[460]
Hi there !
I have just set up Yapeal to run some tests with it. I pull it through SVN on a LAMPP server. SVN says it's version 1000. However, when running yapeal.php, it displays a message stating it's version 898. Anyway, this is a small issue.
As there is no /install/setup.php, I set it up manually: created the user and DB and then, used the tables creation script. All good ! Then, I looked for a way to add a user, a character... with the /install/addTestCharacter.php and /install/addTestUser.php, but they were not working (error with ADOdb apparently). Hence, I added my character, corporation and user manually in the tables (active is set to 1). Then, run a yapeal.php, but nothing is done (or nearly): the only tables populated were serverServerStatus, utilCachedUntil and utilXmlCache. I have looked through the logs, but nothing appears (except errors or warns or else from when I was trying to understand how it was working).
So, what have I done wrong ? What else should I do to make it work ? I must admit, I'm not really willing to walk through the code (I am doing too much PHP elsewhere atm). Just tell me how I can make this tremendous library work !
Cheeers !
Tu ne vois pas mes userbars ?! Utilise un VRAI navigateur !! |
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.02.24 21:36:00 -
[461]
Did you also make sure isActive is set on everything in utilSections and filled correctly? It's used as an overall admin level control on the APIs.
Quote: However, when running yapeal.php, it displays a message stating it's version 898.
The installer changes that as part of the install process but now that I'm making ZIPs and TGZs available I should look at changing it during build process instead.
Quote: Then, I looked for a way to add a user, a character... with the /install/addTestCharacter.php and /install/addTestUser.php, but they were not working (error with ADOdb apparently)
I thought I'd made them general enough to be used elsewhere but you might look at the class/util/*.php files as the scripts in install/ are most just a wrapper for them made to work in the install environment. I'd like to see what errors you were getting from them so if you wouldn't mind send them to me I'll take a look at them. Just send them to me at my project owner G-Mail address. I made the class/util/*php classes to make it easier for me and everyone else working with the tables in util/. I try to make them easy to understand and useful for anyone integrating Yapeal into their applications. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
monkey miner
Big Bang Industries
|
Posted - 2010.02.26 11:54:00 -
[462]
Thanks for an excellent service! I'm having some issues similar to the above mentioned however..
I've installed yapeal on my Windows machine running xampp for the web services and I've got it running as far as it gets the data for sections: account, eve, map and server however I can't get it to fetch the char and corp data.. All the isActive fields are set to 1 and I can't figure out why it doesn't get those 2 only. Any ideas?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.02.26 21:44:00 -
[463]
Glad you figured it out and to help you and other application developers in the future I just finished write a new Wiki page that cover how the tables and settings are and aren't related which should make it clearer and easier to understand for most people compared to trying to follow the code and it's comments. I do still recommend looking at the code for a better understanding but the Wiki page should be a first step before that and you may find it's all you need to understand as an application developer about how they work together. You can find it at http://code.google.com/p/yapeal/wiki/UtilDatabaseTableDependences -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Naja Ashei
|
Posted - 2010.02.27 01:30:00 -
[464]
The linux installer doesn't appear to work. When it gets to the database section, I put in the db, user, and password, and it continually tells me that the user doesn't have permissions to use the database.
I've done everything I can think of here, including using the root user to try and get the installer to just move on. Any ideas?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.02.27 03:44:00 -
[465]
Check that you have at least version 5.0 of MySQL and that there is a information_schema database and the user you're try to use has at least select access to the SCHEMA_PRIVILEGES table. That user will also need create database privilege to create the DB. If you don't find any problems after that I'd try run these queries from either a MySQL command prompt or through phpMyAdmin and see what errors are being return that cause it to fail.
select `PRIVILEGE_TYPE` from `information_schema`.`SCHEMA_PRIVILEGES` where `TABLE_SCHEMA`="MyNewYapealDatabase" and `GRANTEE`="'YapealUser'@'localhost'"
create database `MyNewYapealDatabase` collate = utf8_unicode_ci
BTW with MySQL usually the 'root' user isn't added to SCHEMA_PRIVILEGES so will always fail. Since the 'root' user always has all privileges even if named something else it's not listed since it would be pointless, at least that seems to be the thinking at MySQL You should be able to still add record yourself and it will work.
Check everything above should let you find why it's failing. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Naja Ashei
|
Posted - 2010.02.27 08:21:00 -
[466]
Originally by: Dragonaire Check that you have at least version 5.0 of MySQL and that there is a information_schema database and the user you're try to use has at least select access to the SCHEMA_PRIVILEGES table. That user will also need create database privilege to create the DB. If you don't find any problems after that I'd try run these queries from either a MySQL command prompt or through phpMyAdmin and see what errors are being return that cause it to fail.
The issue appears to be that _ characters get escaped in the schema_privileges table, so your script passing the "foo_bar" database in doesn't match the "foo\_bar" in the table.
Also, as a general note, I've never encountered a webhost that lets you create databases without using their own tools, none of the users have create database permissions.
|
Ursulen Kein
|
Posted - 2010.02.27 11:54:00 -
[467]
Hello,
I'm a director of a french corporation. I need your service Dragonia to use your tools for an adaptation for our website. We can pay you by ISK, or with real money, via paypal but it's important.
What's we need ? - installing Out of Eve on our website, we don't know how to make it. - Install on an other webpage, a tool to show the fuel staying in POS.
What we have. - A website : http://chantiersspatiauxfrancais.domaines-laporte.com/news/news.php - a place for an SQL installation - we can give you ftp access for a part of the website.
What we offer to you ? - an interesting price in ISK/ real money via paypal.
It's very hard to survey some pos, in space, always check time staying for BPO research ...
So, because for us, it's a game, we NEEED your service,
Thank your for your answer, don't hesitate, to contact me ingame.
Please help us.
Ursulen
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.02.28 00:19:00 -
[468]
Naja Ashei - Ok that would explain the issue you were having. As I remember MySQL says using '_' is bad idea anyway in DB or table names but I will say I've done it too and then changed them because of all the problems they cause You could escape it yourself and it would work right since the installer will pass it directly to MySQL.
Quote: Also, as a general note, I've never encountered a webhost that lets you create databases without using their own tools, none of the users have create database permissions.
That one of the reasons Yapeal gives you an option to made it yourself with whatever tools they provide and then you tell it which one to use and it'll just add the tables to the existing DB. It even gives you option to add a table prefix to all it's tables so when you have a host that only lets you have one DB you don't have to worry about conflicts with any other existing tables from the rest of your applications.
I've always tried to make Yapeal work on as many hosting sites I can but I personal never have used a host but always ran it on local computers or one I had full control of. I wouldn't use a host that didn't give me SSH access and ability to make my own DBs but that is a personal thing. I will say with all the hosts now offering low cost VM hosting where they can give you that kind of access I really don't understand why anyone would go with traditional hosting even if it is cheaper as you're getting what your not paying for (bad service and in most cases outdated hackable sites). -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Auguste Renoir
|
Posted - 2010.02.28 14:35:00 -
[469]
And for me ? :) are you agree for me ?
|
Chris Libby
Gallente Heavy Industries
|
Posted - 2010.03.01 16:09:00 -
[470]
I've recently switch from a WAMP server to ubuntu and reinstalled the latest version of yapeal. I keep getting the following error when running the program for the first time:
PHP Fatal error: Call to private method YapealDBConnection::getOptionalColumns() from context 'Sections' in /home/chris/Yapeal/class/util/Sections.php on line 80
Any ideas? Thanks - Chris He's dead Jim...grab his wallet. |
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.03.01 18:40:00 -
[471]
It's called developer forgetting about autobuilding and letting work in progress escape into trunk Having to change how I do things a bit and still haven't got the hang of it sorry about that. I'll have a fixed for that and a few other bugs that have come to light probably later today.
I'm also looking at making a change to utilRegisteredUser to bring it more in line with the other utilRegistered* tables. Going to add activeAPI column for account section APIs. Currently that only the '/account/Characters.xml.aspx' API but if CCP decided to add any others it will become more useful in the future. The good thing about this change is it lets you now enable/disable that API without having to do the some for the user, chars, and, corps like now which should be a good thing.
Look for some more changes to make the new utility classes in class/util/ more useful for application developers as I'm changing Yapeal to use them and they mature. Any suggestions on them or other 'helper' type functions that would make your life as application developers easier I'd like to hear. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Naja Ashei
|
Posted - 2010.03.01 20:24:00 -
[472]
Edited by: Naja Ashei on 01/03/2010 20:28:42
Originally by: Dragonaire Naja Ashei - Ok that would explain the issue you were having. As I remember MySQL says using '_' is bad idea anyway in DB or table names but I will say I've done it too and then changed them because of all the problems they cause You could escape it yourself and it would work right since the installer will pass it directly to MySQL.
I tried that when I discovered the issue, and it actually doesn't work either. The escape makes the permission test work, but then when it tries to fill the database with tables, no errors are reported, but no tables get created either. Note that this is the same thing I see if I just try to have it make a database using an _. No DB/etc end up created.
I finally ended up installing linux/etc on a spare box at home, installing the software, dumping the resulting database, editing the values to match what the hosting provider demands, then loaded the database on the remote end to make it work.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.03.01 21:15:00 -
[473]
I'm glad to hear you found a work around but hopefully you'll only need it temporary.
Ok from what you're saying it looks like something about how I'm building queries in the installer scripts is different than in the rest Yapeal. I'll look into it some more and see if I can figure out why that happens. Probably some missing escaping in the installer scripts some where though I don't remember doing any escaping on the table prefixes in either. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Ursulen Kein
|
Posted - 2010.03.02 20:48:00 -
[474]
Ok, well please answer me if you are agree to help me, i hope it's an honnest offer so, just say if it's ok or not.
Best R.
Orxa
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.03.02 22:10:00 -
[475]
Sorry I didn't see you're post above seems it got missing while I was making my own post I have not a clue about Out of Eve as I've never more than glanced at it's main page.
I'd say you should use POS tracker for your POS stuff as it's been around for a while and works well.
For tracking your BPO research etc. I'm not really sure what to use for that but there's probably a few tools but all the ones I know of you can't install on your own site or are desktop tools.
As far as having someone do this stuff for you I'm not really the person for that since I've never worked with any of them. I know Yapeal which IMHO is a really nice API library and I'd be able to help you with it but what you're wanting is not something I do and you'll probably do better with your own thread find someone to help you then in this thread. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Cory Sopapilla
Minmatar Kiroshi Group
|
Posted - 2010.03.05 00:36:00 -
[476]
Edited by: Cory Sopapilla on 05/03/2010 00:36:42 I've tried repeatedly to get it to put in my user API stuff in the test section of the new installer. It gets to the point where I get to choose 1 of the 3 characters and starts installing but ends up having errors when trying to insert the actual user data.
Do you have anything available on just manually filling in user information on the activeAPI field? I remember it being a bunch of space separated fields before I reformatted :(
Oh *edit* Fedora Core 12 64-bit
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.03.05 02:55:00 -
[477]
Quote: *edit2* exclamation points in the DB passwords need to be in quotes in the yapeal.ini file.
It should be quoting it and most of the others as well.
Have a look in cache/ for the cached *.sql files you should be able to run them manually. If it's failing before creating them then you can try creating the DB and tables by running install/createMySQLDatabase.php and install/createMySQLTables.php as needed from command-line. Once you have them you can try the addTest*.php files or just adding the info to the tables yourself. You'll find the list of APIs in the activeAPI column from utilSections table.
Hope that helps and I'll be looking into adding some more quoting for the command line parameters used in the installer to keep it from failing to start with. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Cory Sopapilla
Minmatar Kiroshi Group
|
Posted - 2010.03.05 21:37:00 -
[478]
Edited by: Cory Sopapilla on 05/03/2010 21:45:51 Edited by: Cory Sopapilla on 05/03/2010 21:37:50 Thanks for the reply. I think it's working but will need to make sure I got all of the tables during the install when I get home. I don't see anything for mapJumps, mapKills, Soverignty, etc and it's listed as working on the wiki. If they aren't just lemme know and I'll stop looking ;) Linkage
charResearch has nothing higher than 99.99 per day. I'll make sure that's not just something weird in the way it's being returned or a max value that needs to be increased later as well.
As always, thanks a ton for this utility. It's a major timesaver and very appreciated :)
|
Johnathan Roark
Caldari Quantum Industries BricK sQuAD.
|
Posted - 2010.03.06 00:08:00 -
[479]
Originally by: Cory Sopapilla I don't see anything for mapJumps, mapKills, Soverignty, etc and it's listed as working on the wiki.
They should be working, at least I know sov is. I'm guessing you have it turned off somewhere.
POS-Tracker 3.0 Hosting |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.03.06 01:01:00 -
[480]
Quote: charResearch has nothing higher than 99.99 per day. I'll make sure that's not just something weird in the way it's being returned or a max value that needs to be increased later as well.
Column has been expanded so it can go up to 999.99 which should be enough
Quoting in the installer has been changed which should help with non-alphanumeric passwords, etc.
-- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.03.13 08:57:00 -
[481]
Ok thought it was time for a little update on stuff I've been working on. I'm currently still working on some cleanup on caching code and that's probably going to lead to some changes in the API fetching code as well. I'm try to go a bit slower on this so as to make sure not to break stuff in the process (Yes I'm using a branch this time ) Something else I've been working on is cleaning up, adding to, and streamlining the new build stuff as I've gotten to know more about how Xinc and Phing work. Part of that has lead to having them build the Yapeal developer documentation also so it stays more up to date with the current revision. I've also changed it from being stored in docs/ directory where it had to be manually updated to being available as downloads in html and pdf formats. These are mostly useful for people working on making changes to Yapeal itself but application developers may find some of the information useful too. Now that I've brought up the subject of documentation as most of you are aware there isn't much and what does exist needs some serious help. I've tried to write some docs but I've been finding it very hard write any that is really useful for someone try to develop an application and integrate Yapeal into it or build something around it depending on how you look view what you're doing One thing that makes it hard for me is since I do know every line of code and how everything works it's hard for me to see Yapeal as an outsider would and not knowing what it does or can do for them. So what I need is some help from those that have been using Yapeal to share some of their experiences, tips, examples, etc. Things I'd like to really hear about are things that caused the most 'head scratching' when starting to use it.
revision 1024 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Linaeon
|
Posted - 2010.03.14 05:43:00 -
[482]
Something i dont understand here ::
theres many table is not d/l it is : accountCharacters charAccountBalances etc etc
and i have upload my log here please take a look is that anything wrong ??
http://eve-files.com/dl/218380
ps. permission denied already settle.
Thanks
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.03.14 06:13:00 -
[483]
First thanks for trying Yapeal. It looks like you're using an older version so first thing would be to update to the latest version 1024. Try using the installer from downloads if you can and select 'advanced' install which will have a few more pages to go through but most should have good defaults already just make sure when you get to the section part to make sure everything is on that you want. (accountCharacters will need account section and Characters API on). I've change the utilRegisteredUser table to reflect that the user has to be active to get those APIs I wrote about that change in my post 471 Hopefully I've covered enough so you can fix your problems but if not let me know. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.03.16 01:42:00 -
[484]
Ok I finally decided to tag revision 1024 as version 1.0.0 Beta.
What does this mean? It doesn't really change anything but it does mean that as a developer I believe it's mostly complete in what it does and has no major bugs anymore. You also notice when you look at download in the Summary it now says '***Beta*** ...' instead of '***Pre-Beta*** ...'
Is development stopping? No, but since it is mostly complete large scale changes to how it works or is used shouldn't happen for a while anyway (At least for a couple weeks to a month). Are you going to start on version 2.0? Not really Yapeal will keep evolving much as it has and maybe at some point it'll make it to what could be call 'stable' and at that point I may decided to call it 2.0.
So what's being worked on now in Yapeal? Everything but main focus has shifted to cleaning up some of the code, looking at improving the installer, and maybe adding a couple more of the APIs. I've also been looking at ways to add a remote installer for people that don't have shell access with their ISPs but it hasn't even got to the testing stage just been looking at how others have try solving the issue.
Think that covers everything for now.
revision 1027 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Tor Azgard
|
Posted - 2010.03.30 08:07:00 -
[485]
Edited by: Tor Azgard on 30/03/2010 08:08:31 "Warning: The "yapeal" database exist but the user root does not have the required privileges to use it"
I also did a GRANT ALL PRIVILEGES ON yapeal.* TO root @'%' IDENTIFIED BY '**********'; which gave me a: Query OK, 0 rows affected (1.35 sec)
However, it still doesnt work.
When I removed the database yapeal, it worked. But then it couldnt insert any tables to it.. mainly because it dosent exist anymore, since I removed it. bug?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.03.30 15:48:00 -
[486]
Try looking at the comments from issue 43 as the first couple apply even though you may not be try to use a remote DB server. I also believe there was someone else having similar problems that posted to this thread not long ago and I made some suggests for things to look at then too. You'll what to look over the last couple pages to find it. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Johnathan Walker
Caldari Frontier Elements
|
Posted - 2010.03.30 17:43:00 -
[487]
Hi Dragonaire,
After reviewing the data included in my post regarding excel, thought I'd give Yapeal a try... however:
Quote: #!/usr/bin/php Notice: Yapeal version 1031 (beta) 2010-03-18 20:28:57 in /home/masqsor1/public_html/fvbe/yapeal/inc/common_backend.php on line 80 Fatal error: The required configuration file is missing in /home/masqsor1/public_html/fvbe/yapeal/inc/common_backend.php on line 109
Thoughts? I put in the username, databasename and password for the database I'm looking at using (it's empty at the moment)... Was I not supposed to use the example ini and rename to yapeal.ini when finished? Warmly, "The Bear" JW
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.03.30 17:57:00 -
[488]
Just an idea try the installer from download for windows and it should make the ini file for you and help you by make sure everything is set right and working. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Johnathan Walker
Caldari Frontier Elements
|
Posted - 2010.03.30 18:20:00 -
[489]
Originally by: Dragonaire Just an idea try the installer from download for windows and it should make the ini file for you and help you by make sure everything is set right and working.
Sounds good! Dumb question though... how does one go about running an EXE on a shared host? Keeps telling me to download the file if I click on it, so I know there's something I'm clueless about. Warmly, "The Bear" JW
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.03.30 22:48:00 -
[490]
If you have a shared windows host you are probably out of luck except if they give you remote desktop access (unlikely). If you're host is Linux on the other hand you can grab one of the Linux installer and use SSH connection to install it. If you have an old style host that thinks not giving you SSH access makes their servers more secure you'll have to follow instructions from either this thread or in some of the closed issues on the web site where I talk about how you can do a local install on any platform and make a few minor changes that depend how closely your local machine is to the configuration on the remote one.
On another matter for those of you that haven't been to the project web site in last couple of days or just didn't notice while you were there I've decided to start a new blog for Yapeal. I've named it Peeling Yapeal. I hope to cover things with it that people will find interesting and that I felt weren't being or couldn't be cover by this thread, in issues, or the Wiki from the project site either. I've written a couple posts already include the first couple from a series that will hopefully give some insight into how Yapeal works and some change that are coming. They probably will also give some insight into the process I go through when deciding on changes during development for Yapeal.
I'd like to invite anyone that has ideas for things you think are missing or you feel need to be cover but this thread, the wiki or issues just didn't feel like the right place to bring it up in the past to make comments on the blog and we'll see what I can do to address them through it. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Johnathan Walker
Caldari Frontier Elements
|
Posted - 2010.03.31 00:58:00 -
[491]
Originally by: Dragonaire If you're host is Linux on the other hand you can grab one of the Linux installer and use SSH connection to install it.
I'm in luck; I do have SSH access. Thanks Dragonaire! :) Warmly, "The Bear" JW
|
Qoi
New Eden Warriors
|
Posted - 2010.03.31 20:20:00 -
[492]
Hey Dragonaire, thanks for your great library (I've been using it for quite some time now). I like to keep my yapeal up to date with svn (as i think that's way easier than any installer/whatever stuff), however there are some files that are under version control but keep getting changed by the library itself, namely: M log/yapeal_warning.log M log/yapeal_strict.log M log/yapeal_error.log M log/yapeal_trace.log M log/yapeal_notice.log
which makes it very impractical to use svn diff on my working copy. I tried svn:ignore and deleting them (which sort of fixes the issue), but could you perhaps remove them from version control? If anyone else tries to commit something, it's not a good idea to have his logs with all the API Keys under version control, i think ;)
Keep on the great work, i'll read your blog now
|
Johnathan Roark
Caldari The Graduates Morsus Mihi
|
Posted - 2010.03.31 22:12:00 -
[493]
Originally by: Qoi Hey Dragonaire, thanks for your great library (I've been using it for quite some time now). I like to keep my yapeal up to date with svn (as i think that's way easier than any installer/whatever stuff), however there are some files that are under version control but keep getting changed by the library itself, namely: M log/yapeal_warning.log M log/yapeal_strict.log M log/yapeal_error.log M log/yapeal_trace.log M log/yapeal_notice.log
which makes it very impractical to use svn diff on my working copy. I tried svn:ignore and deleting them (which sort of fixes the issue), but could you perhaps remove them from version control? If anyone else tries to commit something, it's not a good idea to have his logs with all the API Keys under version control, i think ;)
Keep on the great work, i'll read your blog now
I'm guessing your actually using a working copy to run your yapeal install? Those files should only change when a branch is merged into the trunk. What I suggest doing is keeping two copies, one for syncing with svn, another for live. Then export the diff files out and update your copy that way. Something else to watch for is database updates. SVN wont update your database.
POS-Tracker 3.0 Hosting |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.03.31 23:04:00 -
[494]
Qoi - Glad to hear you like and have been using it for a while. I'll just let you know how I work with Yapeal and maybe you can try doing something similar and they won't cause you any problems anymore. I have a working copy in a location where I do my edits then when I wish to try it out I do an export: svn export --force /my/wc/ /my/test/location/ Doing it that way allows helps insure I don't end up with any of my passwords or logs in the commit like has been know to happen a few times in the past you'll notice it doesn't overwrite my config/yapeal.ini and does overwrite the log/yapeal_*.log files saving me doing it manually. The only time I need to do any extra work would be when I delete or move files around in the SVN. That isn't hard either as a simple rm -R /my/test/location/*.php followed by an export cleans it up nicely for me One of the original reasons for including the log files was to have them there so you can insure they had the correct permissions before Yapeal looks at them and try to write to them. It use to check each file to insure they were writable but I think now it's been changed and just requires the directory be writable and may not check each file. One other reason was to insure the directory was created when using archives (zip, tar.gz, etc) as some of them will ignore any directory that is empty and not make them when you expand them. That was the reason for adding dummy.txt to all the cache/*/ directories you see as well So there's some background on why it was done like it is now.
Now back to things you can do, first you could use the export method I do and not run from you're WC which is not a good idea to start with BTW as you've seen it causes problems and yes I know some of the old documentation had an example doing that (I didn't write it) Another option is to use a different name for you log files by changing them in your config/yapeal.ini and you just end up with a couple extra empty unused log files
There one more option be it's more for me then you and that's to check if Yapeal still checks the permissions on all the log file directly or not. If it doesn't I could probably just add a dummy.txt file instead and not have the log files in the SVN any more. I'll just have to remember to clear them myself during testing which isn't a big deal as I have to do that now when testing the installer since it doesn't overwrite them if they already exist. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Qoi
New Eden Warriors
|
Posted - 2010.03.31 23:50:00 -
[495]
Edited by: Qoi on 31/03/2010 23:49:59 Uhm, i've worked with subversion quite some time now - thanks you for pointing out that there is an export subcommand It's really useful, now that i know that it exists
As i run yapeal with cron and i get emails every time it does any output, is there any way to supress this Notice:
Quote:
Notice: Yapeal version svnversion (beta) builddate in yapeal/inc/common_backend.php on line 80
Without changing the code (i always comment out that line, so i don't get hammered with emails). I didn't set E_NOTICE in the yapeal.ini log_level directive, changing error_reporting on the command line does nothing. Of course it's not a big deal, but if i overlook something then please give me a hint :)
Another thing i always have to change is the shebang line in revision.php ( #!/usr/bin/php ) - i think it's there by mistake (Line 43: "Only let this code be included or required not ran directly.") - and it adds a line of output which cron then happily emails to me.
I will from now on diff the latest changes (to look if i need some database updates) and then export, i think that's really a better solution, thanks for pointing that out.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.04.01 00:36:00 -
[496]
Ok now that you know about svn export I may have fixed Yapeal so you don't need it there are of course the other benefits still.
After looking at it I've decided I could remove the logs from the SVN and while I was at it I fixed revision.php as well. I thought that had already been done a while back when I noticed it be apparently it didn't get changed.
To also help with the extra emails you can try adding the follow line as the first one in your crontab: MAILTO="" That should silent any crontab emails in most Linux distros. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Johnathan Roark
Caldari The Graduates Morsus Mihi
|
Posted - 2010.04.01 01:19:00 -
[497]
Originally by: Dragonaire Ok now that you know about svn export I may have fixed Yapeal so you don't need it there are of course the other benefits still.
After looking at it I've decided I could remove the logs from the SVN and while I was at it I fixed revision.php as well. I thought that had already been done a while back when I noticed it be apparently it didn't get changed.
To also help with the extra emails you can try adding the follow line as the first one in your crontab: MAILTO="" That should silent any crontab emails in most Linux distros.
I use
*/60 * * * * /path/to/yapeal/yapeal.php &> /dev/null directs any output to the NULL device :)
POS-Tracker 3.0 Hosting |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.04.05 01:15:00 -
[498]
Thought I'd let everyone know I've fixed a few minor bugs lately which most people wouldn't notice but became KOS once I found them like they all should
For those of you that missed it I did an interview for KaarBaak about Yapeal which you can find at http://evemetagaming.blogspot.com/. She's done a couple others now which I found interesting to read myself about some other projects/applications that people are working on.
I'll be finishing off my series from the PeelingYapeal blog soon as well but in writing it it got me to thinking about some things and I decided to try out a few ideas to make Yapeal work better. Most of them are about memory usage which is of course what the posts were about but I've also been looking at making Yapeal scale better for people that want to use it with say a few hundreds or thousands of accounts ;)
That's it for now.
Revision 1043 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Gracelia
Caldari
|
Posted - 2010.04.06 02:41:00 -
[499]
Installs just fine and got set up with the database. However when I try to run yapeal.php from the command line I get this
"Notice: Yapeal version 1043 (beta) 2010-04-05 00:38:06 in /home/matt/Yapeal/inc/common_backend.php on line 80" |
Johnathan Roark
Caldari The Graduates Morsus Mihi
|
Posted - 2010.04.06 02:58:00 -
[500]
Originally by: Gracelia Installs just fine and got set up with the database. However when I try to run yapeal.php from the command line I get this
"Notice: Yapeal version 1043 (beta) 2010-04-05 00:38:06 in /home/matt/Yapeal/inc/common_backend.php on line 80"
That's normal, ignore it.
POS-Tracker 3.0 Hosting |
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.04.06 04:09:00 -
[501]
I found the old post I did about this a long time ago and decided to update it a little and make it into wiki page. http://code.google.com/p/yapeal/wiki/UnderstandingErrorLogs -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Bubba XXX
|
Posted - 2010.04.15 00:23:00 -
[502]
I run an older version of Yapeal on MOSSO, which means only FTP Access. About once a year, I decide to update yapeal to the latest version, but I can never find instructions on how to do so. Lots of installers. Is there a document on how to update Yapeal manually via FTP only access that I've missed? If not, could we get one?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.04.15 06:46:00 -
[503]
Bubba XXX - It not going to be easy if you are using a version that old. best way to start would be to export your data from your server to a local machine. Install Yapeal on the local machine with an installer and if you're lucky the database will upgrade correctly for you. Once you're sure that has worked you can transfer Yapeal over ftp to your server and update the database there from your local machine using a backup from it. The more similar the local machine is to your server the more likely it is it'll all work. Make sure you use 'advanced' install so you get a chance to make changes to all the settings.
Hopefully that helps and I would suggest you upgrade more often as there are often many changes to Yapeal both to fix bugs and added features. The older the version the harder it'll always be to update. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.01 04:03:00 -
[504]
Ok thought it was time to give everyone a little update. I've started a new job so that's been taking up more of my time lately but I've been working on converting all the APIs over to using XMLReader as I outlined in my blog posts. I believe all the APIs that Yapeal had before have been converted and are working now plus I've add a few new ones along the way too I'm having some issues right now with downloads at GoogleCode but I hope that will be fixed soon and I'll be able to upload some test installers and other files for people to start trying out. Some of the changes I've decided/had to make will require some manual changes to the database tables in util. This should have little impact on most users that have been using the newer class/util/*.php files and the classes they contain to interact with the tables. I'll give more information once I've done a little more testing and the download issues are solved. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.07 14:31:00 -
[505]
Ok I put the Alpha test version of the installers that use XMLReader up in downloads I've not had a chance to test them so BACKUP YOUR DATABASE and current install of Yapeal before trying it. You'll need to delete your existing tables or make a new database to try it out as I haven't upload the manual conversion SQL you'd need to update existing one. Let me know if there's any problems with it and yes this is **ALPHAware** -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Gouverneur
|
Posted - 2010.05.13 18:39:00 -
[506]
Hi, so, I've just uploaded the Contents of Yapeal.tar.bz2 to my Site(there is no CLI-Binary available afaik, CGI only). Updated the ini-File and updated the Files because my Hoster requires .php5-Ending for PHP5 Files.
yapeal.php5 runs without errors, but the DB is still empty. createMySQLDatabase.php5 seems to miss Arguments and is trying to create error-log:
Quote: Warning: fwrite(): supplied argument is not a valid stream resource in /kunden/aocc.de/webseiten/gouv/eve/yapeal/install/createMySQLDatabase.php5 on line 53
Warning: fwrite(): supplied argument is not a valid stream resource in /kunden/aocc.de/webseiten/gouv/eve/yapeal/install/createMySQLDatabase.php5 on line 54
Well, how am I supposed to install Yapeal / create the DB-Tables without CLI? Did some search but didnt find anything usefull yet. Oh, I've got SSH-Access btw.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.14 01:01:00 -
[507]
The installer should work with CGI as well from SSH you just need to tell it where it is just like you would with CLI. You shouldn't need to change the suffix on the files either since you aren't running anything with the web server which is where that requirement usually comes from. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Gouverneur
|
Posted - 2010.05.14 05:37:00 -
[508]
Thanks for a Reply. I've made some Progress and got another Problem here: Yapeal Installer doesnt accept my Path: /usr/local/bin/php.5 -c /usr/local/php5/php.ini Yes, it is the Path to the php5-Binary, but it throws out a zend-error if run without specifying alternate ini-path :/ Is there any way around this?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.14 07:04:00 -
[509]
You might look at the /tmp/bitrock*.log file and see if there's any more info on why it's failing on some systems it could be in /var/tmp/. I'd also try a few test from command line to make sure there aren't any other issues with PHP config. Some things to try.
/usr/local/bin/php.5 -v Check this really is PHP version 5.2.1 or greater.
/usr/local/bin/php.5 -m Make sure all the required extensions (modules) are included in PHP.
If it seems it's using a php.ini file that's wrong when entering the command to use try adding the extra parameter to yours to it. Example:
Where can the CLI version of PHP be found? [/usr/bin/php]: /usr/local/bin/php.5 -c /usr/local/php5/php.ini Since it'll use simple string append of the commands in the installer that should work without problems. You might also find out where the CGI is putting it's log files as it might shed some light on why it's failing as well. If you need some help understanding any of the log files from anything you can E-mail them to me at my G-mail. You can find it (figure it out) from project owner. Hopefully you'll be able to figure out from doing some of the above tests what is causing it to fail. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Gouverneur
|
Posted - 2010.05.14 14:07:00 -
[510]
Originally by: Dragonaire /tmp/bitrock*.log file
I'm not allowed to list in /tmp and have no access to /var/
Quote: /usr/local/bin/php.5 -v
Yeah, I tried it before, it works very well - Version 5.2.11, Zend 2.2.0. All required Modules listed on the Projectpage are installed.
Quote:
/usr/local/bin/php.5 -c /usr/local/php5/php.ini
Installer doesnt accept that Line, because it's 'not a file'. It doesnt matter in my case anymore, I just need to launch Installer in another Directory.
I've experimented a bit and found out, that all the test*.php's in /tmp/Yapeal/install seem to work(no more 'abnormally exiting') after removing these Lines: if (basename(__FILE__) != basename($_SERVER['PHP_SELF'])) { $mess = 'Including of ' . $argv[0] . ' is not allowed' . PHP_EOL; fwrite(STDERR, $mess); fwrite(STDOUT, 'error'); exit(1); }; I've edited the Files in a second ssh-Window while Installer was waiting for Input in first Window.
But I've got tired of editing at Error running /usr/local/bin/php.5 -f "/tmp/Yapeal/install/getCorporationOptions.php" "/tmp/Yapeal/characters.xml" : child process exited abnormally . Well, Is there anything wrong with those lines I removed? Guess I'm missing some Privileges again, huh?
|
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.15 03:50:00 -
[511]
I'm surprised those lines caused you problems but they aren't really important they are just checking if the file is being ran directly or being included from another PHP file. My only concern is the same lines are used in many of the other files in Yapeal as well. Will probably need to figure out which line is causing the problem. If it's the 'if' there maybe ways to work around it but if it's the 'fwrite' it'll cause problems with all the logging and maybe some other places. Once you get it fully installed we'll see if you continue to have any problems -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Qoi
New Eden Warriors
|
Posted - 2010.05.15 13:34:00 -
[512]
Edited by: Qoi on 15/05/2010 13:34:35 Just wanted it to throw in here as i think most yapeal users are annoyed by it:
Originally by: Tyrannis Release Candidate Patch Notes Corporation & Alliance +API - journal walking now works for the corporate wallet journal
Keep up the good work o/
|
Eduardo'o
|
Posted - 2010.05.15 19:46:00 -
[513]
I want to try and install yapeal manually ..... but i cannot find where to start. I understand tehre is no real documentation, but is there any place indicating where to start?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.15 22:13:00 -
[514]
Eduardo'o - You can do it all manually but it's not easier or quick for sure. I'll go over some of the high points of what you'd need to do.
- Download one of the archives (*.zip, *.tar.bz)
- Make directory where you plan on instilling it and un-zip archive into it
- Update any/all paths from inc/common_paths.php for where you put Yapeal
- Copy config/yapeal-example.ini to config/yapeal.ini
- Edit config/yapeal.ini and add your settings using the comments from the file for reference
- Create MySQL database that matches your settings from config/yapeal.ini (This could be done before last step but this order is usually less error prone IMHO)
- Open up each of the install/*.xml files and decipher it manually and create all 70-80 database tables making sure to get the types, lengths, indexes, etc correct for each table
- Add any test users, characters, and/or corporations you need into the utilRegistered* database tables
- Hope you got everything right because if something is wrong on many of the steps above you might not even be lucky enough to get useful error message and it just fails silently
- Try it
- Figure out what steps I forgot to add to this list that keeps it from working or what typo etc you made
- Repeat the last two steps as many times as needed until it: Runs without errors and correctly gets all the data from the API servers for all APIs
If you can get it to work without doing the last step more than twice I'll turn the project over to you because I'm sure the project would be in much better hands with a 'guru' instead of me since if I tried it I probably wouldn't be successful If you can get it to work within 5 tries I'd like to invite you to become a developer and help me out If you think do the above is a great way to spend a day, week, or month of your time you probably should get some mental help but if you're interested I'm looking for some victims, uh I mean test subjects for some pre-Alpha code
Personally I'd start by contact my host tech support for help fixing whatever is keeping you from running the installer. IMHO if they can't help you with any issues or you can't figure it out yourself I'd find a new host because Yapeal doesn't have any requirements that they shouldn't be able to supply. You can also try use a local test server and install Yapeal there then copy stuff over to the remote one with all the database exports etc that will be needed. I've covered how to do that already in this thread several times so I wouldn't repeat it here but feel free to ask any questions you have if you run anything new or just can't figure something out and either I or someone else on the thread will be glad to help. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Eduardo'o
|
Posted - 2010.05.16 06:30:00 -
[515]
Nuf said, the installer it will be then
Is there anyway to run the installer but by making the database manually?
Ed
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.16 12:48:00 -
[516]
You can create the database without problems just make sure to give the name to the installer and the user you use for DB has all the privileges needed for creating the tables, etc. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
BanditFly9
|
Posted - 2010.05.18 14:35:00 -
[517]
Thank you for all of the information. I will be attempting to implement this once I setup my server box.
|
Loki L'Odin
Gallente Core Impulse
|
Posted - 2010.05.22 13:52:00 -
[518]
I've downloaded the installer...
Double click it, splash screen appears...but then disappears and nothing happens?
Running Windows 7...any ideas what's wrong?
|
Gouverneur
|
Posted - 2010.05.22 14:49:00 -
[519]
My Problem was fwrite(STDOUT/STDERR after all. CGI PHP doesnt open SDTOUT/STDERR Handles automatically. So something like Quote: $stdout = fopen('php://stdout', 'w'); $stderr = fopen('php://stderr', 'w');
must be added at the Beginning of the File and fwrite-Lines must be updated accordingly to make it work on cgi-php. Well at least testForPHPVersion.php works for me, after updating it that way.
Am I the only one having these Problems installing with cgi-php or did nobody ever tried it yet?
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.22 20:30:00 -
[520]
Ok I've been looking into the problems with PHP-CGI some more and seem to have a fix. I was 'ass-u-ming' that the switches I was passing and the ini overrides where changing more than they do about how it works I've now added lines to set the constants for STDIN, STDOUT, and STDERR if they aren't already set. I've updated trunk/ with the fixes and you can get the update installer from downloads now. Give it a try and see if it fixes the problems you've been having.
I'd like to get some feedback about the new APIs from everyone to see which ones they would like to see added to Yapeal first. You can read about what's being added in this dev blog post: http://www.eveonline.com/devblog.asp?a=blog&bid=757 I'm also trying to decide if I will add them to the existing trunk code or just work on them in the new XMLReader code and wait until moving it to trunk/ before really making them available. Doing the latter would probably give some time for CCP to work out any bugs in them first and may work better but does mean they wouldn't be available from Yapeal for a couple weeks or more for everyone to work on their applications with. I wouldn't be as concerned with that if I'd seen more people had tried the Alpha builds I uploaded and had some feedback on any bugs with them.
revision 1072 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Gouverneur
|
Posted - 2010.05.22 22:16:00 -
[521]
Thanks for the Update. I've just tried the fresh Installer. fwrite-Lines seem to work, getting another error now:
Quote: Warning: Error running /usr/local/bin/php.5 -f '/tmp/Yapeal/install/testForPHPVersion.php' : Including of /tmp/Yapeal/install/testForPHPVersion.php is not allowed
It's kinda my fault, had the same error while trying to 'fix' the fwrite-lines, but commented the code-block out and totally forgot about it.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.23 00:28:00 -
[522]
Really beginning to dislike PHP_CGI -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.23 22:54:00 -
[523]
Ok I've been digging into the changes needed to make Yapeal work with PHP_CGI and I am sorry to say at least in the case of the installer it's not possible You can have a look at this page to get a little more detail: http://www.php.net/manual/en/features.commandline.differences.php
Why it wouldn't work is found in the first note. To sum it up by the time you can turn register_argc_argv on PHP has already processed the command line and put anything you've passed it into $_GET and $_REQUEST and wouldn't populate $argc or $argv with the values The good news is once it's installed Yapeal doesn't normal use any parameters and PHP-CGI works without any problems. I'll continue to look for workarounds but since Yapeal was made for the command-line it doesn't make sense to spend a lot of development time on it right now. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Tonto Auri
Vhero' Multipurpose Corp
|
Posted - 2010.05.23 23:37:00 -
[524]
It's a nonissue, in fact, you should not attempt to run PHP scripts intended for console (php-cli) through php-cgi SAPI. -- Thanks CCP for cu |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.24 00:21:00 -
[525]
Only reason I try to support it where I can is some host services don't allow access to CLI version and I do want to make it possible to use it everywhere when I can figure out how. Right now Yapeal itself seems to work fine it's just some of the scripts used during install that cause issues. The normal work around for installer issues has always been to install Yapeal on a local test server then copy the configuration over to remote production server. Many times this can even work with different OSes on each system with a little care.
Something I've been try out is VMWare player and stuff from BitNami. For anyone that only have a Windows machine locally it looks like it may be an option when you have a Linux/Unix host and stuff from Windows doesn't seem to work. I've also been looking at some cloud computing stuff to see if Yapeal is going to be compatible for anyone that is outgrowing what a single server can handle. So far I haven't found any show stoppers but I wouldn't know until I actually take some time and spend some RL money to try it -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Gouverneur
|
Posted - 2010.05.24 01:59:00 -
[526]
Originally by: Tonto Auri It's a nonissue, in fact, you should not attempt to run PHP scripts intended for console (php-cli) through php-cgi SAPI.
Well, I guess the Requirements-List should be updated then. There is no Hint about the Project being intended for CLI yet.
@Dragonaire: Thanks for trying.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.24 03:43:00 -
[527]
Actually the project website use to say something about Yapeal being for CLI only but was removed after some changes where made and it seemed to work without problems. I think once you actual get it installed it'll run without problems but the installer highlights where the CLI and CGI versions are made to be use for different applications. If they weren't they wouldn't need to have two different versions after all -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Mi'Rini Nemo
|
Posted - 2010.05.27 08:46:00 -
[528]
Hi
First of all congratulations for your tool! But....
I am having a problem with the windows installer. I cannot get past the database Setup section... As soon as I click on the next button to install the database I get an error. A new window appears with the message "The following Error occured:" and... that's it! Nothing after that. Any ideas?
I really want to start using it so pls help!
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.27 14:05:00 -
[529]
Mi'Rini Nemo - I'd suggest looking back a couple pages in this thread where the last person was asking the same questions or in some of the issues on the project site ( You may need to look at all issues including closed ones) if you still are having problems then I'll try to help but right now with all the new API changes I'm going to be busy updating Yapeal for next few days.
For those wondering yes they made a few changes to some of the older APIs that have broke them so I'll be working on them and hope to have a fix out this weekend or soon if I can but been busy at work doing some certifications so a bit worn out by end of day and just haven't been feeling like working on Yapeal as much in the evenings lately -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Gouverneur
|
Posted - 2010.05.27 20:55:00 -
[530]
Yeah, finally got it up and running(didnt check everything, but looks good so far) with my picky CGI-PHP-Binary :D Installed on local vmware lamp machine, edited a few Paths and copied over to the 'real' server.
However, one thing was kinda strange: I had to create the (empty) Database manually after the Mysql Privileges check had passed in Installer. I've tried to install into empty DB first, but got the Privileges-Error although I've had root logged in(with all Privileges activated of course). Deleted the DB and Installer failed to create the DB-Tables at the end, because the DB itself wasn't created at that point.
I suspect testForMySQLDatabasePrivs.php was somehow responsible, here is its log-entry:
Quote: Script exit code: 0
Script output: false
Script stderr: root lacks the needed privileges: alter, create, delete, drop, index, insert, select, update on the db49430_1 database
|
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.28 07:22:00 -
[531]
Ok to update the charMailMessages table all current users will need to use the following SQL before updating Yapeal with the installer. CCP renamed "toListIDs" to "toListID" and changed it from being a list to a single ID which is a type of change the SQL updater in the installer doesn't handle well on it's own use the follow SQL:
alter table `charMailMessages` change column `toListIDs` `toListID` decimal(20,0) unsigned DEFAULT 0 You may need to add the database name if you don't have it selected already by prefixing the table name with it i.e. : ... table `MyDBName`.`charMailMessages` change ...
You may notice some additional tables being added for some of the new APIs that were included in Tyrannis but the classes aren't done so none of them will be active until later.
revision 1073 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Mi'Rini Nemo
|
Posted - 2010.05.28 08:12:00 -
[532]
Originally by: Dragonaire Mi'Rini Nemo - I'd suggest looking back a couple pages in this thread where the last person was asking the same questions or in some of the issues on the project site ( You may need to look at all issues including closed ones) if you still are having problems then I'll try to help but right now with all the new API changes I'm going to be busy updating Yapeal for next few days.
For those wondering yes they made a few changes to some of the older APIs that have broke them so I'll be working on them and hope to have a fix out this weekend or soon if I can but been busy at work doing some certifications so a bit worn out by end of day and just haven't been feeling like working on Yapeal as much in the evenings lately
Prepare for some feedback...! My os : Windows 7 64-bit local : WAMP server PHP VERSION : 5.3.0 Downloaded and try both the beta and alpha installers from your download list. NOTE: There are three files in the PHP folder in wamp ( php.exe, php-win.exe & php-cgi.exe ) BETA Installer VERSION: Run it as admin. CLI selection: php.exe What happened: Passed the CLI selection. Put the required database info. Triple-checked they are right and tha my user has the minimum required privileges (and/or more privileges than required). Click "Next". Pops-up error message "User doesn't have the required privileges".
CLI selection: php-win.exe What happened: Passed the CLI selection. Put the required database info. Triple-checked they are right and tha my user has the minimum required privileges (and/or more privileges than required). Click "Next". Pops-up error message "User doesn't have the required privileges". [/left]
CLI selection: php-cgi.exe What happened: Did not pass the cli selection. Error message "Error running C:\wamp\bin\php\php5.3.0\php-cgi.exe -f "P:/users/programmer/AppData/Local/Temp/Yapeal/install/testForPHPVersion.php": Including of is not allowed ".
ALPHA Installer VERSION: Run it as admin.
CLI selection: php.exe What happened: Did not pass the CLI selection. Error "The following required PHP extensions are not active: hash"
CLI selection: php-win.exe What happened: Did not pass the CLI selection. Error "The following required PHP extensions are not active: hash"
CLI selection: php-cgi.exe What happened: Passed the cli selection. Passed the Database check. Installed properly with default options selected. After the installation checked the database to check the new tables and their structure but the database was empty. Uninstalled yapeal and installed again with same database info but yet again the tables weren't there".
Is available a web installer at least?
[/left]
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.28 13:58:00 -
[533]
Quote: Is available a web installer at least?
No and no current plans to add one since Yapeal is a command line library that isn't really made to be ran with web server it doesn't make sense to have one. Yapeal use to use one but since the person that wrote it has moved on from Eve and it was start to show its limitations I converted to the current installer. I have been thinking about a remote installer which would use a web-base front end system but it's not something I've had time to figure out yet.
Quote: What happened: Did not pass the CLI selection. Error "The following required PHP extensions are not active: hash"
How about activating the required extension? It is probably there just not turned on in php.ini even though it's include be default since 5.1.something Don't ask me why they always seem to have all the extensions turned off by default in Windows builds
Quote: "User doesn't have the required privileges"
Make sure the user you are using has select for `information_schema`.`SCHEMA_PRIVILEGES` and what privileges are listed there for the user you are using. Often if you are using "root" user it's not listed because it is granted access in a different way during MySQL startup so try creating one just for Yapeal to use. For the example user used in Yapeal with default database setting it would look like this:
[code] +--------------------------+---------------+--------------+----------------+--------------+ | GRANTEE | TABLE_CATALOG | TABLE_SCHEMA | PRIVILEGE_TYPE | IS_GRANTABLE | +--------------------------+---------------+--------------+----------------+--------------+ | 'YapealUser'@'localhost' | NULL | yapeal | SELECT | NO | | 'YapealUser'@'localhost' | NULL | yapeal | INSERT | NO | | 'YapealUser'@'localhost' | NULL | yapeal | UPDATE | NO | | 'YapealUser'@'localhost' | NULL | yapeal | DELETE | NO | | 'YapealUser'@'localhost' | NULL | yapeal | CREATE | NO | | 'YapealUser'@'localhost' | NULL | yapeal | DROP | NO | | 'YapealUser'@'localhost' | NULL | yapeal | INDEX | NO | | 'YapealUser'@'localhost' | NULL | yapeal | ALTER | NO | +--------------------------+---------------+--------------+----------------+--------------+ [\code] If yours doesn't look something like that you'll need to change the privileges until it does.
Quote: *LAST EDIT* OK... Fixed the first problem the installer had ' "" ' in the fields so I removed them.
They are probably required where you removed them and are causing you some of your other problems but since it isn't clear which ones you remove I can't tell. I've had some escaping problems in the past so if you could clarify which ones you were having problems with I can maybe look into it and see if something got missed. Also try looking for a bitrock*.log file in your temp directory as it may have some additional detail on why stuff is failing. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Rottw Adleweh
|
Posted - 2010.05.28 14:37:00 -
[534]
@Dragonaire
I was wondering how hard it would be for me to switch my database backend to postgre. I know yapeal has been developed with mysql as the backend and I haven't really looked into the code to figure out how tied it is to mysql. Some tools you just need to configure to use another 'driver' to access another type of sql backend, I'm not sure how easy it would be with yapeal though.
Could you give me a guestimate on how much I have to change to port it to a postgre backend? (as in 'a hell of a lot' or 'just a few lines')
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.29 01:36:00 -
[535]
Rottw Adleweh - I would say converting the installer would be hard because of how it detects MySQL and the existing DB etc. but Yapeal itself could be converted with some work. Generally I've tried to use standard SQL and where I didn't I've try to isolate the MySQL only SQL into PHP methods/functions so they could be changed for other DBs. One reason for using ADOdb was to make converting it easier if I ever decided to do so. Contact me via my GMail from the project and I can discuss with you some details I don't want to bore everyone with in a forum post -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.29 20:23:00 -
[536]
Hi all I've been working on adding some of the new APIs to Yapeal and need a little help. Since my alliance/corp doesn't have our own Outpost (yet ) I need some help from someone that does. If someone would be kind enough to send me a copy of their /corp/OutpostList.xml.aspx and /corp/OutpostServiceDetail.xml.aspx with one or more outposts in it that would be extremely helpful. I will only be using it as a reference for typing and sizing columns for the database tables in Yapeal and I would not be sharing it with anyone (Not even corpmates) and if you want to obscure the ownerID, stationID, and/or standingOwnerID that is okay as I mostly have questions about some of the other stuff. If you can help out please E-Mail them to me at my G-Mail address from the project home page (project owner). I'm also be looking for someone that would have some time to do some alpha testing for the same APIs but that wouldn't require sending me the XML like above just a server where you can instill Yapeal and have command line access to look at log files and report any error to me via IM (preferred) or E-Mail.
Thanks for everyone's time and hopefully I'll get a response today and be done with test by tomorrow and at least have out an alpha build with the new APIs for people to do their own testing with. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Mi'Rini Nemo
|
Posted - 2010.05.30 17:38:00 -
[537]
Edited by: Mi''Rini Nemo on 30/05/2010 17:40:53
Originally by: Dragonaire
Quote: *LAST EDIT* OK... Fixed the first problem the installer had ' "" ' in the fields so I removed them.
They are probably required where you removed them and are causing you some of your other problems but since it isn't clear which ones you remove I can't tell. I've had some escaping problems in the past so if you could clarify which ones you were having problems with I can maybe look into it and see if something got missed. Also try looking for a bitrock*.log file in your temp directory as it may have some additional detail on why stuff is failing.
I finally managed to install Yapeal, on another PC YAYYYYYYYYY!!!!!!!
Now about your question... I removed the ' " " ' from all the database configuration fields. They were interfering with the normal installation, clicking next a pop up window appeared with the message " The following error occured: ". Removing those I managed to finish the installation. Probably an escaping error?
Note: I want to add that the ' "" ' were the only problem, nothing else happened, a fact tha leads to the conclusion that there was some sort of problem with my previous system.
Now how can I retrieve the data from the database, is there something ready or through custom code? The xml files can be/are stored to a folder? How can I change my char's credential, add new or edit them? Which file should be set for a cron job?
Sorry about my questions!
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.05.30 18:55:00 -
[538]
Quote: Now how can I retrieve the data from the database, is there something ready or through custom code?
That would be called your application The More detailed explanation section of the main project page details what it does for you everything else is up to you. You can just forget where the data is coming from and make your application knowing the tables will always have the most up to date data available. The idea behind the design of Yapeal was to let anyone that knows how to make a LAMP web application do so. It has been expanded to include WAMP as well or anything else that can work with a MySQL database.
Quote: How can I change my char's credential, add new or edit them?
Have a look through the project wiki where the http://code.google.com/p/yapeal/wiki/UsingClassUtilClasses and the http://code.google.com/p/yapeal/wiki/UtilDatabaseTableDependences pages will probably but the most useful in understanding how to add additional chars/corps, etc.
Quote: Which file should be set for a cron job?
Have a look at the http://code.google.com/p/yapeal/wiki/CrontabSetup for help with setting up crontab.
While you're at it you'll probably want to look through some of the other wiki pages and maybe some of the issues include closed ones as they have some information that you may find help during any troubleshooting you may need to do.
BTW the problem you may have been having with it not finding 'hash' extension was probably do to a typo on my part. I include a space in front of it inside the quotes that didn't get caught until I was testing the installer locally yesterday. I'll be releasing an updated alpha build once I've smashed a few other bugs I've found that are mostly in the new APIs I've been trying to add from Tyrannis. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Bai Guang
Caldari Edge Of Infinity Honourable Templum of Alcedonia
|
Posted - 2010.06.01 07:52:00 -
[539]
Installer is failing for me. Im running in a hosted linux environment where I have SSH access to a jailed account. The spot that it is failing is the part where it checks permissions for the database user. It says the user does not have the proper permissions but a SHOW GRANTS FOR CURRENT_USER(); reports back that the user has all privileges on the database.
I've triple checked to make sure that Im using the proper database, database user, and password, so other than that, I don't know why its failing.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.06.01 08:50:00 -
[540]
Bai Guang - Try looking at the second half of post 533 and check your access that way. I.E.
select * from `information_schema`.`SCHEMA_PRIVILEGES` where GRANTEE like "%YapealUser%" and TABLE_SCHEMA="yapeal"; That gives me this on a test server: [code] +--------------------------+---------------+--------------+----------------+--------------+ | GRANTEE | TABLE_CATALOG | TABLE_SCHEMA | PRIVILEGE_TYPE | IS_GRANTABLE | +--------------------------+---------------+--------------+----------------+--------------+ | 'YapealUser'@'localhost' | NULL | yapeal | SELECT | NO | | 'YapealUser'@'localhost' | NULL | yapeal | INSERT | NO | | 'YapealUser'@'localhost' | NULL | yapeal | UPDATE | NO | | 'YapealUser'@'localhost' | NULL | yapeal | DELETE | NO | | 'YapealUser'@'localhost' | NULL | yapeal | CREATE | NO | | 'YapealUser'@'localhost' | NULL | yapeal | DROP | NO | | 'YapealUser'@'localhost' | NULL | yapeal | INDEX | NO | | 'YapealUser'@'localhost' | NULL | yapeal | ALTER | NO | +--------------------------+---------------+--------------+----------------+--------------+ 8 rows in set (0.00 sec) [\code] -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.06.01 16:57:00 -
[541]
Just a quick update for anyone that was having problems with the Alpha release not finding extensions I've released new fixed version. It also has some of the new APIs added to it but most of them you'll have to manually activate as I didn't update the instiller yet to let you select them. Once I've got them all working I plan to look into how the installer comes up with the list and see if I can't make it smarter and just maybe do something about the formating while I'm at it -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.06.03 00:32:00 -
[542]
Quick update I've added outpost stuff to the alpha builds in downloads you'll have to activate them manually in the util* tables but they are ready to have someone try them out and let me know about any problems. I'm now looking into updating installer but it may be a while before I have a update for it. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
KtoJest
Minmatar Silkroad Partners
|
Posted - 2010.06.04 10:21:00 -
[543]
here is a weird one.
yapeal has stopped collecting data as of 30.05.2010 06:00
it had been running flawlessly before then.
/cache/log has nothing in it.
system log shows cron executing yapeal.php i've run it manually to no avail
anyone see something like this before?
Caveat Emptor -a trader's blog |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.06.05 04:02:00 -
[544]
There were some changes done to several of the APIs for Tyrannis that will probably break older versions. Can I get some more information about which APIs you are using and which version of Yapeal etc? -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
KtoJest
Minmatar Silkroad Partners
|
Posted - 2010.06.05 07:18:00 -
[545]
yapeal: revision 561 (as found in yapeal.php)
api's: corp and character wallet transactions, journals and assets.
character training is working.
Caveat Emptor -a trader's blog |
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.06.05 10:11:00 -
[546]
KtoJest - If you are looking at the line that reads * @since revision 561 that isn't the version for Yapeal the actual version information is in the revision.php file. If you don't have a revision.php file then you are running a very old version and that could explain why it broke The latest version from the trunk/ (main code line) is 1073 and is the version with the changes for Tyrannis. There wasn't any changes directly to wallet transactions, journals, or assets but CCP did fix a long standing bug dealing with walking records on journals. It shouldn't have broke anything but it can have the effect of greatly decreasing the number of API errors reported by Yapeal which you may have been use to seeing from before. You should also look at the log_level= ... line in your config/yapeal.ini file and if it isn't set to E_ALL try setting it to that and you should start seeing a lot of information in the log/yapeal_notice.log every time it runs. It's off by default as it can easily reach several 100 MBs per day depending how many char/corps you have added to Yapeal
A couple more questions is how did you install/ update Yapeal last time? Did you use an installer from the project downloads or get it from SVN directly? Also when was the last time you do so? -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
KtoJest
Minmatar Silkroad Partners
|
Posted - 2010.06.06 19:05:00 -
[547]
just to let you know, i've read the msg. and will respond in a day or two. rl calls. :)
Caveat Emptor -a trader's blog |
KtoJest
Minmatar Silkroad Partners
|
Posted - 2010.06.10 16:16:00 -
[548]
hi-
i'm working with rev 894.
it was manually installed SVN. probably in october of 2009.
i've set the logging to ERR_ALL.
when i run yapeal.php, i can see the router send-light blink a couple of times and the receive-light blink a couple of times. (if that means anything. usually they have a longer conversation. :)
nothing records in the log files.
i've also installed ver 1075, assuming the table structures are the same. changed the .ini file, even downloaded new api keys.
nothing records in the log file.
tables are not updated.
seems like a commo problem???
there was a way of viewing a log of hits on an account but i can't remember how to do it. :(
any ideas? :)
Caveat Emptor -a trader's blog |
KtoJest
Minmatar Silkroad Partners
|
Posted - 2010.06.11 08:18:00 -
[549]
problem solved :)
this a.m. i tried to use the installer and one of the first things it tells me is the php curl module is not installed.
i had forgotten to install it when moving to opensuse 11.2. so now rev 849 works, i'll be moving into rev. 1075 as soon as i quit celebrating. lol
Caveat Emptor -a trader's blog |
Rottw Adleweh
|
Posted - 2010.06.14 08:34:00 -
[550]
erm, how hard would making an Mac os x installer be?
btw I still plan to contact you about the postgre soonish, but too busy to get on it yet.
|
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.06.15 03:50:00 -
[551]
A Mac version could be done as the install builder used can make them but I have no way to test them and you've been the first to ask for one -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Rottw Adleweh
|
Posted - 2010.06.15 13:11:00 -
[552]
I wouldn't mind providing some test results.
|
Rottw Adleweh
|
Posted - 2010.06.22 09:58:00 -
[553]
Could you post a Mac installer with the downloads? I'll take it for a spin this week if you do.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.06.22 14:36:00 -
[554]
Rottw Adleweh - I need you to contact me through my G-Mail account and see if we can get on IM because there's some things I'll need to go over with you before I can even try building one for Mac. Just E-mail the project owner @ gmail.com and we'll work out some details from there. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. New Eden Retail Federation
|
Posted - 2010.06.29 16:42:00 -
[555]
Just a quick note. Anyone that has had problems with the installer not working with their website hosts in the past if you could please try the new alpha installer and let me know if it now works for you it would be great. I'm trying a different approach that I'm hope will work better with less privilege problems. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax.
|
Posted - 2010.07.14 20:10:00 -
[556]
Hi all just a quick update. I've added some new targets for building Yapeal to the Phing config file so it should be more streamlined to make the Alpha test builds. In the process I've add archive (zip, tar.bz2) versions to the Alpha for those that prefer them over the full installer versions. You can find them all along with the main trunk Beta builds in downloads. I've been thinking about moving the Alpha stuff into the trunk/ soon so for any of you that haven't tried it and depend on it in your own projects please test it and let me know about any bugs as I want to make all the new APIs available and get the fixes for the memory issues that are solve by using xmlReader into trunk/ soon. I've also done some changes to the scripts used during instill that should help with many of the past database issues that have been reported on some web hosting services.
On another note I've been doing some testing on Amazon's Web Service with Yapeal and was wondering if anyone would be interested in having a special Yapeal Instance for it or maybe just something to use with Xen? or maybe something for VMware but not sure I can make one for it without buying VMware. Let me know if you're interested in one of more of those.
I've also been toying with idea of offering an Yapeal hosting service of some kind. Not sure if it could really be done securely or exactly how to set it up but if there was some interest in something like that I would look into it. I'd like to hear from anyone that has ideas on how to make something like that work or what they would like to see it do. I've kicked this idea around off and on for a year or more but never really came up with anything solid enough to even try.
Let me know if you have any other ideas about anything I've wrote above or if you have an idea for something you'd like to see changed or added to Yapeal. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Kiara Kwea
|
Posted - 2010.07.24 08:46:00 -
[557]
Alrighty, I have been working on this for some time now, and I can't seem to figure out what the issue is.
Firstly, I couldn't use an installer as since I use a shared host that does not allow me SSH access. So I built the database on my local machine, exported from my box and imported to the host (this was issue one as my mysql settings on my box were not set to allow creation of tables with mixed case. I modified the my.ini and did it again, this time with the correct table names.)
Ok so now I have a working database, no more errors abut inability to find specific tables. So I add some API keys to the `yapeal_utilRegisteredUser` table make sure to have an API Key in the `activeAPI` column and `isActive` is in fact set to true (1), and `userID`,`limitedApiKey` have the correct values in them.
I was also sure to enable the API calls I want from the `yapeal_utilSections` table. In fact for testing purposes I just enabled them all.
So we're ready to go! I fire up the yapeal.php file and I get no errors, however I get no population of tables based on the API keys I have in `yapeal_utilRegisteredUser`.
However I do in fact get everything else to populate i.e server status, sov status etc.
So I must be missing something easy here, but If I include and enable API Keys in `yapeal_utilRegisteredUser` shouldn't that fire the population?
I read the whole wiki and can't seem to get a clear, or otherwise direct grasp on the relationship of the until tables. Do I need to mannualy resolve out charIDs and CorpIDs and instead of using `yapeal_utilRegisteredUser` use `yapeal_utilRegisteredCharacter`?
Anyway, its obviously working as it pulls everything but information reguarding the API keys I provided. And I did check to make sure they were valid API keys. There is no error response.
Any help would be appreciated! Thanks!
|
Kiara Kwea
|
Posted - 2010.07.24 09:12:00 -
[558]
Ahh nevermind, I got it sorted, I ignored a post on the wiki because it said "WARNING Deprecated" (http://code.google.com/p/yapeal/wiki/GettingStarted)
Which told me exactly what the column 'ActiveAPI is for'
So now, I'm all set ;) ...
|
Dragonaire
Caldari Corax. Circle-Of-Two
|
Posted - 2010.07.24 13:26:00 -
[559]
Yeah that file has been deprecated but a complete reference for the util* tables is available in http://code.google.com/p/yapeal/wiki/UtilDatabaseTableDependences. There is also a link in it to other wiki page describing some utility classes that make managing them easier in your application. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Somerset Mahm
Somer's Omnibus Exploration and Reclamation
|
Posted - 2010.07.30 04:21:00 -
[560]
I was trying to add Yapeal entries for my other directors so that I could effectively pull wallet journals more than once every hour. However, corpID is a unique key in utilRegisteredCorporations. Any way around this?
I want to update the same corp wallet using several characters. --- SOMER Lotteries - http://somer.idiofx.com/ SOMER Escrow Services: Third-Party |
|
Dragonaire
Caldari Corax. Circle-Of-Two
|
Posted - 2010.07.30 16:13:00 -
[561]
It wouldn't do what you think it would even if you could do that. Once one of them pulls the data the API servers continue to use the same cached data for all of them. You can try running multiple copies on several different computers with different public IPs and see if you get different data but I'm fairly sure it wouldn't get you any more data any faster than the cachedUntil time. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. Circle-Of-Two
|
Posted - 2010.08.12 17:33:00 -
[562]
Hi all thought I'd let everyone know what's been going on lately with Yapeal and ask for some help. My new job seems to keep me busier than my old one and some other changes that have happened/are expected to happen soon in RL means I'm not going to have the time to work on Yapeal like I use to. In addition to that the other couple developers/friends that helped with some of the coding/test in the background have also faded away at least for a time So what I'm looking to do is find one or two programmers to help out and keep things moving forward. I'll still be coding but would like to have others involved and be able to just work as QA for parts of it.
I'll try to list what I think is important to work on Yapeal:
- Input and new ideas are always welcome and really expected by all Yapeal developers but I do make the finally call on things based on my vision of Yapeal and feedback from the people using it
- Think Yapeal is really cool and want to be a part in making it better
- Able to work with others
- Able to work by self on tasks
- Able to take hearing things like "That code looks like s**t" once in a great while and understand it might be true and ask why and how to make it better not get p***ed off. This doesn't happen often but even I have an off day and put things a bit harshly
- Some programming experience even if PHP is somewhat new to you. I don't mind you using Yapeal as a learning tool and helping you learn to become a better programmer as I've done the same thing myself. If you are new to PHP and write bad code you'll not likely to ever hear comments like above they are reserved for people that really should know better and me having a very off day
- Understand that Yapeal is important to the Eve development community and take pride in do your best for it with your work on Yapeal
- Have fun because if you aren't enjoying do this for free why would you what to do it?
Don't take the list as complete or anything it's a quick off the top of my head in two minutes thing based on some past stuff. If I haven't sared you off with stuff in the above list let me know via my Gmail, this thread, etc. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Fashadow1
|
Posted - 2010.08.28 07:14:00 -
[563]
I downloaded this and after installing it on my Linux host it just sat there it had no way of seeing a data base or any way of inserting the data base into the mysql area there was not a .sql file for me to manually import neither I am stuck on how to get this to work.
|
Dragonaire
Caldari Corax. Circle-Of-Two
|
Posted - 2010.08.29 02:11:00 -
[564]
Which file did you download? If one of the installers you'll need to make sure it is mode 07xx for user you are trying to run it as. If you got one of the archives or from SVN you'll have to manual run several of the scripts from install/ to add the DB and/or tables. You'll need to check inc/common_paths.php and change the paths to match where you put stuff. You'll also need to copy config/yapeal-example.ini to config/yapeal.ini and change the stuff in it to match your install. After doing that you can just run yapeal.php and it should start filling you DB with data. I strongly suggest using the installer as it make installing much easier. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Zeta Zhul
Caldari Preemptive Paranoia
|
Posted - 2010.09.08 04:13:00 -
[565]
Edited by: Zeta Zhul on 08/09/2010 04:14:17 Hmmm.
Ok. I'm reading through 19 pages of discussion but I have a fairly simple situation:
1. I tried installing Yapeal using the installer (windows) but it keeps on getting to the point where I've entered in the information to access the local MySQL server, press "Next" and then I get an error dialog with "" as the message. E.g. blank.
So I went with the zip archive and a manual install.
2. Going with the zip archive and a manual install *of the beta version* now I've gotten the archive unzipped and positioned in the desired directory ... but there is no "Setup.php" script anywhere to be found. Does this script exist somewhere I can download it?
I've gotten the "createMySQLTables.php" to run correctly but I don't see where anybody lists the actual steps necessary to get this thing working when doing a manual install.
3. No offense intended to anybody but the whole database part would be much simpler if you'd just include a straight up SQL file with the DDL statements. That would allow you to bypass the whole XML part in the install.
Any help with this would be greatly appreciated.
edit: added note of using the beta version of the zip archive.
|
Dragonaire
Caldari Corax. Circle-Of-Two
|
Posted - 2010.09.08 05:22:00 -
[566]
Yeah somehow the Windows installer has broken in a very bad way and I haven't figured out how to fix it but been working on a rewrite for it. I've just finished moving in RL and hope to start having a bit more time to work on stuff again. I would actually suggest trying the Alpha builds as they will soon be replacing the current Beta stuff as they have several improvements and bug fixes in them. As to what you need to do to have the tables added to your DB try running install/createMySQLTables.php first without any parameters to find out what you need to use then with the required ones. It should run without any problems for you and it will also leave the SQL it used to make the tables in cache/*.sql files for you to look at if something goes wrong or you decide you need them for something else. I'd also suggest take a look at the website Wiki and issues both current and closed for some tips that might help with install problems. I'm currently working on a couple of issues with how Yapeal handles it's connections to the API servers that have come up in the Alpha and once I have them fixed and tested a little I'll have them up to be downloaded as well. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Zeta Zhul
Caldari Preemptive Paranoia
|
Posted - 2010.09.08 14:41:00 -
[567]
Hi there!
1. First I want to say thanks for all the work you put into the project. From working on software myself I know how much time something like this can take.
2. I didn't think much about them before but I notice you included scripts such as "addTestUser.php". I'll look at these scripts for some clues while I rewind my back through this thread and read the online wiki.
Thanks for your quick response!
|
Zeta Zhul
Caldari Preemptive Paranoia
|
Posted - 2010.09.20 04:31:00 -
[568]
Edited by: Zeta Zhul on 20/09/2010 04:31:26 Hmmm.
Using the Alpha zip archive version with a manual install.
I'm getting a MySQL error code 1292 and traced the issue to `yapeal`.`charMarketOrders`.`changed`
Basically the problem is that the column `changed` is defined as "`changed` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,". So if the `changed` is NULL then the insert fails with an error. It has been a little while for me with MySQL but I believe if you're going to set a DEFAULT then it should not also have a NOT NULL. This is because a NOT NULL requires data to be provided while a DEFAULT clause predefines an acceptable alternative to data not being there.
Now the problem I'm running into is that the SQL being generated is trying to put 'CURRENT_TIMESTAMP' into the `changed` column. This is failing because MySQL is trying to treat 'CURRENT_TIMESTAMP' as *text* and not a function call. To fix this the 'CURRENT_TIMESTAMP' has to be changed in the php scripts to CURRENT_TIMESTAMP so MySQL will treat it as a proper function call and not text.
Now I need to find the php file with the appropriate sql and modify that.
|
Dragonaire
Caldari Corax. Circle-Of-Two
|
Posted - 2010.09.20 17:04:00 -
[569]
If 'changed' is NULL it'll use CURRENT_TIMESTAMP to fill it which is what it's suppose to do.
Quote: Now I need to find the php file with the appropriate sql and modify that.
Can't be done really since that SQL is gen in a common method from a class that is used for all upserts.
Quote: 2. I'm also getting a MySQL error code 1366:
That looks like a problem from trying to upgrade an old version of the data to the new and it didn't convert correctly.
Try running the installer with a empty (no tables) DB and you shouldn't have any problems. I know I'm probably going to have to write a special upgrade SQL for going from the older tables in trunk to the newer ones but if you know a little bit about SQL you can usually look at the 2 versions and put something together to transfer the data. There should only be a few tables that will need extra attention. Also make sure you are using at least version 5.x of MySQL and 5.1 is better. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Zeta Zhul
Caldari Preemptive Paranoia
|
Posted - 2010.09.20 17:20:00 -
[570]
Edited by: Zeta Zhul on 20/09/2010 17:23:10 Hola!
1. "If 'changed' is NULL it'll use CURRENT_TIMESTAMP to fill it which is what it's suppose to do."
Nope. The column is marked as "NOT NULL" which means the insert/update is rejected prior to any application of a DEFAULT value.
2. "Can't be done really since that SQL is gen in a common method from a class that is used for all upserts."
I think a small modification of the YapealQueryBuilder.php: starting at line 186 might do it.
From: case 'T': case 'D': case 'C': case 'N': case 'X': // Quote all text, decimal, date type fields. $set[] = $this->con->qstr($data[$field]); break;
To: case 'T': if ($data[$field] == "CURRENT_TIMESTAMP") { $set[] = (string)$data[$field]; } else { $set[] = $this->con->qstr($data[$field]); }; break; case 'D': case 'C': case 'N': case 'X': // Quote all text, decimal, date type fields. $set[] = $this->con->qstr($data[$field]); break;
It's just that the process retrieves the column types, where a Date/Datetime/Timestamp = 'T', and then retrieves default values if any. Then it goes to the AddRow() function where it loops through the columns for each row and attempts to add quote marks. It's the quote marks that causes the problems when the the column value = CURRENT_TIMESTAMP.
I try it out and see if it works. It's been a fairly long time since I last did anything serious in php though so don't laugh if I've screwed something up.
edit: alternatively, but ugly, is to do a string replace post SQL build but prior to applying the SQL to the MySQL database.
3. "That looks like a problem from trying to upgrade an old version of the data to the new and it didn't convert correctly."
I used the latest revision 1075 to build the database and set everything up. I'll doublecheck the wiki and see if I'm missing anything.
|
|
Dragonaire
Caldari Corax. Circle-Of-Two
|
Posted - 2010.09.21 05:37:00 -
[571]
Edited by: Dragonaire on 21/09/2010 05:52:16 Your code does address the problem but not the cause. The error is actually caused by code I added to insert default values for optional fields and it of coarse puts CURRENT_TIMESTAMP in as default for 'changed' because that it's default which then is quoted by the code you found. The most correct fix would be to remove 'changed' from that table as it isn't an actual field from the API but a left over one that I originally added for use in the corp project that Yapeal grow out from. The only reason it wasn't removed before is it can be useful for checking when market orders have been updated and I had really forgotten it was still being added until this came up. FYI the code that is used to set all the defaults can be found in class/YapealQueryBuilder.php lines 117-119. Changing them to the following should fix the problem before it can happen.
if (isset($col->has_default) && $col->has_default === TRUE && $col->default_value !== 'CURRENT_TIMESTAMP') { $this->defaults[$col->name] = $col->default_value; };// if isset $col->has_default ...
|
Zeta Zhul
Caldari Preemptive Paranoia
|
Posted - 2010.09.21 15:36:00 -
[572]
Hey thanks!
I'm hoping to use your software to update a database to serve a personal project of mine. It's (yet another) Eve market trading application but written in Flex/Flash with Adobe's AIR. So it can be deployed either on a webserver or on a laptop without a webserver. Mostly for data modeling, analysis of market opportunities that sort of thing. |
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2010.11.04 04:34:00 -
[573]
Hi everyone just thought I'd let everyone know I'm working on getting an updated version of Yapeal out for the changes to old APIs and the new ones. I'm having some issues with Google Code after they've made some changes too so look for some changes on how you get hold of the code in the near future as I'm working on stuff I hope will make maintaining and deploying Yapeal easier and better soon. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2010.11.06 19:48:00 -
[574]
Hi again thought I'd let everyone know I'll probably be delaying any releases until CCP can fix a few more of their bugs in the APIs as many of them right now are Foobared big time if you haven't noticed I would like to at least get some testing done with working APIs before putting anything out and having other people bug hunt for me In the mean time I'll be trying to finish up several enhancements I've been working on that I think will be useful to many and hopefully lead to other people being able to help with adding new APIs as they come out without having to wait always on me. Adding APIs now should be a simple matter of extending one PHP class and adding some data to a couple XML files so the tables are added to the database. Actually the process has been close to that simple for a while but I have made a few changes that should make it clearer what needs to be done IMHO anyway
Expect that you'll need to do full backups of your database and probably a manual data import from many of the existing tables into the new empty database tables because of all the non-backwards compatible changes made both by CCP and by myself on some of the tables. When I get a chance I'll try to put together some kind of guide to what needs to be done to convert them but I've already got 3 times more things to do on the project than I have time for it as it is it seems
For those so inclined you can checkout the cacheAPIs, httprequest, and alpha branches from the SVN as code from them will be merged into trunk going forward after a brief testing period in alpha and maybe through a few RC versions. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2010.11.12 06:47:00 -
[575]
Ok decided to put out the information on what's going to be happening with downloads for Yapeal. Since Google Code has decided to make some changes that makes it impossible to automate using downloads any more I decided I had to find another way to make them available My first idea was to try some of their other services and see if one of them would work. After looking at several and trying a couple I found none that could do what I wanted/needed. I started looking around and thought I should check out the changes that had been made by the competition SourceForge. Basically after looking around at all the changes I decided I liked what I saw. Now the question comes up if I should just move the whole project back over to SF or not. For those that didn't know Yapeal did start as a project on SF but was quickly moved over to Google Code because it seemed to have everything I needed and was easier to use at the time. After some testing I decided I did like Google Code's wiki and issue tracker better and so far the SVN is doing everything I needed but SF does allow me to automate (script) file uploads and do several things that just wasn't possible with the Download on Google any more. So in the end I've decided to leave the project at Google but host the downloads on SF and also start mirroring the SVN over manually from time to time which at some point I'll probably automate as well.
So now the downloads that were on Google will now be found on SourceForge with several enhancements like having multiple folders for different branches i.e. trunk/, alpha/, etc. Since I had to do a fairly complete re-write of the admin scripts I use to build and upload the archives and installers, etc. I decided to make some other changes as well while I was at it. One that I think will be popular is I can now have copies of the developer document PDF and HTML files for the branches besides trunk/. Since often the other branch can have major code differences it should be helpful for anyone try to understand what's being worked on better. Another thing that the per branch folders makes possible is that each branch can now have installers and use the auto updater feature. This means that you can decided which level of stability of code to use with your application but still have Yapeal be able to check for new version and even allow setup of full autoupdating for when bug fixes are released without have the code go from an unstable branch that has a fix or feature you need to i.e. trunk/ code and start throwing a bunch of errors because of some non-backward compatible change that has been made in the branch to something. There will be some other benefits as well as I have a chance to setup and test them.
So to the bottom line. If you want to get any of the archives you can now get them from https://sourceforge.net/projects/yapeal/files/ and pick the one that best matches the stability trunk/ alpha/ etc you want. If you want to use installer version for now stay with Google Code downloads as I'm still in the process of re-writing them and the ones on SF are incomplete at this time but the ones on Google are still available though really starting to show their age. You should only use them if something have happened to a current install of one of them and you need to get your application back up without any updates or changes. I'm trying to finish a re-write on the installers now and hope to have that finished Soon(tm) so everyone can convert over to SF for them as well. Once I have that done I'll be trying to fully automating the process so when I commit something to SVN the archives, installers, and docs also get built and uploaded.
I'm out of space add more later. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Cory Sopapilla
Minmatar Kiroshi Group
|
Posted - 2010.11.19 21:05:00 -
[576]
Hi again Dragonaire.
Are there any known issues with pulling corp API stuff with the last build you have on googlecode? I'm getting about 1 successful pull a week and not sure if it's the API changes not reflected in yapeal, problems on the CCP server, or the fact that I updated PHP with a system update.
I tried reinstalling and it errors out when trying to add a test user so I'm sort of leaning towards it being a PHP compatibility error.
Looking forward to the new changes you mentioned tho! Thanks for all the hard work.
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2010.11.20 04:43:00 -
[577]
All the builds on GoogleCode are broken for several of the APIs that have changed and I have now hidden the download page there as it was really useless and just added confusion. My best advise right now is to make sure you have a real good backup or two for any data you want to keep and drop all the tables from your DB or make new one using the cacheAPIs branch code from SourceForge. Don't try any of the installers but instead use one of the archive (tar.bz2 or zip) downloads. I'm still trying to finish the rewrite on the installers to fix several issues with them. You have to run some of the script in install/ directory to setup the DB and it's tables then add any user/char/corps you need. After you are sure it's working try manually importing your old data. There have just been to many changes for the DB update system to figure it out. I've been extra busy in RL and trying to fix as many bugs at I can in Yapeal that I don't have time right now to write anything to help out with the conversion.
If someone would like to help out writing some SQL to convert from trunk/ or the alpha installer version of the DB to the new one in cacheAPIs I really could use the help and will give you the credit (blame ) for it when I add it to the downloads if you want. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2010.12.03 21:38:00 -
[578]
Just a quick update to let everyone know I should have everything into the alpha branch now and would like to have people test it please. I would prefer to have it more tested before I move it to trunk/ but since trunk isn't very useable after all the API changes etc I'm going to be do so soon(tm) Only thing I may wait on is have some kind of instructions and path for those that need to convert their existing data over. Work is being done on that and I hope it'll be done within a few days with some help I'm getting with it. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Cyril
Faeneror Lupus
|
Posted - 2010.12.10 13:36:00 -
[579]
Just wondering if there is any documentation as to what classes, methods, and parameters there are or if I just need to look at the comments in the code. I'm looking into using this in a project I'm working on and haven't had the time yet to really look at everything. I have it pulling the global data already and I'm liking it a lot. -----------------------------------------
insert witty sig here. |
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2010.12.11 04:46:00 -
[580]
There's some docs in the wiki from the web site you should find useful. You can also look at the Developer Guide PDF or tar.gz2 which is made from the DocBlocks in the code which should make somethings clearer than just reading them in the files themselves. If after having a look at them you have any questions on something contact me through my project owner E-mail on Google and I'll see if I can confuse you some more -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Cyril
Hounds Of War Talos Coalition
|
Posted - 2010.12.11 19:19:00 -
[581]
I see now where I went wrong. I just set up the subversion and didn't check released files. Thanks. -----------------------------------------
insert witty sig here. |
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2010.12.13 00:57:00 -
[582]
Okay I finally decided not to wait any longer and have copied branches/alpha/ over to trunk/ It's not as tested as I might like but overall seems to be working well for most people that have been trying it. I'd like to thank everyone that helped try it and filed bug reports, etc.
For those wanting to upgrade from the old trunk to the new you'll need to backup your config/yapeal.ini file and database before trying. I've also added a SQL conversion file that jmoerdyk has been working on. I added a couple changes and uploaded it to SourceForge in the trunk/ directory as yapeal-trunk-to-alpha.sql. It should convert the old trunk tables over to the new tables but as always make sure you have a couple of good backups of all your data as there aren't any guarantees it'll work right. If you have used the prefix feature from the installer in the past you'll need to manually edit the SQL file to make it work.
Except if you really need your old data it is recommended you do a fresh install in an empty directory with a empty database as well.
To setup Yapeal you'll need to copy config/yapeal-example.ini over to config/yapeal.ini and compare the settings in it and your old yapeal.ini and make any changes to them you think are needed. You'll notice several settings are now gone and a few new ones have appeared plus a couple have some addition allowed values. For most people you'll just need to change in the [Database] section your username, password, and maybe database settings everything else should work with the defaults but if you notice any of the others are different you'll have to decided if they need to be changed. The only other setting you may want to edit is log_level in the [Logging] section to set it as detailed in comments.
After you have config/yapeal.ini edited to your liking you'll need to run a couple files you'll fine in install/ directory to make the database and the tables. The main files you'll want to run are install/createMySQLDatabase.php and install/createMySQLTables.php. For most Linux people you should be able to run them directly after setting them executable but if you don't want to do that or are installing on Windows you'll probably need to use something like this:
path/to/where/php/is/php -f path/to/where/yapeal/is/install/createMySQLDatabase.php Windows: C:\path\to\where\php\is\php.exe -f C:\path/to/where/yapeal/is/install/createMySQLDatabase.php
You'll have to add some command line parameters to both scripts to make them work but if you do the above with both of them they should show you some help text for what is needed. You don't have to use createMySQLDatabase.php if you have already made a new DB for Yapeal to use. If you are upgrading an existing DB use the above conversion SQL instead of this step.
If everything goes right with the above you should have a work version of Yapeal that you can add some users/characters/corporations to and start testing/using. Some things to notice for long time users I've cut down on the noise level in all the log files meaning the will be empty most the time and shouldn't grow except when there is really something wrong going on. Yes even log/yapeal_notice.log is nearly silent now and can probably be left on even in production. This also means the only way to tell if Yapeal is actually doing something is to look for data being added and updated in the DB.
Okay this has been a quick overview of what you'll need to do to upgrade/install and you'll probably need to look at the wiki on the project home or through some of the other docs like this thread for more help if something doesn't seem to work for you.
One final note since the installers weren't working yet they have been deleted.
Revision 1122 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Cory Sopapilla
Minmatar Kiroshi Group
|
Posted - 2010.12.16 20:23:00 -
[583]
Well due to my RAID controller blowing up and taking all drives (including the backup drive off the raid set) with it, I'm starting over with setting up everything. Karma for me thinking it was funny when CCP had theirs catch on fire I guess.
I got the latest trunk build, uncompressed, copied the yapeal-example.ini to yapeal.ini, set the variables for user, pw, db, etc and left it in the /config folder. Trying to run 'php -f /path/install/createMysqlTables.php' tells me I haven't set the user, password, and DB. Is there a trick to making it find the /path/config/yapeal.ini on a freshly extracted yapeal folder? I created the DB by hand and populated it with the latest DB dump so I'm sure I got the username/pw/DB right.
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2010.12.18 04:44:00 -
[584]
Sorry to hear about your raid dying and that I didn't get on to help you with your question but glad you figured it out.
The scripts aren't very people friendly since they were made to be run by the installer and just had enough extra to let me test them too. I hope to have the installers working again soon but I know a lot of people won't or can't use them so I worked on the other stuff first. Just a FYI for everyone trying to use them if you run any of them without any parameters you'll get a short help that will give you what parameters you'll need to make them work. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
LuciferPhil
|
Posted - 2010.12.22 15:50:00 -
[585]
Edited by: LuciferPhil on 22/12/2010 15:50:42 Hey there,
got a Problem over here:
Error Logging on, this Message is from the Logs.
Quote: Parse error: syntax error, unexpected T_CLASS in /var/www/clients/client0/web1/web/yapeal/ext/eac_httprequest/eac_httprequest.class.php on line 1
I have no Idea -.- Any help on this?
Thanks in forward,
Luci
PS: Does anyone have a simple Webfrontend/GUI for viewing the collected Data? I can build it from scratch, but perhaps someone already did the job and would be so kind to publish his code.
PPS: Using latest Yapeal.
|
Andronette
|
Posted - 2010.12.23 03:30:00 -
[586]
I'm having a nooblette problem getting started on my 64bit-Windows7/WAMP machine.
Thanks to the very useful tips in post 582 from dragonaire and 583 from Cory Sopapilla I've got the yapeal.ini file sorted and have sucessfully run createMYSQLDatabase.php and createMYSQLTables which has given me the new database and tables that I can see on the MYSQL console.
However, when I go to run addTestCharacter.php I get an error related to the undefined function curl_version(). Sure enough, when I tried checkForRequiredExtensions.php I get: curl false
I've added the PHP curl extension, and checked it with phpinfo() as installed and functioning (cURL support: enabled, cURL information: 7.19.4), but I'm unsure how to go about adding curl support to my windows 7 machine (curl.haxx.se and earlier posts in this thread didn't have enough for me to go on).
Do I need to chase CURL or libcurl for Yapeal? Any other tips for me?
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2010.12.23 04:18:00 -
[587]
LuciferPhil check out http://code.google.com/p/yapeal/wiki/UsingClassUtilClasses and http://code.google.com/p/yapeal/wiki/UtilDatabaseTableDependences and look at how the isActive column effects which API Yapeal actually gets. You'll need to make sure it is on in UrilSections and for the users/char/corps you've added to the utilRegistered* tables.
Also probably why you saw those files all on one line is you editor wasn't set for unix type line ends which are only \n not \r\n like windows usually uses.
Andronette - Once you have the curl extension added to PHP you usually need to find a line that looks like ;extension=php_curl.dll in your php.ini file and remove the ";" so it is loaded. Make sure when you use phpinfo() you are not running it in a webpage which uses the CGI version of PHP but do it from the command line (CLI) which Yapeal uses. They often have different php.ini files they use by default as well so check that anytime something work with one and not the other. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
LuciferPhil
|
Posted - 2010.12.24 00:39:00 -
[588]
Edited by: LuciferPhil on 24/12/2010 00:42:00 Edited by: LuciferPhil on 24/12/2010 00:40:30
Originally by: Dragonaire LuciferPhil check out http://code.google.com/p/yapeal/wiki/UsingClassUtilClasses and http://code.google.com/p/yapeal/wiki/UtilDatabaseTableDependences and look at how the isActive column effects which API Yapeal actually gets. You'll need to make sure it is on in UrilSections and for the users/char/corps you've added to the utilRegistered* tables.
Also probably why you saw those files all on one line is you editor wasn't set for unix type line ends which are only \n not \r\n like windows usually uses.
Got it! But still can't explain the corrupted files...i'm working under Linux. Downloaded, uploaded, extracted, all under Linux only working with tar and vim. Strange.
Now i'm working on a useful GUI...but stumbled upon a problem. Maybe s/o can help me (sorry, not REALLY yapeal related):
I downloaded the CCP static dump to get System Names, Item Names, and so on...it already works, but i have a problem with Station Names. Please take a look:
Quote:
$sql4 = "CASE locationID BETWEEN 66000000 AND 66014933 THEN SELECT stationName FROM staStations WHERE stationID LIKE '%".$zeile['locationID']."%-6000001' ELSE SELECT solarSystemName FROM mapSolarSystems WHERE solarSystemID LIKE '%".$zeile['locationID']."%' END";
$zeile['locationID'] is filled with the locationID from yp_corpAssetList
Doesn work :( Any hints?
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2010.12.25 00:55:00 -
[589]
http://wiki.eve-id.net/APIv2_Corp_AssetList_XML that should have the extra info you'll need to make it work. You'll need one of the APIs to get that info so it's kind of related ;) -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Narthok
|
Posted - 2010.12.26 20:50:00 -
[590]
How do you install this? The install documentation seems to be lacking, and there are no " installers " on the SF downloads, and google-code downloads just says go to SF... I noticed the wiki made mention of a windows install procedure, but that also it stale, as it makes mention of a setup.php wich is non-existent.
I'm hoping to use this in a *.nix environment. Is this possible?
Is this project still being maintained? Or has it simply been replaced by something else?
|
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2010.12.27 07:05:00 -
[591]
Edited by: Dragonaire on 27/12/2010 07:06:38 Look at post 582 here for a short guide on installing Yapeal. You have to do it manually for now until I've had a chance to re-write the installers. I've had people claim that it shouldn't need one and that a library shouldn't need to be configured but then someone like you comes along to prove them wrong once again. I've also now deleted the wiki pages you referenced as they were more confusing than helpful. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Busty Crumpet
|
Posted - 2010.12.29 01:52:00 -
[592]
Hello, I've managed to get the database and tables installed from the command line, but can't for the life of me figure out where the user apis are added to make yapeal work. I'm wondering if those wiki pages were removed as you mentioned earlier. I've given it a couple of hours reading and surfing about but reached a dead end. Any advice appreciated!
|
Johnathan Roark
Caldari The Graduates Morsus Mihi
|
Posted - 2010.12.29 03:44:00 -
[593]
Originally by: Busty Crumpet Hello, I've managed to get the database and tables installed from the command line, but can't for the life of me figure out where the user apis are added to make yapeal work. I'm wondering if those wiki pages were removed as you mentioned earlier. I've given it a couple of hours reading and surfing about but reached a dead end. Any advice appreciated!
They are entered into the database, tables utilRegistered*. There are several helper php classes in class/util/ to help manage them as well.
POS-Tracker 3.0 Hosting |
jim Iamb
|
Posted - 2010.12.30 00:53:00 -
[594]
I've been trying to get this going and keep coming across this error:
Warning: ini_set(): Unable to access in /var/www/vhosts/XXXXXXX.com/httpdocs/yapeal/inc/common_backend.php on line 69
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2010.12.30 14:21:00 -
[595]
First make sure you aren't trying to use (web server)CGI PHP to run Yapeal as it won't work Yapeal only runs with CLI PHP. Once you are sure that's not the problem check if for some reason changes to PHP's logging settings have been blocked. If you're using a hosted server they may have mis-configured something thinking they were making things more secure. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2011.01.06 05:04:00 -
[596]
Ok thought I'd update everyone on Yapeal again. Had some bugs reported mainly with trunk/. Several typos were found in the SQL upgrade script file which have been fixed. Some of those same typos were also in the SQL XML file and they have also been fixed. One more bug that was showing up with Windows was files like class/Section*.php meaning Yapeal didn't do a lot other than throw lots of error Seems to have been cause by some changes to inheritance and parenting changes of some classes in SPL and their defaults in newer versions of PHP. Yapeal now is setting some settings to know working values which has fix the issue.
revision 1134 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Cyril
Hounds Of War Talos Coalition
|
Posted - 2011.01.06 05:38:00 -
[597]
Just wanted to say I was having good progress using Yapeal for backend data for a site I'm working on. I'm running into a bit of an issue with how hard it hits the CPU when it runs as a cron. I've added "nice -n 19" to the front of it and that has reduced the problem but it is still enough that I'm getting CPU throttled 15 seconds out of every hour or so. (cron runs every 3 minutes)
Anyone have any suggestions/experience managing CPU loading of cron based php files? -----------------------------------------
insert witty sig here. |
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2011.01.06 14:41:00 -
[598]
I'd suggest doing what everyone never seems to think is right and that is have it run every minute and don't use nice. The reason is when you don't let it run it just builds up stuff to do then when it does run it has to run harder for longer vs if you let it Yapeal has build in system to even out the load over time. It can take a day or two after you've started it for it to finish evening out the load. What it does is add a couple minutes of randomness to when it gets the APIs which over time spread out the load but it is hard limited to no more than 6 minutes so with you running it only every 3 minute that tends to regroup everything again making the work load stay higher. I've got other developers that were having the same problem with larger numbers of char/corp (hundred or even thousand of players) to try it and they all agree it does indeed work to reduce the peak workloads.
Also I would say it's probably not Yapeal that is using the CPU but MySQL, network or storage load causing the issues you are seeing. In every case so far where I've worked with the developers have problems Yapeal itself was spending 99% of it's time waiting on either I/O (network or storage) or the MySQL server. Actual time spent in doing stuff was less than 1%. If you want some additional help with this contact me vs the project owner's email at Google. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Cryten Jones
Gallente Advantage Inc The Matari Consortium
|
Posted - 2011.01.10 13:17:00 -
[599]
Hey,
Firstly thanks for taking the obvious amount of time that you do for something you give away!
Secondly, as more of a 'user' programmer (I mean very basic, follow instructions) I wanted to know if there is any documentation of the classes here? I have Yapeal installed and 'working' in so much as executing yapeal.php from the command line updates data in the database but I am not struggling to actually do anything with the data because I don't know what Yapeal can do for me....
Thanks in advance
-CJ
Originally by: Nogap toosmall
and your understanding of probability is on par with a radish.
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2011.01.13 06:18:00 -
[600]
Sorry for the late reply seems to forums eat my first one The best source for docs on Yapeal is the developer guide which you can find in pdf, html.zip and html.tar.bz2 format in the downloads on SourceForge. IMHO the archive ones are better because they have link code pages where you can read about something and click a link to see the actual code. This thread and the wiki on google code also have some useful info you'll want to look at.
Quote: ... struggling to actually do anything with the data because I don't know what Yapeal can do for me...
You stated what Yapeal really does in the first part of the sentence but to quote the web site Quote: Used to get XML files from the EVE-Online API and store the results in a MySQL database.
It takes care of getting the raw data from the APIs while dealing with the caching etc and then you just build your application like any other LAMP/WAMP project with a database that is 'Auto-magically' updated with new data as it becomes available.
Hope that answered your question.
On to some news about development in Yapeal. I've now add both a CHANGELOG and a new INSTALL.txt file that should be a big help for anyone doing an install from the archives or SVN. See the CHANGELOG for more details in the future beyond what ends up in the commit messages for the SVN. By using the new log more of the little changes and fixes should get logged that often got lost before because by the time everything was ready to commit to SVN some of them were forgotten about.
revision 1137 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Elojs
Gallente Corp 42 Apoapsis Multiversal Consortium
|
Posted - 2011.01.15 23:21:00 -
[601]
I'm trying to integrate Yapeal with a CMS (Drupal) for a website. To that end, might it be possible to implement an install option for a table prefix for the Yapeal tables? That way, those of us limited to a single MySQL database on a server could still use the package, in conjunction with a CMS, the killboard, etc. all-in-one. Just my .02 .
As a glutton for punishment, I'm setting up the dev env for my work on a Windows machine, under WAMP. The CMS has a cron work alike, so that'll be covered.
Great job, it seems to be coming along very well.
Elojs
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2011.01.15 23:39:00 -
[602]
; Prefix to be added to all database table names. (required)
; Added for people that can only have one database where they are hosted.
table_prefix="" You can find that setting in config/yapeal.ini it was made to be used just for what you are describing its also an optional parameter for the install/createMySQLTables.php script
Hostname Username Password Database are required in install/createMySQLTables.php TablePrefix and XMLfile(s) are optional If XMLfile(s) is a list it needs to be inside quotes -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Elojs
Gallente Corp 42 Apoapsis Multiversal Consortium
|
Posted - 2011.01.16 07:45:00 -
[603]
Yeah, thanks! *do'oh*
<head slap>
Elojs
|
Elojs
Gallente Corp 42 Apoapsis Multiversal Consortium
|
Posted - 2011.01.16 14:23:00 -
[604]
Edited by: Elojs on 16/01/2011 14:25:07 In reading the past years worth of posts in this thread, I decided to attempt to install the alpha branch of the vcs system, as well as the trunk. They are all in different directories. The trunk works well, though I'm still puzzling out the interrelationships with the util tables.
The alpha install has the separate database up, tables created, and 1 user added with userID, partialAPI, fullAPI, isActive=1.
Upon executing:
php -f yapeal.php
from the command line, I immediately get about 3 screens of error handler output.
The traceback yields the following:
#0 YapealErrorHandler->handleError() called at [C:\yapealAlpha\yapeal\class\Yap ealErrorHandler.php:101] #1 YapealErrorHandler::handle(256, No section classes were found check path set ting, C:\yapealAlpha\yapeal\yapeal.php, 99, Array ([GLOBALS] => Array ( *RECURSI ON*,[argv] => Array ([0] => yapeal.php),[argc] => 1,[_POST] => Array (),[_GET] = > Array (),[_COOKIE] => Array (),[_FILES] => Array (),[_SERVER] => Array ([ALLUS ... > smtp,[13] => smtps,[14] => telnet,[15] => tftp)),[user_agent] => Yapeal/1131 a lpha (WINNT i586) libcurl/7.20.0,[sectionList] => Array ())) #2 trigger_error(No section classes were found check path setting, 256) called at [C:\yapealAlpha\yapeal\yapeal.php:99] [2011-01-16 14:10:28.287] ERROR: No section classes were found check path setting File: C:\yapealAlpha\yapeal\yapeal.php(99)
This repeats a second time. The log files yield: The same thing but only once.
Are there environment variables I need to set? I can't seem to find anything but conflicting information as the documentation appears scattered all over the version maps of prior releases.
When it works, it works well, but it's an absolute bear to setup. I had an easier time setting up Linux under Slackware 20 years ago.
If/when I figure out the package well enough, I'd volunteer to submit some documentation, if you're interested.
Elojs
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2011.01.17 07:19:00 -
[605]
There's been a bug fix done in trunk/ that hasn't made it yet into alpha is why you have the errors. Copying class/FilterFileFinder.php from your trunk/ install into the alpha one should fix it.
For the best install instructions use the ones you'll find in INSTALL.txt as they work with Yapeal in it's current revision including all the branches though some of them may show a few more errors and their output can be a little different. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Elojs
Gallente Corp 42 Apoapsis Multiversal Consortium
|
Posted - 2011.01.17 08:00:00 -
[606]
That fixed it.
I don't use SVN, much prefer Git.
Until I can figure out how to clone your SF tree, I'm stuck importing and hoping for the best. Ah, well.
Thanks for the tip.
Elojs
|
Elojs
Gallente Corp 42 Apoapsis Multiversal Consortium
|
Posted - 2011.01.17 20:27:00 -
[607]
There appears to be something wrong with your SVN tree. I cannot clone beyond r816, which leaves no files, and when I pull from that point, nothing is updated. If possible, can a dev branch be created, or the current codebase from 1.0.0 be set as its own HEAD?
Thanks in advance, Elojs
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2011.01.19 12:54:00 -
[608]
I've put out what I believe is a fix in trunk/ for issue 65 and related problems people have been having. If you had the following errors please give it a try and let me know if this fixes it for you. ERROR: No section classes were found check path setting PHP Fatal error: Class 'FilesystemIterator' not found in ... on line 86
revision 1140 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Kalrand
GoonWaffe Goonswarm Federation
|
Posted - 2011.01.20 04:42:00 -
[609]
I've been poking around for a little while now, and something that confused me early on was the install/addTestCharacter.php and install/addTestCorporation.php files.
They wouldn't work for me, largely because I had no idea what XML files they were expecting. I ended up making my own largely modeled off the addTestUser.php file.
Did I miss something? What should have gone there?
|
Akov Stohs
Windowlickers Inc
|
Posted - 2011.01.20 04:56:00 -
[610]
Edited by: Akov Stohs on 20/01/2011 05:06:13 Edited by: Akov Stohs on 20/01/2011 04:59:26 fresh check out and install received this error on run
[20-Jan-2011 04:49:29] PHP Fatal error: Class 'FilesystemIterator' not found in /some/path/yapeal/class/FilterFileFinder.php on line 86
lamp system btw
Just saw the bug report....
http://code.google.com/p/yapeal/issues/detail?id=65&colspec=ID%20Type%20Status%20Stars%20Priority%20Milestone%20Owner%20Summary
|
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2011.01.20 05:14:00 -
[611]
Those scripts expect the same XML you'd get from the API for accountCharacters. They were made to be used with the installer I had been using which could grab one simple API like that then pass it off to them to work with. They also need updated now to work with changes I made that moved graphics over to new table. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Akov Stohs
Windowlickers Inc
|
Posted - 2011.01.20 05:27:00 -
[612]
Originally by: Akov Stohs
Just saw the Bug Report
I'm not a programmer but a little digging turned up RecursiveDirectoryIterator as the predecessor to FilesystemIterator, not sure if that helps at all.
|
Kalrand
GoonWaffe Goonswarm Federation
|
Posted - 2011.01.20 06:34:00 -
[613]
Originally by: Dragonaire Those scripts expect the same XML you'd get from the API for accountCharacters. They were made to be used with the installer I had been using which could grab one simple API like that then pass it off to them to work with. They also need updated now to work with changes I made that moved graphics over to new table.
Thanks, I assumed it had to be something like that.
|
Johnathan Roark
Caldari The Graduates Morsus Mihi
|
Posted - 2011.01.20 19:21:00 -
[614]
Originally by: Kalrand
Originally by: Dragonaire Those scripts expect the same XML you'd get from the API for accountCharacters. They were made to be used with the installer I had been using which could grab one simple API like that then pass it off to them to work with. They also need updated now to work with changes I made that moved graphics over to new table.
Thanks, I assumed it had to be something like that.
I used Pheal to grab character data and then used yapeals built in classes for adding them to the util* tables
POS-Tracker 3.0 Hosting |
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2011.01.21 04:55:00 -
[615]
Yeah they re-parented some of the classes/extensions in SPL so I'm going to have to keep working on it until it works with old versions and the new of PHP
For any of you that haven't seen the other threads about WalletJournal they made some changes that have in effect disabled walking in Yapeal so I'll be looking into updating it in char and corp and I'm sure the same change was done to WalletTransactions as well. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Cyril
Hounds Of War Talos Coalition
|
Posted - 2011.01.22 14:11:00 -
[616]
Any eta on a fix for the older versions of php? I just updated trunk. If not I guess I'll roll back a few builds. I have also contacted my hosting company to see if they can update to 5.3. -----------------------------------------
insert witty sig here. |
Cyril
Hounds Of War Talos Coalition
|
Posted - 2011.01.22 17:22:00 -
[617]
Ok I think I have a work around for now... It isn't exactly pretty code and can't test it as my hosing box can't connect to the API server right now, due to some type of routing problem. Here is my diff if anyone wants to test it out.
Index: FilterFileFinder.php =================================================================== --- FilterFileFinder.php(revision 1141) +++ FilterFileFinder.php(working copy) @@ -81,13 +81,22 @@ $this->match = $match; $this->type = $type; $this->piece = $piece; - $flat = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)); - // Set flags to know working settings. - $flags = FilesystemIterator::CURRENT_AS_FILEINFO - | FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::SKIP_DOTS - | FilesystemIterator::UNIX_PATHS; - $flat->setFlags($flags); - parent::__construct($flat); + if (!defined('PHP_VERSION_ID')) { + $version = explode('.', PHP_VERSION); + define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2])); + } + if (PHP_VERSION_ID >= 50300){ + $flat = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)); + // Set flags to know working settings. + $flags = FilesystemIterator::CURRENT_AS_FILEINFO + | FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::SKIP_DOTS + | FilesystemIterator::UNIX_PATHS; + $flat->setFlags($flags); + parent::__construct($flat); + } else { + $flags = 0 | 0 | 4096 | 8192; + parent::__construct(new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path, $flags))); + } }// function constructor /** * Required method to make filter work.
-----------------------------------------
insert witty sig here. |
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2011.01.23 07:05:00 -
[618]
Or better yet try getting revision 1143 with the fix. I didn't actually get fixed put into svn before somehow
BTW Cyril you fix breaks in the old version of PHP because the class and constants don't exist in older versions of PHP. it fails on $flags = FilesystemIterator::CURRENT_AS_FILEINFO line because of that like I posted in issue 66. |
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2011.01.25 11:13:00 -
[619]
Just found a nasty little bug in Yapeal dealing with caching for corp APIs not working right. Everyone should update to revision 1146 on trunk/. If you are trying to use one of the branches try running a diff on class/SectionCorp.php to see what you'll need to change. I've been working on updates for all the changes in the APIs since Incursion and hope to have some of it out soon. I want to at least have everything work right again then I'll worry about adding some of the new APIs.
revision 1146 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Somerset Mahm
Somer's Omnibus Exploration and Reclamation Cognitive Distortion
|
Posted - 2011.01.25 17:40:00 -
[620]
Edited by: Somerset Mahm on 25/01/2011 17:40:25 After updating I'm getting hangs on updating corpWalletJournal. Yapeal never finishes running and cuts off after MAX_EXECUTION_TIME.
I know it's corpWalletJournal because the other ones are updating fine, and if I turn corpWalletJournal off I get no hangs.
Of course it could just be on CCP's end :P --- SOMER Lotteries SOMER Blink - new! SOMER Escrow Services |
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2011.01.26 01:20:00 -
[621]
Yeah I'm still doing a little testing on some of the incursion stuff but I'm planning on merging some of it very soon. I need to finish some of it up plus I want to see if there's going to be anything in the patch Thursday that needs to be handled. After I get a chance to look at the patch notes I'll decide when to go ahead. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Elojs
Gallente Corp 42 Apoapsis Multiversal Consortium
|
Posted - 2011.01.26 20:53:00 -
[622]
With the recent announcement of the API moving to HTTPS: protocol, I was wondering what changes that will necessitate in Yapeal?
I'm assuming that some SSH library will become a needed component, but is there anything else?
Elojs
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2011.01.27 04:42:00 -
[623]
Actually should just take a few setting changes since it ends up using cURL for all network traffic and cURL supports HTTPS already. I was trying to make some changes to let Yapeal use php sockets directly etc since some people don't have option to use cURL but never really got to far on it. I've never seen a real need to use HTTPS like most developers I'll end adding it if users ask for it I'm sure but as much as most people think everything in the APIs is of vast importance the reality is that ever most Eve players don't care, let alone someone else out side of Eve about how many corpses you're hiding in you hanger . -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Somerset Mahm
Somer's Omnibus Exploration and Reclamation Cognitive Distortion
|
Posted - 2011.01.27 06:54:00 -
[624]
You will need to add it; they'll be turning off non HTTPS access :P --- SOMER Lotteries SOMER Blink - new! SOMER Escrow Services |
Fredrick Engly
Insorum Industries Intergalactic Exports Group
|
Posted - 2011.01.28 02:45:00 -
[625]
Get this whenever I run yapeal.php
Fatal error: Class 'FilesystemIterator' not found in /home/silmar/webapps/insyapeal/class/FilterFileFinder.php on line 86
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2011.01.28 04:01:00 -
[626]
Fredrick Engly - If your line 86 doesn't look like this you aren't up to date: if (defined('FilesystemIterator::UNIX_PATHS')) {
Also make sure you are using trunk/ as that fix has not been done on any of the branches yet. make sure you're at revision 1147 for the SVCN as that's the current. Let me know if you're still having problem after check those things and I'll look into it some more. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Akov Stohs
Windowlickers Inc
|
Posted - 2011.01.28 18:15:00 -
[627]
Originally by: Akov Stohs Edited by: Akov Stohs on 20/01/2011 05:06:13 Edited by: Akov Stohs on 20/01/2011 04:59:26 fresh check out and install received this error on run
[20-Jan-2011 04:49:29] PHP Fatal error: Class 'FilesystemIterator' not found in /some/path/yapeal/class/FilterFileFinder.php on line 86
lamp system btw
Just saw the bug report....
http://code.google.com/p/yapeal/issues/detail?id=65&colspec=ID%20Type%20Status%20Stars%20Priority%20Milestone%20Owner%20Summary
Will say this bug fix also resolved the problem for me.
|
No La
Greased Lightning Engineering
|
Posted - 2011.02.04 21:04:00 -
[628]
I keep getting the following error when retrieving walletTransactions:
Quote: [2011-02-04 20:56:43.861] WARNING: Caching invalid API XML for char/WalletTransactions File: /opt/yapeal/class/YapealApiCache.php(174)
walletJournal updates just fine.
I've tried both svn and trunk versions.
Has this got anything to do with the messed up cachedUntil value in the downloaded xml file (15 minutes instead of 1 hour) for the walletTransactions api?
No La
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2011.02.05 20:36:00 -
[629]
The cachedUntil date/time doesn't matter to Yapeal so it isn't that as long as it's in the correct format YYYY-MM-DD HH:MM:SS just like all the other dates except a few CCP also using empty strings in Best thing to do when you start getting a lot of errors with an API like that is to check out the actual result sent and cached in either the files (cache/char/WlletTransactions*.xml) or utilXMLCache table depending on which you are using (or both). If it looks right then it's something else if not delete cached XML from both locations.
Do look at the times and make sure Yapeal hasn't got stuck and keeps trying to use an old one. There is a bug I haven't fully tracked down where it somehow get's hung up on the old XMLs and won't grab them again from API at times. It is rare but I've noticed it a few times during testing. It always seems to recover once both caches are cleared for the API. It maybe related to the bug reported in issue 67 which I think I have a fix for now and hope to get out for testing this weekend.
It could also be related to another bug I found a few days ago having to do with how the hash was calculated that is used in the cache files names and database table which could cause some APIs to overwrite other APIs cache files and use the wrong cachedUntil times as well.
I will be updating the SVN and archives with fixes for both later today so they can be tested. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
No La
Greased Lightning Engineering
|
Posted - 2011.02.06 16:13:00 -
[630]
I grabbed the latest svn, and now it works
|
|
Dragonaire
Caldari Corax. SOUL CARTEL
|
Posted - 2011.02.06 21:48:00 -
[631]
Hi All I've been working on getting something out for incursion and the code needs some more testing so decided to add incursion branch to downloads on SF so a few more people might try it out and let me know if everything seems to work.
I think I've also got issue 65 finally completely fixed for both old and newer version of PHP. I basically ended up doing feature detection like I was working in Javascript or something
For those that want to give it a try there is a new branch where Johnathan Roark and I have been work been working on converting Yapeal to use HTTPS. You can find it in branches/https/. Be warned it's taken from trunk/ so will probably have some problems if you try any of the APIs that do walking like WalletJournal or WalletTransactions.
If you try out trunk/ or any of the new branches make sure you read their CHANGELOGs to see what has changed in each of them.
revision 1160 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Malice Shecktily
|
Posted - 2011.02.12 10:59:00 -
[632]
Originally by: Dragonaire Ok thought I'd update everyone on Yapeal again. Had some bugs reported mainly with trunk/. Several typos were found in the SQL upgrade script file which have been fixed. Some of those same typos were also in the SQL XML file and they have also been fixed. One more bug that was showing up with Windows was files like class/Section*.php meaning Yapeal didn't do a lot other than throw lots of error Seems to have been cause by some changes to inheritance and parenting changes of some classes in SPL and their defaults in newer versions of PHP. Yapeal now is setting some settings to know working values which has fix the issue.
revision 1134
Firstly, Thanks Dragonaire for all the time and effort you've obviously expended on Yapeal - I had started to build my own API classes to get data into mysql but have decided not to reinvent the wheel I'm getting the Yapeal error No Section classes where found when running yapeal.php. I think I'm getting something related to the class inheritance issue as I've run through the code, although I'm a bit noob wrt OOP esp with SPL, seems to fall over in getStrippedFiles in class FilterFileFinder : $files gives me <pre>FilterFileFinder Object ( [path:protected] => D:/websites/yapeal/class/ [match:protected] => Section [type:protected] => prefix [piece:protected] => 8 ) </pre> but doesn't loop though on the foreach (however is not empty)...like I say I'm noob on SPL so can't figure out what may be going wrong here or realistically how to debug any further... I just have a hunch that since this is a very new version of PHP 5.3 I'm running it may be related to some change in class inheritance that no-one else on here has hit yet. I've not been able to google anything up that seems to bear relevance (looked at http://www.php.net/~helly/php/ext/spl/) but can't be sure...
Db util* is populated, php version is PHP 5.3.5 (cli) (built: Jan 5 2011 20:29:28) running on apache2.2 on win xp. Yapeal version is 1160 from the SVN
|
Malice Shecktily
|
Posted - 2011.02.12 11:38:00 -
[633]
Duh... please ignore last post - think I might have been using the alpha branch, just re-exported the latest trunk release and works fine
|
Dragonaire
Caldari Corax.
|
Posted - 2011.02.12 16:42:00 -
[634]
As you found alpha branch is currently broken. The trunk and the incursion branch are you're best bets with the incursion branch being preferred as it needs the testing and will soon be replacing the code currently in trunk. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Malice Shecktily
|
Posted - 2011.02.12 17:10:00 -
[635]
Okey Doke, I'll check out incursion and work with that (my app is still under earlyish dev and needs significant refactoring now anyway so may as well grab as many bugs as poss in the early stages)
You prefer bug reports on this forum or http://code.google.com/p/yapeal/issues/list ?
Promise I'll try to remember which branch I was working on in future...
|
Dragonaire
Caldari Corax. Everto Rex Regis
|
Posted - 2011.02.13 11:56:00 -
[636]
Either is ok I do like issues on site better in that they end up E-mailing me so I know there's something new to look at. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. Everto Rex Regis
|
Posted - 2011.02.18 10:20:00 -
[637]
Hi all, After a few delays I've finally reintegrated the incursion branch back into trunk/. Make sure to read through the CHANGELOG as there's a few things existing user should do like clear their exist XML cache but there are no database changes to deal with this time if your trunk/ was already up to date.
The changes have mostly to do with fixing walking for WalletJournal and WalletTransactions for characters and corporations. CCP seems to have some issues with how walking works in the APIs themselves but Yapeal should work with whatever it does get from them correctly.
Several bugs like issue 65,66,67 seem to be fixed.
Probably one of the biggest changes that will be noticed is Yapeal now uses HTTPS connections and unlike what I've heard about other API libraries Yapeal does actually check the certificates from the API servers so 'man-in-the-middle' attacks aren't possible now. I understand some other libraries have started using HTTPS connections but don't bother to check them which is kinda like using a new security door on your house and leaving the window wide open next to it
As always reports of any problems are welcome either here or as an issue on the main GoogleCode site.
revision 1164 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Malice Shecktily
|
Posted - 2011.02.21 20:34:00 -
[638]
Good Stuff - any db changes in there? or changes to the xsd's?
PS Better login to eve : Santa's been in town...
|
Dragonaire
Caldari Corax. Everto Rex Regis
|
Posted - 2011.02.22 06:07:00 -
[639]
Since you brought it up yes there is a new update to XSDs since it seems AccountStatus.xsd wasn't allowing offer rowset to work correctly. There were of course a few other improvements made to all the XSDs while I was working on it in incursion branch as stated in the CHANGELOG.
BTW Santa was very nice to me and it isn't even December thank you -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Arnakoz
|
Posted - 2011.02.27 03:19:00 -
[640]
Hi there, I'm running this on a Mac 10.6.6 with XAMPP.
i got into phpMyAdmin and created a db called yapeal and a user for it. but on running
php -f install/testForMySQLDatabasePrivs.php localhost <user> <pw> yapeal
i get
Connection error (2002) No such file or directory
i tried adding mysql.default_socket = /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock" to /Applications/XAMPP/xamppfiles/etc/php.ini and restarting apache/mySQL ... but no go...
any ideas?
|
|
Johnathan Roark
Caldari The Graduates Morsus Mihi
|
Posted - 2011.02.27 04:48:00 -
[641]
Originally by: Arnakoz Hi there, I'm running this on a Mac 10.6.6 with XAMPP.
i got into phpMyAdmin and created a db called yapeal and a user for it. but on running
php -f install/testForMySQLDatabasePrivs.php localhost <user> <pw> yapeal
i get
Connection error (2002) No such file or directory
i tried adding mysql.default_socket = /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock" to /Applications/XAMPP/xamppfiles/etc/php.ini and restarting apache/mySQL ... but no go...
any ideas?
Does creatMysqlTables.php work? if so, I wouldn't worry about it.
POS-Tracker 3.0 Hosting |
Arnakoz
|
Posted - 2011.02.27 22:23:00 -
[642]
so i figured out my problem.
XAMPP sucks.
no really, XAMPP had chosen to ignore the password for the new user that i created, and simply used no-password.
so running the xampp security util fixed the problem (though it added the problem that the log-in to phpMyAdmin only works every 10 times or so)
but the next problem was that when creating the tables with the yapeal php script it complained about the mysql socket, even though i had change it to the crazy location that xampp uses in php.ini. so i just created a symbolic link to make mysql think everything was where it was supposed to be: sudo ln -s /Applications/XAMPP/xamppfiles/var/mysql/ /var/mysql
|
Dragonaire
Caldari Corax. Everto Rex Regis
|
Posted - 2011.02.28 07:29:00 -
[643]
You might also try http://bitnami.org/stack/mampstack as I've had good luck using their WAMP stack and would expect the Mac one to be good too. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Arnakoz
|
Posted - 2011.02.28 13:28:00 -
[644]
yup, i was considering it. if i hadn't been able to get XAMPP to work that was my next step...
|
Mad Maxipad
|
Posted - 2011.03.07 14:17:00 -
[645]
I'm still having problems getting this to work. I filled out my fullapi/limitedapi/userid and set isactive to 1 under utilRegisteredUser. I filled out characterid,isactive,name,userid for RegisteredCharacter and put in AccountBalance under activeAPI.
When I php -f yapeal.php, it updates the count of users on the server in the DB, but no other DB tables get filled in. Is there something I am missing? |
Ruziel
Minmatar Twilight Military Industrial Complex
|
Posted - 2011.03.07 17:53:00 -
[646]
Originally by: Mad Maxipad I'm still having problems getting this to work. I filled out my fullapi/limitedapi/userid and set isactive to 1 under utilRegisteredUser. I filled out characterid,isactive,name,userid for RegisteredCharacter and put in AccountBalance under activeAPI.
When I php -f yapeal.php, it updates the count of users on the server in the DB, but no other DB tables get filled in. Is there something I am missing?
Did you also set utilSections.isActive = 1 where utilSections.sectionName = char?
Yo have to activate the sections in utilSections and have the API page in the activeAPI field of the registeredCharacter or resisteredCorporation for yapeal to pull the data.
|
Steven Trux
State War Academy
|
Posted - 2011.03.11 08:59:00 -
[647]
Hi guys, I'm having some problem trying to setup yapeal....
Everything should be ok, but I receive this error:
Quote: [2011-03-11 08:10:33.487] NOTICE: None of the allowed APIs are currently active for ******* File: .../class/SectionAccount.php(110) [2011-03-11 08:10:34.545] NOTICE: Undefined variable: char File: .../class/util/RegisteredCorporation.php(275) [2011-03-11 08:10:34.545] NOTICE: Trying to get property of non-object File: .../class/util/RegisteredCorporation.php(275) [2011-03-11 08:10:34.552] WARNING: Parent record(s) missing from utilRegisteredCharacter for 1 making corporationID ******** in utilRegisteredCorporation incomplete. File: .../class/util/RegisteredCorporation.php(212) [2011-03-11 08:10:35.603] NOTICE: None of the allowed APIs are currently active for ******* File: .../class/SectionChar.php(118)
Only "general" tables as "eveMemberCorporations" or "mapSovereignty" are populated, none of the character specific is. I've modified the "utilSection" table and the other "util" one. Thanks for any help (and sorry for my english )
|
Steven Trux
State War Academy
|
Posted - 2011.03.15 08:03:00 -
[648]
Nobody can help me?
|
Ramov Tinoga
Tinoga Enterprises
|
Posted - 2011.03.15 13:05:00 -
[649]
Do your utilRegistered* tables contain entries with the activeAPI column being non-empty and isActive = 1?
Without that, yapeal will only fetch non-character related data from the API. -----
|
Steven Trux
State War Academy
|
Posted - 2011.03.15 13:17:00 -
[650]
Yes they do. activeApi = http://api.eve-online.com isActive = 1
|
|
Sohlstyss Mahm
|
Posted - 2011.03.15 19:55:00 -
[651]
ActiveAPI must contain a list of APIs separated by spaces.
Example: WalletJournal IndustryJobs
|
Steven Trux
State War Academy
|
Posted - 2011.03.15 20:15:00 -
[652]
Thank you so much Now works like a charm
|
Dragonaire
Caldari Corax. Everto Rex Regis
|
Posted - 2011.03.16 04:17:00 -
[653]
If you are writing an application you might also look at using class/util/Registered*.php and the other classes there to manage the tables you'll need to make things work. In the README file you'll find some links to the wiki where you'll find more information on how everything works together. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. Everto Rex Regis
|
Posted - 2011.04.07 15:01:00 -
[654]
Probably the last post on the old forums I've started a new thread on the new forums for Yapeal which you can find at https://forums.eveonline.com/default.aspx?g=posts&t=4266&find=unread -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Mikokoel
|
Posted - 2011.04.17 09:48:00 -
[655]
new forums
I have recently seen this project and I'm very amazed at all the work you and others? put into this project.
Last year you blogged about Memory Problems when used with lots of API-Keys and large API-Calls like AssetList and so on.
I plan using your library for an industrial planning tool. There will be around 40 Full API-Keys involved and API-Calls like AssetList will be used often.
Do you recommend using your library for this type of project or would you advise me something else?
Keep up your great work!
Mikokoel
|
Dragonaire
Caldari Corax. Everto Rex Regis
|
Posted - 2011.04.18 04:59:00 -
[656]
The memory problem have already been solved by going to XMLReader soon after those blogs. Yapeal has been used in applications with 100s to 1000s of characters and/or corporations and memory isn't a problem. At least it's not for Yapeal but sometimes the DB has problems keeping up because of memory or I/O bandwidth problems -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. Everto Rex Regis
|
Posted - 2011.06.06 08:13:00 -
[657]
Hi all know it's been a little quiet for development lately but I've been having multiple computer issues and been working on another project related to Yapeal.
Seems I missed any Dev Blogs about NPC corps now returning data for CorporationSheet so when someone brought it to my attention in issue 73 I made a change that now will let it work with them. Let me know if there are any other APIs that need to be updated because NPC data is now available for them as well. Fix is in SVN on GoogleCode and I'll try to get it pushed over to SourceForge soon.
Now for a little background on the other project I've been working on. You can find it at https://sourceforge.net/projects/xmlschema/
As most of you know ADOdb is use in Yapeal and during the install it uses the ADOdb Data Dictionary Library from ADOdb to build the SQL needed to make the database tables from the XML files in install/. It has worked well generally but has a few quarks and 'features' to it that make doing some things like updates more difficult than it should be. It also lacked some features that would make it vastly more useful IMHO. To make a long story shorter a friend (Johnathan Roark) and I in the end ended up branch the old unmaintained project on SF and started a new one. Johnathan took on the job of rewriting the table extract code so it used DOM instead of the hand coded strings it had before so it could be more easily maintained. I took on the task of rewriting the rest of the code used to make the SQL from the XML.
While we were at it I thought it would be a 'Good Idea' to also make a <schema version="0.4"/> with some of the new features that we had come up with.
The first thing needed was to convert everything away from XML Parser which is based on James Clark's expat to something more programmer friendly like XML Reader which is used in Yapeal but to do so someone (Dragonaire) had to learn how XML Parser worked. For anyone else trying to do the same thing make it easier on yourself and just make your own code that takes your input XML and gives the right result as trying to do it like I did is NOT the best way but was needed for backwards compatibility.
Okay to sum it up and not bore everyone anymore, do to backward compatibility and feature creep in the project what should have been at most a 1-2 month project has turned into a 6 month and counting one In the end I know it'll be worth it for how it will let Yapeal be more forgiving during installs and upgrades but does mean Yapeal will mostly be in bug fix only mode for a while longer.
revision 1170 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
CTapocTAevp
|
Posted - 2011.07.02 14:22:00 -
[658]
Pls show me any project site for use Pheal =)
|
Johnathan Roark
Caldari The Graduates Morsus Mihi
|
Posted - 2011.07.03 02:53:00 -
[659]
Originally by: CTapocTAevp Pls show me any project site for use Pheal =)
I'm guessing your in the wrong thread?
POS-Tracker 3.0 Hosting |
Fredrick Engly
RaVal Thyokill Industies Inc. Intergalactic Exports Group
|
Posted - 2011.07.09 16:33:00 -
[660]
Edited by: Fredrick Engly on 09/07/2011 16:33:42 Now getting WARNING: Caching invalid API XML for char/WalletTransactions File: /blah/class/YapealApiCache.php(177)
and WARNING: Caching invalid API XML for corp/WalletTransactions File: /blah/class/YapealApiCache.php(177)
Can send files if needed |
|
Rottw Adleweh
|
Posted - 2011.07.11 20:26:00 -
[661]
I'm currently experiencing some problems with r1171. The wallet transactions don't seem to get fetched and I see this message in the logs:
Quote: WARNING: Row has extra unknown fields (journalTransactionID) that will be ignored for corpWalletTransactions File: /Library/Yapeal/class/YapealQueryBuilder.php(191)
Although to my interpretation of the message my transactions should still be written to the database.
Plus:
Quote: WARNING: API connection error: Operation too slow. Less than 10 bytes/sec transfered the last 12 seconds HTML error for API http://api.eveonline.com/eve/ConquerableStationList.xml.aspx File: /Library/Yapeal/class/YapealNetworkConnection.php(93)
And finally very often:
Quote: WARNING: API connection error: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Does anyone has an idea what the problem is and if it's fixable?
|
Johnathan Roark
Caldari The Graduates Morsus Mihi
|
Posted - 2011.07.11 22:49:00 -
[662]
Originally by: Rottw Adleweh I'm currently experiencing some problems with r1171. The wallet transactions don't seem to get fetched and I see this message in the logs:
Quote: WARNING: Row has extra unknown fields (journalTransactionID) that will be ignored for corpWalletTransactions File: /Library/Yapeal/class/YapealQueryBuilder.php(191)
Although to my interpretation of the message my transactions should still be written to the database.
ALTER TABLE `corpWalletTransactions` ADD `journalTransactionID` BIGINT( 20 ) NOT NULL DEFAULT '0'
Stealth addition to the api?
Originally by: Rottw Adleweh
Plus:
Quote: WARNING: API connection error: Operation too slow. Less than 10 bytes/sec transfered the last 12 seconds HTML error for API http://api.eveonline.com/eve/ConquerableStationList.xml.aspx File: /Library/Yapeal/class/YapealNetworkConnection.php(93)
And finally very often:
Quote: WARNING: API connection error: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
Does anyone has an idea what the problem is and if it's fixable?
the first one means ccp server was being slow so yapeal gave up, the second one is, or at least I suspect, CCP load balances the API servers across several actual servers, and one of them has a broken ssl install. So unless you can fix ccp's servers, its not fixable, but normally it will correct itself.
POS-Tracker 3.0 Hosting |
Johnathan Roark
Caldari The Graduates Morsus Mihi
|
Posted - 2011.07.11 23:12:00 -
[663]
Originally by: Fredrick Engly Edited by: Fredrick Engly on 09/07/2011 16:33:42 Now getting WARNING: Caching invalid API XML for char/WalletTransactions File: /blah/class/YapealApiCache.php(177)
and WARNING: Caching invalid API XML for corp/WalletTransactions File: /blah/class/YapealApiCache.php(177)
Can send files if needed
xmllint --noout --schema WalletTransactions.xsd WalletTransactions.xml run that command from a shell on the cached XML file.
I think its part of libxml on ubuntu, not sure about other distros
POS-Tracker 3.0 Hosting |
Dragonaire
Caldari Corax.
|
Posted - 2011.07.12 02:26:00 -
[664]
Hi, it seems there was a change to the WalletTransactions API that wasn't in the notes I've updated the cache/*/*.xsd, install/corp.xml and install.char.xml files to reflect the new journalTransactionID field. You'll need to update your database using install\createMySQLTables.php as per step 8 in INSTALL.txt.
I've added an updated cert file in config/eveonline.crt to see if that helps with the other APIs errors that people have been having.
revision 1175 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Rottw Adleweh
|
Posted - 2011.07.12 19:59:00 -
[665]
Edited by: Rottw Adleweh on 12/07/2011 20:03:10 Edited by: Rottw Adleweh on 12/07/2011 20:02:35
Originally by: Dragonaire Hi, it seems there was a change to the WalletTransactions API that wasn't in the notes I've updated the cache/*/*.xsd, install/corp.xml and install.char.xml files to reflect the new journalTransactionID field. You'll need to update your database using install\createMySQLTables.php as per step 8 in INSTALL.txt.
I've added an updated cert file in config/eveonline.crt to see if that helps with the other APIs errors that people have been having.
revision 1175
Confirming this works to fix the WalletTransaction stuff.
I do still get some (but much less than before) SSL errors. And some of these:
Quote: WARNING: API connection error: Operation too slow. Less than 10 bytes/sec transfered the last 12 seconds HTML error for API http://api.eveonline.com/account/AccountStatus.xml.aspx File: /Library/Yapeal/class/YapealNetworkConnection.php(93)
I know I have a slow connection, but not that slow ;) I also find it interesting to see the http instead of https, I see them on several API calls including Characters and ServerStatus which are all in the /server or /account API calls, maybe that has something to do with it?
Oh and while running the install/createMySQLTables.php script I got this:
Quote: Failed to execute schema for util Not all files processed correctly
I'm not sure on the cause of it, but it happened to both of my instances of yapeal that I run, which both have their origin quite a few versions back.
|
Dragonaire
Caldari Corax.
|
Posted - 2011.07.13 14:48:00 -
[666]
Quote: I know I have a slow connection, but not that slow ;) I also find it interesting to see the http instead of https, I see them on several API calls including Characters and ServerStatus which are all in the /server or /account API calls, maybe that has something to do with it?
Thank you for noticing that Yapeal was still using HTTP instead of HTTPS on some calls that seems to be the root cause of all the errors that everyone has been having Seems I might need to take back some of the things I wrote about CPP and the even worse ones I'd been thinking as it was an error in Yapeal after all What was going on is because of Yapeal trying to use the same connection over and over again when it can but switching between HTTP then HTTPS or the other way around Yapeal was confusing the poor API servers I'm sure. Most the time they could adapt to the switch but once in a while either a packet gets drop while making switch some where on the Internet (UNKNOWN PROTOCOL) or they simple were busy enough they couldn't switch as fast as needed or were just plain confused (Operation too slow.)
As to how everything didn't get converted to HTTPS I'm guessing it happened during the merge of the branch where I was testing HTTPS into trunk or right after that when something got reverted when it shouldn't have been either way I know who did it (ME) and they have been beaten severely for it I can assure you
Quote: Failed to execute schema for util Not all files processed correctly
Not sure why it does that, it sometimes happens to me too, but as long as DB and tables in util* get created it should be ok. If you want you can try running the cache/util.sql that is generated as well by script directly in MySQL just to make sure everything is all right. I believe in part I'm running up against some bug or limitation in ADOdb Data Dictionary. One reason a friend and I decided to branch the old project is to fix some know problems with it and try to add things to it to make it more useful for ourself in our other projects like Yapeal etc plus everyone else that might find it useful.
Anyway everyone please upgrade to revision 1176 and let me know if that fixes the problems with connections. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Rottw Adleweh
|
Posted - 2011.07.13 19:03:00 -
[667]
Edited by: Rottw Adleweh on 13/07/2011 19:04:04 Sorry ... I didn't wanna make you look bad
I'm running r1176 now for a few hours and no SSL errors poked up, so I believe it's completely fixed now.
Oh, and did I already say somewhere that you really rock for making yapeal?
|
Dragonaire
Caldari Corax.
|
Posted - 2011.07.13 21:35:00 -
[668]
Not your fault I just missed it in all of my checking and no one else had noticed it. I know at one time I had changed all the APIs in trunk/ but somehow some of them reverted and I didn't catch it because I knew it had been changed I'm just glad it's fixed now.
I'm glad you've found Yapeal useful and hopefully I'll have a chance soon to do some additions to it not just be in bug fix/maintenance mode. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Mintoko
Gallente Taedium In Perpetuam
|
Posted - 2011.07.20 05:10:00 -
[669]
Originally by: Dragonaire
Quote: Failed to execute schema for util Not all files processed correctly
Not sure why it does that, it sometimes happens to me too, but as long as DB and tables in util* get created it should be ok. If you want you can try running the cache/util.sql that is generated as well by script directly in MySQL just to make sure everything is all right. I believe in part I'm running up against some bug or limitation in ADOdb Data Dictionary. One reason a friend and I decided to branch the old project is to fix some know problems with it and try to add things to it to make it more useful for ourself in our other projects like Yapeal etc plus everyone else that might find it useful.
Anyway everyone please upgrade to revision 1176 and let me know if that fixes the problems with connections.
Previous revisions were giving me random multiple table creation failures. The latest revision only had one, char.xml. After attempting to run the tables with the cached SQL file, mysql reported the following:
Error Code: 1071. Specified key was too long; max key length is 767 bytes
CREATE TABLE yap_charAttributeEnhancers ( `ownerID` BIGINT(20) UNSIGNED NOT NULL, `augmentatorName` VARCHAR(255) NOT NULL, `augmentatorValue` TINYINT(2) UNSIGNED NOT NULL, `bonusName` VARCHAR(255) NOT NULL, PRIMARY KEY (`ownerID`, `bonusName`) ) ENGINE = InnoDB COLLATE = utf8_unicode_ci
I remember reading something about differences in key length between InnoDB and MyISAM, so I switched the engine and ran the query again with success.
|
Dragonaire
Caldari Corax. PURgE Alliance
|
Posted - 2011.07.22 15:16:00 -
[670]
Think I know why you're getting that error and it has to do with bonusName length being 255 and using UTF-8 collate. I'll look into fix for it but something you can do manually is just convert it to ASCII as none of the current API use any characters outside that range.
Here's a link describing the problem http://bugs.mysql.com/bug.php?id=4541 I might have notice this sooner but I've been trying out http://mariadb.org/ and http://www.tokutek.com/ and not running the standard MySQL version and they seem to have already fixed that bug. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Zeta Zhul
Caldari Preemptive Paranoia
|
Posted - 2011.07.27 03:25:00 -
[671]
Does anybody have a master list of the API names that should go into the yapeal.utilregistereduser.activeAPI?
And the yapeal.utilregisteredcharacter.activeAPI?
And the yapeal.utilregisteredcorporation.activeAPI?
Do I have to populate the yapeal.utilregisteredcharacter table manually?
Sorry but the documentation doesn't actually contain any instructions on that and now I'm going through the 22 pages of comments in this thread trying to see if anything is mentioned here. I checked the wiki; nothing. Checked the blog; nothing. So any help would be greatly appreciated.
|
Dragonaire
Caldari Corax. PURgE Alliance
|
Posted - 2011.07.27 04:48:00 -
[672]
Simple way to know is look at which APIs have classes in class/api/ but you seem to have missed some info while looking at the wiki as well. I know it might be a little hard to find one named APIList but that was the best I could come up with sorry. Here's a link for you http://code.google.com/p/yapeal/wiki/APIList it might be a little out of date a few more probably work now but like I said take a look in class/api/ and it should give you a better idea. While you're looking at the wiki you might also try looking at the couple featured page called KeyFiles and UsingClassUtilClasses and you should be able to figure out why you may not be getting anything in your tables but just a couple hints here for you check your isActive columns in all the utilRegistered* tables and make sure the APIs are listed in utilSections as well. If that doesn't get you on the right track sent me an E-mail at my G-mail account which you can find from the website and I'll be more than happy to help you further. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Zeta Zhul
Caldari Preemptive Paranoia
|
Posted - 2011.07.27 16:24:00 -
[673]
Originally by: Dragonaire Simple way to know is look at which APIs have classes in class/api/ but you seem to have missed some info while looking at the wiki as well. I know it might be a little hard to find one named APIList but that was the best I could come up with sorry. Here's a link for you http://code.google.com/p/yapeal/wiki/APIList it might be a little out of date a few more probably work now but like I said take a look in class/api/ and it should give you a better idea. While you're looking at the wiki you might also try looking at the couple featured page called KeyFiles and UsingClassUtilClasses and you should be able to figure out why you may not be getting anything in your tables but just a couple hints here for you check your isActive columns in all the utilRegistered* tables and make sure the APIs are listed in utilSections as well. If that doesn't get you on the right track sent me an E-mail at my G-mail account which you can find from the website and I'll be more than happy to help you further.
1. First off thanks for the quick reply and thank you for the work you've done on this package. The following are not criticisms. Believe me if I were in this to criticize it wouldn't be hard to tell.
This is more of a "how the heck did I get there" sort of thing. Might make things easier at a later point.
2. I looked at utilsections but discounted it since the 'section' column didn't have a 1-1 correspondence with the utilRegistered* tables. e.g. there is a utilRegisteredUser table but not a utilRegisteredAccount. I was also curious about the presence of the 'isActive' column there but couldn't figure out why you'd need an 'isActive' column in each of the utilRegistered* tables and in the utilSection table.
3. I looked at the wiki.APIList page but discounted that since there wasn't any reference to utilRegisteredUser table (as an example) a single reference to 'account/' api (which I thought was a reference to a php script) and it only listed "Characters" and didn't list "AccountStatus".
Additionally there were other discrepancies in the api listed: (bolded are missing from the wiki page)
A. account = "AccountStatus Characters"
B. char = "AccountBalance AssetList CharacterSheet ContactList ContactNotifications IndustryJobs KillLog MailingLists MailMessages MarketOrders Notifications Research SkillInTraining SkillQueue Standings WalletJournal WalletTransactions"
C. corp = "AccountBalance AssetList ContactList CorporationSheet ContainerLog IndustryJobs KillLog MarketOrders Medals MemberMedals MemberTracking OutpostList Standings StarbaseList StarbaseDetail WalletJournal WalletTransactions"
D. eve = "AllianceList ConquerableStationList ErrorList RefTypes"
E. map = "FacWarSystems Kills Jumps Sovereignty"
F. server = "ServerStatus"
G. yapeal = "CachedUntil Config RegisteredCharacter RegisteredCorporation RegisteredUser"
IMO 'yapeal' part of the APIList wiki page really kind of confused me because when I thought perhaps this page listed the data that was supposed to go into the activeAPI columns ... I couldn't figure out how or where the list for 'yapeal' was supposed to go.
...
Looking back I understand the design strategy but I have to say that trying to find the list of activeAPI data was probably the most frustrating thing imaginable.
|
Callean Drevus
Caldari Icosahedron Crafts and Shipping Silent Infinity
|
Posted - 2011.07.27 17:22:00 -
[674]
Edited by: Callean Drevus on 27/07/2011 17:21:57 Well, the whole yapeal installation/activation procedure is kinda esoteric but when you have finally succeeded, it works almost perfectly (I'm still getting a lot of errors, but everything is updated, so... meh) though it might be a good idea if one of us actually wrote up a installation procedure that others could follow --- "A fool flatters himself, a wise man flatters the fool."
Chief Developer of EVE Marketeer. |
Dragonaire
Caldari Corax. PURgE Alliance
|
Posted - 2011.07.27 20:53:00 -
[675]
I had at least 5 people say they are going to write some install and setup instruction and I've only ever got a few step of it from them each time and I'm not good at writing that kind of docs I'm sorry. I see Yapeal from a much different way since I'm writing the code than someone just trying to use it. I've tried it myself and it never really seems to be very useful for people. I will highlight one more wiki page I missed before which may help clue you in on how everything in util* work together. UtilDatabaseTableDependences
The best way to think of it is everything in util* tables is used for admin of the actual API tables. As to the API and user thing that was because with the old API system the keys belonged to the account/User and since it was the UserID and APikeys Yapeal needed to get the data from the API server the table got name after that. I want to let people have control over which of the account API Yapeal would retrieve so to make it similar to the other utilRegistered* tables I added the stuff there. I'll let you read the wiki page and I think you'll understand better how the tables work together. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Zeta Zhul
Caldari Preemptive Paranoia
|
Posted - 2011.07.28 02:51:00 -
[676]
Hey there!
1. Hey I understand completely. This is the reason why it's really tough for a programmer to test a project because you know how works inside and out. And this isn't a criticism because if it were then I'd be just as guilty 50 times over.
2. IMO I'd just go ahead and pick a wiki page and then just list the api codes and the utilRegistered* table they belong to.
-or-
3. Modify the database creation step to add a single record to each of the utilRegistered* tables with the isActive column set to 0 (false) and a note that these are examples only.
Otherwise once it's all set up it works pretty nice. Thanks again!
|
Dragonaire
Caldari Corax. PURgE Alliance
|
Posted - 2011.07.28 04:09:00 -
[677]
Actually the util* tables are going to be undergoing some changed because of the new custom API key system that CCP is rolling out in just over a month so I'm having to do some large changes in Yapeal and I'm hoping to normalize the tables while I'm at it so I'll be revisiting all the docs when that happens. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Rex Golden
|
Posted - 2011.08.01 03:32:00 -
[678]
Edited by: Rex Golden on 01/08/2011 03:33:47 nice tool :P
|
Dragonaire
Caldari Corax. PURgE Alliance
|
Posted - 2011.08.01 16:35:00 -
[679]
Thanks Rex Golden glad you like it.
Ok decided I'd update everyone on what's going on with Yapeal with the new custom keys stuff coming out sometime around the end of the month. I start working on the conversion when CCP Stillman announced the time frame etc in the Customizable API key update thread. Some parts of it are still in flux and it is a big change but after taking some time to understand it and make a few suggestions on changes to them I started working on the new tables and code to work with the new keys. I have a branch going with some working code in it but be warned its very much ALPHA and there's no documentation on how things work but account, eve, map, server APIs do seem to be working right now. For anyone that wants to try it and is okay with code that can crash without warning and take your data with it while having the possibly of your computer giving birth to strange things like hamsters here's a few pointers.
- The utilAccessMask table is the key to new activeAPIMask column that has replaced activeAPI in the util* tables.
- The utilRegisteredKey table is your new best friend.
- Yapeal has totally forgot what a userID, fullAPIKey, limitAPIKey is for.
- Try using this for proxy in utilSections table: https://apitest.eveonline.com/%section$s/%api$s.xml.aspx
I'm sure there's more I could add but that should be enough for anyone that really should be trying out the new code as it now works. One last warning for anyone that hasn't thought of it. DO NOT TRY UPDATING EXIST DATABASE TO WORK WITH NEW BRANCH. First it'll probably not work and second to will totally trash your existing data. Use a new database to try it out with and make sure you change the settings in config/yapeal.ini so as not to interfere with any production version you may have on the same server.
As usual report any bugs here or preferably through issues on website. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Callean Drevus
Caldari Icosahedron Crafts and Shipping Silent Infinity
|
Posted - 2011.08.07 10:41:00 -
[680]
Edited by: Callean Drevus on 07/08/2011 10:42:04 Can I ask whether you will handle the issue where charMarketOrders are now forever open? I know this is a problem that CCP introduced, but it's still something that's been bothering me for a while.
Or will you just wait till CCP releases a fix, so you'll not have to do the same work twice?
I'm only asking you this because I'm kinda lazy. I'd fix it myself and submit the fix to you, but something tells me that you'd be able to do it about 10 times faster ;) --- "A fool flatters himself, a wise man flatters the fool."
Chief Developer of EVE Marketeer. |
|
Dragonaire
Caldari Corax. PURgE Alliance
|
Posted - 2011.08.07 15:30:00 -
[681]
Until after the conversion to custom keys is done and on Tranquility and any bugs from conversion in Yapeal are worked out I don't plan on doing anything else. As you said CCP is working on a fix which hopefully is include before or with custom keys so it's going to stay in wait and see mode for now. If they hold to the stated time-line we'll only have a little over 3 weeks before custom keys is out. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Callean Drevus
Caldari Icosahedron Crafts and Shipping Silent Infinity
|
Posted - 2011.08.07 21:56:00 -
[682]
Ok, thanks for the info :) have made a very ugly but working solution for now.
Hope to see awesome customizable keys ^^ --- "A fool flatters himself, a wise man flatters the fool."
Chief Developer of EVE Marketeer. |
Dragonaire
Caldari Corax. PURgE Alliance
|
Posted - 2011.08.15 05:33:00 -
[683]
Ok thought it was time for a little update on the progress I've made on conversion to custom keys. There is an ALPHA branch that is ready for anyone that is willing to try it available in branches/keys/. I've also upload archives to SourceForge as well in downloads under keys/. It's by no means ready for production server but it's unlikely to cause your server to have hamsters now I haven't really updated to much of the docs to reflect changes so plan on puzzling over the DB util* tables for a while to understand them and reading through the code a bit as I've tried to comment it as I've made changes. What ever you do DON'T TRY TO UPDATE AN EXISTING DATABASE USING install/createMySQLTables.php as it'll die in a VERY nasty way and probably that your data with it. Use a new database on a test server to try this branch with. IF you have to use the same server as your main server that is running trunk/ make sure to have good backups just in case you forgot to configure something right and it gets clobbered.
That's it for now if you give it a try please report any bugs or errors you find on issue tracker from Google Code or here if you can't.
revision 1187 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Zaine Maltis
Innsmouth Enterprises
|
Posted - 2011.08.19 20:32:00 -
[684]
Edited by: Zaine Maltis on 19/08/2011 20:33:32 Yo, this looks pretty sweet. I've had a browse of your documentation and it seems like this doesn't support https://api.eveonline.com/char/UpcomingCalendarEvents.xml.aspx yet?
Am I just blind? If not, are you planning to add it?
-- Innsmouth Enterprises |
Johnathan Roark
Caldari The Graduates Morsus Mihi
|
Posted - 2011.08.20 02:48:00 -
[685]
Originally by: Zaine Maltis Edited by: Zaine Maltis on 19/08/2011 20:33:32 Yo, this looks pretty sweet. I've had a browse of your documentation and it seems like this doesn't support https://api.eveonline.com/char/UpcomingCalendarEvents.xml.aspx yet?
Am I just blind? If not, are you planning to add it?
That one looks like it wouldn't be too hard to add, its counterpart, tad more of a challenge. Atm I'm working on adding contracts. Dragonaire suckered me into it.
POS-Tracker 3.0 Hosting |
Dragonaire
Caldari Corax. PURgE Alliance
|
Posted - 2011.08.20 04:20:00 -
[686]
Quote: That one looks like it wouldn't be too hard to add, its counterpart, tad more of a challenge. Atm I'm working on adding contracts. Dragonaire suckered me into it.
Your idea to help plus it's been 3 different APIs you said you do before you finally did one before I give up on you doing it |
Johnathan Roark
Caldari The Graduates Morsus Mihi
|
Posted - 2011.08.20 04:23:00 -
[687]
Originally by: Dragonaire
Quote: That one looks like it wouldn't be too hard to add, its counterpart, tad more of a challenge. Atm I'm working on adding contracts. Dragonaire suckered me into it.
Your idea to help plus it's been 3 different APIs you said you do before you finally did one before I give up on you doing it
I never established a timeline for those! And you tired to sucker me into those ones as well. |
Dragonaire
Caldari Corax. PURgE Alliance
|
Posted - 2011.08.20 04:26:00 -
[688]
Originally by: Johnathan Roark
Originally by: Dragonaire
Quote: That one looks like it wouldn't be too hard to add, its counterpart, tad more of a challenge. Atm I'm working on adding contracts. Dragonaire suckered me into it.
Your idea to help plus it's been 3 different APIs you said you do before you finally did one before I give up on you doing it
I never established a timeline for those! And you tired to sucker me into those ones as well.
was your idea to add them |
Dragonaire
Caldari Corax. PURgE Alliance
|
Posted - 2011.08.20 19:43:00 -
[689]
Hi all just thought I'd put out an invitation out for any application developers that use Yapeal to join a chat channel where you can get some help on conversion to custom keys update. Others are welcome as well but things might not be as useful if you use another API library. Room: evephp Server: conference.eve-corporate.net Password: No password for now.
I'd like to thank Johnathan Roark for letting us use his server for this. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. PURgE Alliance
|
Posted - 2011.08.25 05:02:00 -
[690]
Ok I'd like to see Yapeal get some more testing before things go live so I'd like to invite anyone that is interested in helping out to try out the keys branch from SVN or in the downloads on SourceForge and give feedback on any problems or errors.
I'll try to do some kind of quick guide to things that are different and how to use it with SISI test API server in next day or two as well but I'd really like anyone that has used Yapeal in the recent past or never to let me know where you get lost in trying to use it so I can try to cover anything I might not think of on my own.
Make sure to check out the latest Yapeal blog as well at Peeling Yapeal for some info that you might find interesting and helpful. Sorry about the formating I did it in a hurry and don't have time to fix it right now You'll find a couple new APIs and there's a couple more being worked on as well that should be added very soon -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
Zaepho
Gallente Phoenix Propulsion Labs Omega Vector
|
Posted - 2011.08.30 18:31:00 -
[691]
Anybody have some experience with the updated version that they want to share?
I'm sure we won't see a ton until the official switch over (I know that's when I'm planning to start frantically working on it at least) but would love to hear of any gotchas and such.
I'm also very interested in any conversion possibilities from a live DB from the old keys to the new key system, or should I ditch my tables and start fresh?
|
Johnathan Roark
Caldari The Graduates Morsus Mihi
|
Posted - 2011.08.30 22:50:00 -
[692]
Originally by: Zaepho Anybody have some experience with the updated version that they want to share?
I'm sure we won't see a ton until the official switch over (I know that's when I'm planning to start frantically working on it at least) but would love to hear of any gotchas and such.
I'm also very interested in any conversion possibilities from a live DB from the old keys to the new key system, or should I ditch my tables and start fresh?
I haven't had any issues in testing it. To get yapeal to connect to the test server you'll want to fill in https://apitest.eveonline.com/%section$s/%api$s.xml.aspx for the proxy, I suggest for each section in utilSections. For testing purposes, I would start clean. Converting, I plan on dropping all account* and util* tables. Everything else I would make a backup of, which should be done anyway.
As for other bits, you may want to check this post out and swing by and chat with us on what your looking to do.
EVEVERIFY Recruitment API Verifier |
Dragonaire
Caldari Corax. PURgE Alliance
|
Posted - 2011.08.31 05:08:00 -
[693]
Hi all, So by this point I was figuring on having the wiki updated with info about the new custom keys and how they work in Yapeal but I've really ran out of time to do that with RL and the short time frame give by CCP so I'll try to hit the highlights here and direct you to where you can find some more info too. First I'd like to thank Johnathan Roark for all his help on stuff. He and I have helped each other on our varies projects before but he eve has gone so far as to add the new contract API this time around and should finish off the other contract APIs in the near future once CCP either fixes a issue we found with them or I've had a chance to work with him on working around it. He also was both my Alpha and first Beta tester so he got to see the code when it was still very broken in some cases and provided the great feedback that I always get from him.
As he pointed out in the post above me here it's best to drop all the tables in account* and util* from the database as they have had to undergo some major changes that can't be upgrade really. As always when upgrading the database you should have full backups of everything but none of the API table outside of account should have any large changes just a few minor fixes as usual when I notice something or someone else reports issues to me.
You will notice a few more APIs should be active by default now when you first install Yapeal. I'm trying to have some of the ones I felt everyone was likely to use active now but haven't had a lot of time to really go over them and make a firm list yet so do give me some feedback on which ones you'd like to see.
Ok so here a list of the big changes:
- New utilRegisteredKeys table - This replaces utilRegisteredUser in most ways and is the only Registered table that is always used.
- accountAPIKeyInfo table - This is the new table used to figure out key types and other info.
- accountCharacters - Merge with APIKeyInfo in effect as a rowset. The column names have changed to match the new source and no userID now.
- accountKeyBridge - Not really part of the APIs but it is the key to making connection between APIKeyInfo and Characters tables.
- util* - activeAPI is now activeAPIMask and instead of a list it is now a bitmap just like accessMask from APIKeyInfo. This has been expended on from what's in the APIs for the eve, map, and server sections
- utilAccessMask - Used to convert to and from new bitmap for masks. Should not need to use directly if using class/util/Registered*.php classes
- Registered*.php - These classes are provided to help other developers interface with Yapeal and internally too. If you have been currently using them only real change here is there is now a RegisteredKey instead of RegisteredUser.
- registered_mode setting - New setting found in config/yapeal-example.ini that should be checked out as it can have a large effect on how the char/ and corp/ sections work in Yapeal.
Ok running out of space so here's some links to more info. http://www.eveonline.com/ingameboard.asp?a=topic&threadID=1554297 http://peelingyapeal.blogspot.com/ http://code.google.com/p/yapeal/source/browse/#svn%2Fbranches%2Fkeys
Out of space hope those help. http://sourceforge.net/projects/yapeal/files/keys/Yapeal-developer-guide-keys.tar.bz2/download
-- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. PURgE Alliance
|
Posted - 2011.09.03 18:59:00 -
[694]
Ok I've now update the Yapeal main page with info from my public API key. To understand what a public key is all about take a look at the page.
While I'm posting I'll do a little update too. I'm still working on some of the error handling code mostly the part that tries to de-active keys/chars/corps etc when there something wrong with them or something. Some of you may have also seen that the notice log is a bit noisier then before because of some of the new changes to how keys work. I'm in the process of quieting it down again as well.
As always let me know if you are seeing anything you don't understand in the logs or new so I can look into them.
revision 1202 -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Eduardo'o
|
Posted - 2011.09.04 19:56:00 -
[695]
I got yapeal installed, did all the checks like mentioned in the install.txt file, so it all looks good. I browsed the documentation, but I could not find an exmaple of what tables to fill up in order for it to work correctly. Or a real example on how to use the classes to add keys. Can you point me to the documentation?
|
Dragonaire
Caldari Corax. PURgE Alliance
|
Posted - 2011.09.05 02:26:00 -
[696]
Unfortunately the docs are all very out of date because of the changes do to custom keys. But here's some tips on using it. The table you have to add stuff to is utilRegisteredKey. You'll need to look at registered_mode setting in config/yapeal.ini (make copy of yapeal-example.ini) to know if the other utilRegistered* tables are needed. For things you want to access the API the isActive column is important. It's in several of the util* tables and they do interact like the ones in utilSection are overall controls. Look through the featured wiki pages. They are out of date but as long as you think key where it says user it'll give you some idea how stuff works. I'll try to get the docs updated soon -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Eduardo'o
|
Posted - 2011.09.05 19:36:00 -
[697]
I found out why I probably find this all so hard, after I installed yapeal, the untilRegisteredKey table is simply not available.
I seem to have downloaded the old yapeal engine, although I only downloaded it today from sourceforge (linux version). Is there a seperate place where I can download the yapeal version that works with the new apis?
|
Dragonaire
Caldari Corax. PURgE Alliance
|
Posted - 2011.09.05 21:35:00 -
[698]
If you are looking for the zip or tar.bz2 archives they are in keys folder on SourceForge. If you are looking for the correct place in the SVN try getting it from branches/keys/ instead of trunk/. BTW it's utilRegisteredKey not untilRegisteredKey but I'll assume that was a typo -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
Dragonaire
Caldari Corax. PURgE Alliance
|
Posted - 2011.09.08 14:29:00 -
[699]
Ok going to try this again and move to the new forums. If you have questions or comments please post them there. New Yapeal Thread -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API.
|
|
|
|
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 .. 24 :: [one page] |