Jump to content

issue in registrar module after php update from 5.6 to 7.2


Recommended Posts

After the update of php from 5.6 to 7.2.11, I get an error in client area when trying to edit domain contact details using a registrar module developed on my own.
The page is /clientarea.php?action=domaincontacts , and I get the error when confirming the data (and before the data being submitted to the Registrar)
The error message refers only to WHMCS internal modules, so it's useless to me to understand the issue:

TypeError: Argument 3 passed to WHMCS\Domains::saveContactDetails() must be of the type array, string given, called in /home/devdomai/public_html/whmcs/clientarea.php on line 0 and defined in /home/devdomai/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/Domains.php:0
Stack trace:
#0 /home/devdomai/public_html/whmcs/clientarea.php(0): WHMCS\Domains->saveContactDetails(Object(WHMCS\Client), Array, '', NULL)
#1 {main}

Any idea ?!?!

 

 

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

hi Remitur,

i faced same problem and found out there's a bug while updating whois info if you select "use existing contact" for every contact. For a temporary fix till offical fix:

OPEN:
clientareadomaincontactinfo.tpl (or related registrar module template file)

FIND:
{foreach from=$contactdetails name=contactdetails key=contactdetail item=values}

ADD AFTER:
<input type="hidden" name="contactdetails[{$contactdetail}][dummykey]" value="1" />
 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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