WordPress.org

Forums

Stock Ticker
[resolved] Sorry, currently we can't get stock quotes (4 posts)

  1. godavid33
    Member
    Posted 1 year ago #

    Everything starts off fine but then the stock quotes go away and the text "Sorry, currently we can't get stock quotes" appears.

    https://wordpress.org/plugins/stock-ticker/

  2. urkekg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi godavid33,

    Initial release does not cache quotes from Yahoo Finance and on every load leave to visitor's browser to retrieve quotes (AJAX), and then parse results to ticker. It's probably client timeout issue (any suggestion is welcome).

    Can you provide site URL where you experiencing issue?

  3. godavid33
    Member
    Posted 1 year ago #

    Here is the URL: http://themreport.com/ticka-testa/

    I haven't looked at your code so I can't figure out exactly what is going on but I can surmise a guess that every iteration you are making a new API call. The problem happens when the following script is trying to be called:

    http://themreport.com/ticka-testa/?callback=po_onsuccess&popoverajaxaction=popover_selective_ajax&thefrom=http%3A%2F%2Fthemreport.com%2Fticka-testa%2F&thereferrer=http%3A%2F%2Fthemreport.com%2Fwp-admin%2Fpost.php%3Fpost%3D6911%26action%3Dedit%26message%3D6&active_popover=0&_=1392834986540

    and it 500's. I would suggest just making one API call per page load and storing the variables then re-using them.

  4. urkekg
    Member
    Plugin Author

    Posted 1 year ago #

    Can you please try with this development version http://urosevic.net/wordpress/?wpdmact=process&did=MTEuaG90bGluaw== (removed ajax setup, and moved calls to footer).

    Btw, I don't use API call for Yahoo Finance, but doing javascript load for quote JSON (like this), then JavaScript parse JSON and prepare ticker content.

    When YF have heavy load, drops can be experienced.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic