Jump to content

bug report "Invalid user id provided"


Recommended Posts

Hello

 the reset password Emails for new users won't be sent but it worked fine for the previous user 

after many hours of debugging and problem-solving, I found that there was a serious problem with the WHMCS code

where it tries to find the user's client ID with the user ID!!!

so I want to simulate the problem's situation

 

it works when tbluser and tblclient grow together and have the same id increment order

but it fails when the tbluser increments faster then ids won't match and the email doesn't send

so it looks in the tblcient table with user_id (tbluser id ) and when it finds the mache email would send it to tblclinet email address

I think this is completely wrong and should be fixed ASAP

 

 

 

 

 

 

 

Untitled.png

Link to comment
Share on other sites

  • 4 weeks later...
  • WHMCS Technical Analyst II

Howdy,

After attempting to reproduce this behavior with mismatched User/Client IDs, I was unable to do so in WHMCS 8.7.2.

Most often, we have seen these types of behaviors occur when outdated files are present from an older version of WHMCS.
Please check that your /admin and /vendor directories are fully up to date by backing up and replacing them with a fresh copy from: https://download.whmcs.com/

If this behavior continues, please reach out to us via a ticket and we can take a closer look at your database to review your user/client relations.

Link to comment
Share on other sites

  • 1 year later...
On 6/10/2024 at 6:58 AM, developer _WHM_CS said:

what is your WHMCS version?

 

I just noticed that i had to better understand the difference between a User and a Client. So sometimes a User account has multiple Client accounts.

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