This may be related to an open issue:
https://github.com/cubecart/v6/issues/3057
If the error was copied from CubeCart's admin, System Error Log, if you hover the mouse over the error, there may be a popup that gives the trace PHP made to get to the code that errored.
If that popup appears, try to copy/paste the contents to a reply here.