[EDK4] Cronjob update all prices from eve-central

Discuss/Upload mods to the EVE-Dev Killboard.
User avatar
SirSteven
Greenhorn
Posts: 12
Joined: Sun Jul 27, 2014 23:19

Re: [EDK4] Cronjob update all prices from eve-central

Post by SirSteven »

prometh wrote:Could you upload that file somewhere?
Thanks for your support. Here is the existing data from the cache-folder:

http://www.file-upload.net/download-100 ... 4.xml.html
User avatar
Salvoxia
Developer
Posts: 1598
Joined: Wed Feb 22, 2012 12:11

Re: [EDK4] Cronjob update all prices from eve-central

Post by Salvoxia »

I say the XML looks fine and guess the symlink creation didn't work correctly. What do you think, prometh?
User avatar
prometh
Advanced
Posts: 170
Joined: Thu Aug 09, 2012 19:25
Contact:

Re: [EDK4] Cronjob update all prices from eve-central

Post by prometh »

Symlink should not be a problem since the value fetcher is called with the original file name. I think it might be a Problem using a local file as url once more. On what type of system did the error occur?
User avatar
SirSteven
Greenhorn
Posts: 12
Joined: Sun Jul 27, 2014 23:19

Re: [EDK4] Cronjob update all prices from eve-central

Post by SirSteven »

prometh wrote:Symlink should not be a problem since the value fetcher is called with the original file name. I think it might be a Problem using a local file as url once more. On what type of system did the error occur?
Might be a Windows-Server System, but I don't know it really. I have to contact the support of the provider to get this information, if it is important for this problem. Did I understand your question right, that the kind of System (Windows, Linuc etc.) is important for this problem?
User avatar
prometh
Advanced
Posts: 170
Joined: Thu Aug 09, 2012 19:25
Contact:

Re: [EDK4] Cronjob update all prices from eve-central

Post by prometh »

The problem is that the cron job produces a local file but the value fetcher expects an url. I guess the way i use a local file as url is a bit clumsy and causes the problem. I am on vacation until wednesday and will try to find a different way when I'm back.
User avatar
prometh
Advanced
Posts: 170
Joined: Thu Aug 09, 2012 19:25
Contact:

Re: [EDK4] Cronjob update all prices from eve-central

Post by prometh »

I just had a look at the xml file again and i realized you used v2 or 1. Could you please try the latest?
User avatar
SirSteven
Greenhorn
Posts: 12
Joined: Sun Jul 27, 2014 23:19

Re: [EDK4] Cronjob update all prices from eve-central

Post by SirSteven »

prometh wrote:The problem is that the cron job produces a local file but the value fetcher expects an url. I guess the way i use a local file as url is a bit clumsy and causes the problem. I am on vacation until wednesday and will try to find a different way when I'm back.
Okay, thank you very much for your support.
User avatar
prometh
Advanced
Posts: 170
Joined: Thu Aug 09, 2012 19:25
Contact:

Re: [EDK4] Cronjob update all prices from eve-central

Post by prometh »

Did the latest version work?
User avatar
SirSteven
Greenhorn
Posts: 12
Joined: Sun Jul 27, 2014 23:19

Re: [EDK4] Cronjob update all prices from eve-central

Post by SirSteven »

prometh wrote:Did the latest version work?
No, latest version gives following error message (using the original script):
#!/usr/bin/php
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /www/htdocs/w00f6769/killboard/common/includes/class.valuefetcher.php:104 Stack trace: #0 /www/htdocs/w00f6769/killboard/common/includes/class.valuefetcher.php(104): SimpleXMLElement->__construct('0') #1 /www/htdocs/w00f6769/killboard/cron/cron_evec.php(185): valueFetcher->fetch_values() #2 {main} thrown in /www/htdocs/w00f6769/killboard/common/includes/class.valuefetcher.php on line 104
The market-data stat was created in cache-folder as followed:

marketdata20150105.xml
User avatar
prometh
Advanced
Posts: 170
Joined: Thu Aug 09, 2012 19:25
Contact:

Re: [EDK4] Cronjob update all prices from eve-central

Post by prometh »

SirSteven wrote:
prometh wrote:Did the latest version work?
No, latest version gives following error message (using the original script):
#!/usr/bin/php
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /www/htdocs/w00f6769/killboard/common/includes/class.valuefetcher.php:104 Stack trace: #0 /www/htdocs/w00f6769/killboard/common/includes/class.valuefetcher.php(104): SimpleXMLElement->__construct('0') #1 /www/htdocs/w00f6769/killboard/cron/cron_evec.php(185): valueFetcher->fetch_values() #2 {main} thrown in /www/htdocs/w00f6769/killboard/common/includes/class.valuefetcher.php on line 104
The market-data stat was created in cache-folder as followed:

marketdata20150105.xml
I've sent you a version to test whether its the local file thingy.
Post Reply