1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This area is dedicated to the support of our xF2 add-ons, for support of our xF1 add-ons please use the dedicated forums.
    Note that we only accept support question and bug reports in this section.

    For suggestions, please wait until xF2 stable is released as we'll reorganize our forum at that time and accept them.
Dismiss Notice
We have just posted about our product policy for XF2.
Click HERE to view it.

RM Marketplace Fixed Error when selecting to pay by Other Means

Discussion in 'Add-Ons Support' started by JayT, Feb 11, 2018.

  1. JayT

    JayT Member

    Joined:
    Jun 25, 2016
    Messages:
    97
    Likes Received:
    2
    Server error log
    • InvalidArgumentException: Accessed unknown getter 'xfa_rmmp_user_cgv' on XFRM:ResourceItem[14]
    • src/XF/Mvc/Entity/Entity.php:182
    • Generated by: JayT
    • Feb 11, 2018 at 6:05 PM
    Stack trace
    #0 src/XF/Mvc/Entity/Entity.php(100): XF\Mvc\Entity\Entity->get('xfa_rmmp_user_c...')
    #1 internal_data/code_cache/templates/l1/s19/public/xfa_rmmp_other_purchase_form.php(11): XF\Mvc\Entity\Entity->offsetGet('xfa_rmmp_user_c...')
    #2 src/XF/Template/Templater.php(1246): XF\Template\Templater->{closure}(Object(XFA\RMMarketplace\XF\Template\Templater), Array)
    #3 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xfa_rmmp_other_...', Array)
    #4 src/XF/Mvc/Renderer/Json.php(81): XF\Template\Template->render()
    #5 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\Json->renderHtmlFallback('', 'public:xfa_rmmp...', Array)
    #6 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Json->renderView('', 'public:xfa_rmmp...', Array)
    #7 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
    #8 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
    #9 src/XF/App.php(1889): XF\Mvc\Dispatcher->run()
    #10 src/XF.php(328): XF\App->run()
    #11 index.php(13): XF::runApp('XF\\Pub\\App')
    #12 {main}
    Request state
    array(4) {
    ["url"] => string(234) "/community/index.php?market/14/market-place-purchase/manual-purchase&_xfRequestUri=%2Fcommunity%2Findex.php%3Fmarket%2Ftre-og-x-stardawg-2.14%2F&_xfWithData=1&_xfToken=1518390316%2Cbe3b48946cd19446e743f6bc3c142c70&_xfResponseType=json"
    ["referrer"] => string(86) "https://www.co.nl/community/index.php?market/tre-og-x-stardawg-2.14/"
    ["_GET"] => array(5) {
    ["market/14/market-place-purchase/manual-purchase"] => string(0) ""
    ["_xfRequestUri"] => string(51) "/community/index.php?market/tre-og-x-stardawg-2.14/"
    ["_xfWithData"] => string(1) "1"
    ["_xfToken"] => string(43) "1518390316,be3b48946cd19446e743f6bc3c142c70"
    ["_xfResponseType"] => string(4) "json"
    }
    ["_POST"] => array(0) {
    }
    }

    Delete
     
  2. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    3,740
    Likes Received:
    556
    Hi,

    Edit the xfa_rmmp_other_purchase_form template.

    Search for:
    PHP:
    {$resource.xfa_rmmp_user_cgv}
    And replace by:
    PHP:
    {$resource.User.xfa_rmmp_user_cgv}
    Another change also now that I looked at the template, search for :
    PHP:
    {{ bb_code($xf.visitor.xfa_rmmp_user_cgv'user'$xf.visitor) }}
    And replace by:
    PHP:
    {{ bb_code($resource.User.xfa_rmmp_user_cgv'user'$resource.User) }}
     

Share This Page