• Resolved niclasto

    (@niclasto)


    Hello,

    for some months the plugin worked fine but now I have some problems with it.
    It did no longer update so I clicked on “Fetch Stock Data Now”. Below is the result of it. As you can see on my website, in four of seven cases it only shows a zero instead of the quotation.

    “Reset fetching loop and fetch data again. Please wait…

    [Invalid API call] EURUSD (test)
    [OK] ^GDAXI
    [OK] VIX
    [OK] ^DJI
    [OK] ^TNX
    [OK] EURGBP
    [OK] EURCHF

    [] Stock Ticker Fatal Error: Failed to save stock data for to database!”

    Could you please help me with it?

    Many thanks

    Regards,

    Niclas

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi @niclasto,

    Looks that AlphaVantage.co does not provide anymore quotes for currencies if symbol does not contain ‘=X’.

    Change this EURUSD,EURCHF,EURGBP to this EURUSD=X,EURCHF=X,EURGBP=X and try again. Does that work?

    Aleksandar

    Thread Starter niclasto

    (@niclasto)

    Hi Aleksandar,

    unfortunately not. I entered this “EURUSD=X,^GDAXI,VIX,^DJI,^TNX,EURGBP=X,EURCHF=X,” but I got this note:

    Reset fetching loop and fetch data again. Please wait…

    [EURUSD=X] Stock Ticker Fatal Error: Failed to save stock data for EURUSD=X to database!

    Besides, the VIX Index does not work either even though it is not a currency.

    Thanks

    Niclas

    Thread Starter niclasto

    (@niclasto)

    Now this appears:

    Reset fetching loop and fetch data again. Please wait…

    [OK] EURUSD=X
    [OK] ^GDAXI
    [OK] VIX
    [OK] ^DJI
    [OK] ^TNX
    [OK] EURGBP=X

    [] Stock Ticker Fatal Error: Failed to save stock data for to database!

    But still does not work for most quotes.

    Hi @niclasto,

    I’ll need to add better cleanup for AllSymbols, because ti trying to fetch stock data for empty string.
    Please remove comma at the end of AllSymbols string, so this
    EURUSD=X,^GDAXI,VIX,^DJI,^TNX,EURGBP=X,EURCHF=X,
    to be like this:
    EURUSD=X,^GDAXI,VIX,^DJI,^TNX,EURGBP=X,EURCHF=X

    Does that work?

    Hi again @niclasto,

    I just released version 3.0.5.4 of plugin with couple bugfixes, including better AllSymbols and Symbols sanitization.

    Please upgrade plugin and try again.

    If new version does not become available through wordpress.org update system soon, you can grab it from official plugin GitHub https://github.com/urosevic/stock-ticker/releases/tag/v3.0.5.4

    Cheers,
    Aleksandar

    Thread Starter niclasto

    (@niclasto)

    Hi Aleksandar,

    still does not work properly even though I get the message “Done” after fetching stock data. For some reason it varies but right now ‘only’ EUR/GBP and EUR/CHF does not work.

    Might you have another approach?

    Regards,

    Niclas

    Hi @niclasto,

    I got it! AlphaVantage.co set limit for free API keys to 5 requests per minute. This is what AV.co respond with (new status, not covered by Stock Ticker):

    Thank you for using Alpha Vantage! Please visit https://www.alphavantage.co/premium/ if you would like to have a higher API call volume.

    So, back to the drawing board. I’ll release new update during the weekend, to handle that limitation.

    Regards,
    Aleksandar

    Thread Starter niclasto

    (@niclasto)

    Hi Aleksandar,

    thank you very much for your help!

    I ll try it later then again.

    Regards,

    Niclas

    Thread Starter niclasto

    (@niclasto)

    Hi Aleksandar,

    I still have the problem with the currencies. Could you already find a solution to solve this problem?

    Many thanks

    Niclas

    Hi Aleksandar,

    I am having the same issue. I keep getting Fatal errors

    Reset fetching loop and fetch data again. Please wait…

    [OK] ^N225
    [OK] ^DJI
    [OK] ^SPX
    [Invalid API call] ^UKX (test)
    [OK] ^RUT

    [^IXIC] Stock Ticker Fatal Error: Failed to save stock data for ^IXIC to database!

    Sometimes the ticker updates sometimes it gets a fatal error.

    My fetch timeout is 10 seconds and cachetime out is 270

    Hi @niclasto and @midknightgenius

    Could you please test development version from my GitHub repository https://github.com/urosevic/stock-ticker

    I have no chance to well test upcoming version and polish it up within next month or two, but that one from GitHub could be a proper solution for all users hit by fee tier limitations introduced by AlphaVantage

    Thank you in advance,
    Aleksandar

    Aleksandar:
    I have read this post and am having the same problem: During the “fetch” I get the fatal error message after 5 stock symbols are handled. I am using version 3.0.5.4. I am also using the latest version of WordPress 5.0.2. I see where there is a note on the WP plugin page that you have not tested your latest version of Stock Ticker with WP 5.0.2. Please advise as to what I need to do to fix this issue. I suspect the issue is with AlphaAdvantage, as you have indicated above and not because I am running WP 5.0.2. Please advise if there is a fix. Regards-r

    Looks like this plugin has been rendered useless. No response from author. Uninstalling and moving on.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘‘Fatal Error’ shows up’ is closed to new replies.