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 xF1 add-ons. For xF2, please use the dedicated area: HERE.
Dismiss Notice
We have just posted about our product policy for XF2.
Click HERE to view it.

Bug Fixed Argument 1 passed to XFA_RMMarketPlace_Extends_XenResource_Model_Category::canAskForPayment()

Discussion in 'RM Marketplace' started by doublespaces, Jun 12, 2017.

  1. doublespaces

    doublespaces Member

    Joined:
    Jan 13, 2017
    Messages:
    92
    Likes Received:
    0
    Adress:
    Chandler, AZ, United States
    Country:
    Location on Map:
    Code:
    ErrorException: Argument 1 passed to XFA_RMMarketPlace_Extends_XenResource_Model_Category::canAskForPayment() must be of the type array, boolean given, called in /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XFA/RMMarketPlace/Extends/XenResource/ControllerPublic/Resource.php on line 591 and defined - library/XFA/RMMarketPlace/Extends/XenResource/Model/Category.php:13
    Generated By: doublespaces, Jun 5, 2017
    Stack Trace
    #0 /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XFA/RMMarketPlace/Extends/XenResource/Model/Category.php(13): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/home/spoolstr/...', 13, Array)
    #1 /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XFA/RMMarketPlace/Extends/XenResource/ControllerPublic/Resource.php(591): XFA_RMMarketPlace_Extends_XenResource_Model_Category->canAskForPayment(false)
    #2 /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XenForo/FrontController.php(351): XFA_RMMarketPlace_Extends_XenResource_ControllerPublic_Resource->actionMarketPlaceCheckCategoryChange()
    #3 /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #4 /home/spoolstr/domains/spoolstreet.com/public_html/forums/index.php(13): XenForo_FrontController->run()
    #5 {main}
    Request State
    array(3) {
      ["url"] => string(83) "https://bmw.spoolstreet.com/index.php?resources/market-place-check-category-change/"
      ["_GET"] => array(1) {
        ["resources/market-place-check-category-change/"] => string(0) ""
      }
      ["_POST"] => array(5) {
        ["categoryId"] => string(1) "0"
        ["_xfRequestUri"] => string(18) "/shop/test.62/edit"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfToken"] => string(8) "********"
        ["_xfResponseType"] => string(4) "json"
      }
    }
    I paid another developer $80 to find this issue, he sent me a file which supposedly fixed this issue related to this:

    Can you please confirm and let me know if you pull this change into your code base.

    I have another error when editing and sometimes creating
    [​IMG]
    [​IMG]

    This appears each time I try to edit an existing shop item.
     
  2. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    3,404
    Likes Received:
    503
    You paid 80$ for that issue oO
     
  3. doublespaces

    doublespaces Member

    Joined:
    Jan 13, 2017
    Messages:
    92
    Likes Received:
    0
    Adress:
    Chandler, AZ, United States
    Country:
    Location on Map:
    Its a simple typo, but it was giving me errors and I need this working as its been broken on my site for some time. I've got two more errors just like that which I'd love to have fixed without paying 80 bucks again.

    Code:
    ErrorException: Argument 1 passed to XFA_RMMarketPlace_Extends_XenResource_Model_Category::canAskForPayment() must be of the type array, boolean given, called in /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XFA/RMMarketPlace/Extends/XenResource/ControllerPublic/Resource.php on line 591 and defined - library/XFA/RMMarketPlace/Extends/XenResource/Model/Category.php:13
    Generated By: doublespaces, Yesterday at 10:58 AM
    Stack Trace
    #0 /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XFA/RMMarketPlace/Extends/XenResource/Model/Category.php(13): XenForo_Application::handlePhpError(4096, 'Argument 1 pass...', '/home/spoolstr/...', 13, Array)
    #1 /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XFA/RMMarketPlace/Extends/XenResource/ControllerPublic/Resource.php(591): XFA_RMMarketPlace_Extends_XenResource_Model_Category->canAskForPayment(false)
    #2 /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XenForo/FrontController.php(351): XFA_RMMarketPlace_Extends_XenResource_ControllerPublic_Resource->actionMarketPlaceCheckCategoryChange()
    #3 /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #4 /home/spoolstr/domains/spoolstreet.com/public_html/forums/index.php(13): XenForo_FrontController->run()
    #5 {main}
    Request State
    array(3) {
      ["url"] => string(83) "https://bmw.spoolstreet.com/index.php?resources/market-place-check-category-change/"
      ["_GET"] => array(1) {
        ["resources/market-place-check-category-change/"] => string(0) ""
      }
      ["_POST"] => array(4) {
        ["_xfRequestUri"] => string(46) "/shop/used-dme-programming-to-your-cas.45/edit"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfToken"] => string(8) "********"
        ["_xfResponseType"] => string(4) "json"
      }
    }
    --------------------------

    Code:
    ErrorException: Undefined property: XenForo_ControllerResponse_Error::$redirectType - library/XFA/RMMarketPlace/Extends/XenResource/ControllerPublic/Resource.php:68
    Generated By: doublespaces, Yesterday at 10:58 AM
    Stack Trace
    #0 /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XFA/RMMarketPlace/Extends/XenResource/ControllerPublic/Resource.php(68): XenForo_Application::handlePhpError(8, 'Undefined prope...', '/home/spoolstr/...', 68, Array)
    #1 /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XFA/RMMultiCatResources/Extends/XenResource/ControllerPublic/Resource.php(54): XFA_RMMarketPlace_Extends_XenResource_ControllerPublic_Resource->actionSave()
    #2 /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XenForo/FrontController.php(351): XFA_RMMultiCatResources_Extends_XenResource_ControllerPublic_Resource->actionSave()
    #3 /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #4 /home/spoolstr/domains/spoolstreet.com/public_html/forums/index.php(13): XenForo_FrontController->run()
    #5 {main}
    Request State
    array(3) {
      ["url"] => string(73) "https://bmw.spoolstreet.com/shop/used-dme-programming-to-your-cas.45/save"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(21) {
        ["resource_category_id"] => string(0) ""
        ["title"] => string(32) "Used DME programming to your CAS"
        ["version_string"] => string(10) "2017-02-20"
        ["tag_line"] => string(33) "No need to buy new DME anymore :)"
        ["resource_payment"] => string(17) "resource_for_sale"
        ["xfa_rmmp_type"] => string(7) "service"
        ["xfa_rmmp_paypal"] => string(18) "levanime@gmail.com"
        ["xfa_rmmp_currency"] => string(3) "usd"
        ["xfa_rmmp_amount"] => string(6) "300.00"
        ["quantity"] => string(1) "0"
        ["sell_on_stockout"] => string(1) "0"
        ["xfa_rmmp_cgv_html"] => string(11) "<p><br></p>"
        ["_xfRelativeResolver"] => string(73) "https://bmw.spoolstreet.com/shop/used-dme-programming-to-your-cas.45/edit"
        ["message_html"] => string(374) "<p>Hi Guys,</p><p><br></p><p>If you need to program replacement, Used DME to your CAS we can do it.</p><p>We can do almost any DME,</p><p><br></p><p>You will need to ship replacement DME, CAS and a key and we will ship it back next business day (when USPS is open)</p><p><br></p><p>If needed, We can also program new key (we have keys)</p><p>[ATTACH=full]2409[/ATTACH]</p>
    "
        ["attachment_hash"] => string(32) "fc3f8131a03c6528d081ffd7d9491cb1"
        ["external_url"] => string(48) "https://www.facebook.com/BMWAdvancedProgramming/"
        ["resource_category_ids"] => array(1) {
          [0] => string(2) "15"
        }
        ["_xfToken"] => string(8) "********"
        ["_xfRequestUri"] => string(46) "/shop/used-dme-programming-to-your-cas.45/edit"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfResponseType"] => string(4) "json"
      }
    }
    ----------------------------

    Code:
    ErrorException: Undefined property: XenForo_ControllerResponse_Error::$redirectType - library/XFA/RMMultiCatResources/Extends/XenResource/ControllerPublic/Resource.php:56
    Generated By: doublespaces, Yesterday at 10:58 AM
    Stack Trace
    #0 /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XFA/RMMultiCatResources/Extends/XenResource/ControllerPublic/Resource.php(56): XenForo_Application::handlePhpError(8, 'Undefined prope...', '/home/spoolstr/...', 56, Array)
    #1 /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XenForo/FrontController.php(351): XFA_RMMultiCatResources_Extends_XenResource_ControllerPublic_Resource->actionSave()
    #2 /home/spoolstr/domains/spoolstreet.com/public_html/forums/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #3 /home/spoolstr/domains/spoolstreet.com/public_html/forums/index.php(13): XenForo_FrontController->run()
    #4 {main}
    Request State
    array(3) {
      ["url"] => string(73) "https://bmw.spoolstreet.com/shop/used-dme-programming-to-your-cas.45/save"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(21) {
        ["resource_category_id"] => string(0) ""
        ["title"] => string(32) "Used DME programming to your CAS"
        ["version_string"] => string(10) "2017-02-20"
        ["tag_line"] => string(33) "No need to buy new DME anymore :)"
        ["resource_payment"] => string(17) "resource_for_sale"
        ["xfa_rmmp_type"] => string(7) "service"
        ["xfa_rmmp_paypal"] => string(18) "levanime@gmail.com"
        ["xfa_rmmp_currency"] => string(3) "usd"
        ["xfa_rmmp_amount"] => string(6) "300.00"
        ["quantity"] => string(1) "0"
        ["sell_on_stockout"] => string(1) "0"
        ["xfa_rmmp_cgv_html"] => string(11) "<p><br></p>"
        ["_xfRelativeResolver"] => string(73) "https://bmw.spoolstreet.com/shop/used-dme-programming-to-your-cas.45/edit"
        ["message_html"] => string(374) "<p>Hi Guys,</p><p><br></p><p>If you need to program replacement, Used DME to your CAS we can do it.</p><p>We can do almost any DME,</p><p><br></p><p>You will need to ship replacement DME, CAS and a key and we will ship it back next business day (when USPS is open)</p><p><br></p><p>If needed, We can also program new key (we have keys)</p><p>[ATTACH=full]2409[/ATTACH]</p>
    "
        ["attachment_hash"] => string(32) "fc3f8131a03c6528d081ffd7d9491cb1"
        ["external_url"] => string(48) "https://www.facebook.com/BMWAdvancedProgramming/"
        ["resource_category_ids"] => array(1) {
          [0] => string(2) "15"
        }
        ["_xfToken"] => string(8) "********"
        ["_xfRequestUri"] => string(46) "/shop/used-dme-programming-to-your-cas.45/edit"
        ["_xfNoRedirect"] => string(1) "1"
        ["_xfResponseType"] => string(4) "json"
      }
    }
     
  4. MtoR

    MtoR Freaky Coder
    Staff Member

    Joined:
    Nov 14, 2015
    Messages:
    3,404
    Likes Received:
    503
    Bug noted, we'll check when doing the next issue.
    Noone appart you reported the issue so I suspect a incompatibility issue between two addons.
     

Share This Page