Jump to content
garybarr

CodeGuard order causes Oops Error

Recommended Posts

I'm having a heck of a time tracking down what is happening when a customer tries to order CodeGuard for their website, it gets to the order page, lets then enter in the credit card info, but after clicking submit, it gives a
-----------------
Oops!
Something went wrong and we couldn't process your request.

Please go back to the previous page and try again.
-----------------

The only error I can find in the logs is in the activity log:

 

Error: Error: Undefined class constant 'Active' in /home/public_html/editedout/includes/invoicefunctions.php:0 Stack trace: #0 /home/public_html/editedout/cart.php(0): getNewClientAutoProvisionStatus(10338) #1 {main}

 

Anyone have more ideas where to look?

Share this post


Link to post
Share on other sites

Eeks, this seems to be a new happening for ALL orders since I did the upgrade today to the latest version.  I had orders yesterday that were paid for, but since the update, I see this has happened to a couple orders.

Share this post


Link to post
Share on other sites

Hi Gary,

it seems that they've released a hotfix for this issue.

Quote

An issue has been identified in the 7.9.0 release - published on 8th January 2020, that can prevent products from being automatically set to "Active" after checkout in certain circumstances. An error message will be logged in the server PHP error logs or an Oops! error output on screen. The error details contain:


exception 'Whoops\Exception\ErrorException' with message 'Undefined class constant 'Active'' in /home/v79whmcssupport/public_html/whmcs/includes/invoicefunctions.php:0

This occurs when when a customer has made payment on checkout and "Only Auto Provision for Existing" is checked in Setup > General Settings > Ordering.

This hotfix applies only to 7.9.0

Workaround

You can disable "Only Auto Provision for Existing" in Setup > General Settings > Ordering.
Resolution
We are releasing a hot-fix patch which resolves the undefined class constant.
Applying the HotFix

To apply the fix, download the zip file from the link above. Extract the contents and upload to your WHMCS directory overwriting the existing files.

 

6 hours ago, garybarr said:

Eeks, this seems to be a new happening for ALL orders since I did the upgrade today to the latest version. 

it's often a  good idea to leave it for a few days/weeks after a major release update to let all these bugs get ironed out first before upgrading.

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