Jump to content

Error: Call to a member function getSensitiveDataAttributeName() on null


Recommended Posts

I am getting this error

Error: Call to a member function getSensitiveDataAttributeName() on null

when I try to enter a specific customer.

Error: Call to a member function getSensitiveDataAttributeName() on null in /xxxxxxxxx/vendor/whmcs/whmcs-foundation/lib/Admin/Client/PayMethod/ViewHelper.php:0
Stack trace:
#0 /xxxxxxxxx/vendor/whmcs/whmcs-foundation/lib/Admin/Client/PayMethod/ViewHelper.php(0): WHMCS\Admin\Client\PayMethod\ViewHelper->clientProfileHtml(Object(WHMCS\User\Client), 'client-paymetho...')
#1 /xxxxxxxxx/vendor/whmcs/whmcs-foundation/lib/Admin/Client/PayMethod/ViewHelper.php(0): WHMCS\Admin\Client\PayMethod\ViewHelper->clientProfileSummaryHtmlTableRows(Object(WHMCS\User\Client))
#2 /xxxxxxxxx/admin/clientssummary.php(0): WHMCS\Admin\Client\PayMethod\ViewHelper->clientProfileSummaryHtml(Object(WHMCS\User\Client))
#3 {main}

WHMCS v8.5.1

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi @papazetis,

This has been observed when an after-market payment gateway has been deleting, leaving orpahned records in the tblpaymethods table related to the module but no associated records in the tblbankaccts or tblcreditcard tables.  Removing/disassociating these records from tblpaymethods and tblbankaccts/tblcreditcards will allow access to the Client Profile.

 

This query can help identify Pay Methods without associated records which could  be causing the problem:

SELECT * FROM tblpaymethods WHERE payment_id = 0 AND deleted_at IS NULL;
Link to comment
Share on other sites

  • 1 year later...

Hello,

I am getting this error when adding a product to the cart, I can't proceed to payment. any idea?

 

 

Oops!
Something went wrong and we couldn't process your request.
Please go back to the previous page and try again.


Error: Call to a member function toFull() on null in /home//mywhmcs//public_html/vendor/whmcs/whmcs-foundation/lib/Product/Pricing/Price.php:0
Stack trace:
#0 /home//mywhmcs//public_html/vendor/whmcs/whmcs-foundation/lib/Product/Pricing/Price.php(0): WHMCS\Product\Pricing\Price->monthlyPrice()
#1 /home//mywhmcs//public_html/templates_c/245824e83eef5d4cc307535194e953b51f847836_0.file.marketconnect-promo.tpl.php(34): WHMCS\Product\Pricing\Price->breakdownPrice()
#2 /home//mywhmcs//public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_659fd97a9f04b3_06178486(Object(Smarty_Internal_Template))
#3 /home//mywhmcs//public_html/vendor/smarty/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
#4 /home//mywhmcs//public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
#5 /home//mywhmcs/public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(232): Smarty_Internal_Template->render(false, 0)
#6 /home//mywhmcs//public_html/vendor/smarty/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(Smarty_Internal_Template), Array, NULL, NULL, 0)
#7 /home//mywhmcs//public_html/vendor/whmcs/whmcs-foundation/lib/Smarty.php(0): Smarty_Internal_TemplateBase->fetch('/home//mywhmcs/...', Array, NULL, NULL, false, true, false)
#8 /home//mywhmcs//public_html/vendor/whmcs/whmcs-foundation/lib/MarketConnect/Promotion/Promotion.php(0): WHMCS\Smarty->fetch('/home//mywhmcs/..', Array)
#9 /home//mywhmcs//public_html/vendor/whmcs/whmcs-foundation/lib/MarketConnect/Promotion/Promotion.php(0): WHMCS\MarketConnect\Promotion\Promotion->render()
#10 /home//mywhmcs//public_html/vendor/whmcs/whmcs-foundation/lib/MarketConnect/Promotion.php(0): WHMCS\MarketConnect\Promotion\Promotion->__toString()
#11 /home//mywhmcs//public_html/vendor/whmcs/whmcs-foundation/lib/Hook/Manager.php(0): WHMCS\MarketConnect\Promotion::WHMCS\MarketConnect\{closure}(Array)
#12 /home//mywhmcs//public_html/vendor/illuminate/support/Facades/Facade.php(261): WHMCS\Hook\Manager->run('ShoppingCartVie...', Array, false)
#13 /home//mywhmcs//public_html/includes/functions.php(0): Illuminate\Support\Facades\Facade::__callStatic('run', Array)
#14 /home/mywhmcs/public_html/cart.php(0): run_hook('ShoppingCartVie...', Array)
#15 {main}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated