Jump to content
serverhosh

Error: Call to a member function marketingEmailOptOut

Recommended Posts

Hi


After we update the whmcs to 7.10.2,  client registration causing issue.

Error: Call to a member function marketingEmailOptOut() on null in /home/{HIDE}/includes/clientfunctions.php:0
Stack trace:
#0 /home/serverhosh/public_html/{HIDE}/register.php(0): addClient('SwanGreen', 'sfdsdf', '', 'sdfsdfsd@gmail....', '34543534534', '', 'kolkata', 'West Bengal', '700101', 'IN', '+91.34534543454', 'Plmqaz@123', '', '', true, Array, '6610446c-be5d-4...', false, '')
#1 {main}

Just a note, MySQL Strict Mode is disabled

Please help us to fix the issue as it's caused a Big Problem.

Share this post


Link to post
Share on other sites

Hi @serverhosh,

The error is caused by out-dated custom template files.

Please make sure you've consumed the template changes between the old version and 7.10.2. The diffs are published in the release notes: https://docs.whmcs.com/Version_7.10.0_Release_Notes#Template_Changes

As an immediate workaround you can switch to the stock "Six" template via Setup > General Settings > General tab

Share this post


Link to post
Share on other sites

It is crazy that every time a template is updated we have to re-apply our customisations.

Wouldn't it be a novel idea for WHMCS to have child templates like most other software does?    That would solve this problem for all of us once and for all.

Share this post


Link to post
Share on other sites
1 minute ago, 123host said:

It is crazy that every time a template is updated we have to re-apply our customisations.

Wouldn't it be a novel idea for WHMCS to have child templates like most other software does?    That would solve this problem for all of us once and for all.

Curious, I just checked the changelog for Six template from 7.9.2 to 7.10.2 and it shows

Quote

23 files changed with 817 additions and 232 deletions

To expect us to update our customisations when such a huge number of changes are made is crazy.

Share this post


Link to post
Share on other sites

@WHMCS John I followed the link.  In the blog article there is an example

Copy & Paste: git clone git@github.com:WHMCS/templates-six.git my-hosting-company

but it fails

# git clone git@github.com:WHMCS/templates-six.git whmcsfiles
Cloning into 'whmcsfiles'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

 

Share this post


Link to post
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