1. REGISTRATION REQUIREMENTS:

    Register with your xenforo.com Username then start a conversation at xenforo.com w/Bob and provide the following:
    1. Your XenForo License Validation Token
    2. The Domain Name associated with the License
    NOTE: Your account will be validated once ALL requirements are verified/met. Thank you for your patience.

Fixed Fatal error: Access to undeclared static property

Discussion in 'Stock Trader Resolved Bug Reports' started by Deebs, Jan 18, 2013.

  1. Deebs

    Deebs Member Showcase Pickem

    I get the following error message when attempting to access the stock trader url:

    Fatal error: Access to undeclared static property: NFLJ_StockTrader_Model_CurrencyExchange::$_usdExchangess in /data/websites/testforums/library/NFLJ/StockTrader/Model/CurrencyExchange.php on line 212

    The upgrade completed in the AdminCP and the options are all there and unchanged. I use GBP as the currency. Have triple checked the files are uploaded correctly.
     
  2. Bob

    Bob Developer Staff Member

    stupid extra s

    edit library/NFLJ/StockTrader/Model/CurrencyExchange.php

    line 212

    change
    PHP:
                    if (in_array($quote['exchange'], self::$_usdExchangess))


    to
    PHP:
                    if (in_array($quote['exchange'], self::$_usdExchanges))
     
    Deebs likes this.
  3. Bob

    Bob Developer Staff Member

    Download file updated for 1.0.0 that contains the fix. You can simply apply manually, or you can re-download the package and just upload the Currency Exchange Model (or all the files). You DO NOT need to run the XML file again.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.