Skip to content

RM v1.2.1 Class doesn't exist error #43

@kerryckc98

Description

@kerryckc98

Hi,

I have the following structure in my project

root/apps/classes-payment/RevenueMonsterWrapper.class.php

in the top of the file i have included the namespaces

require_once 'vendor/autoload.php';
use RevenueMonster\SDK\RevenueMonster;
use RevenueMonster\SDK\Exceptions\ApiException;
use RevenueMonster\SDK\Exceptions\ValidationException;
use RevenueMonster\SDK\Request\WebPayment;
use RevenueMonster\SDK\Request\QRPay;
use RevenueMonster\SDK\Request\QuickPay;

However, i am getting the error 'Class doesn't exist : RevenueMonster' whenever the autoload.php is loaded in. This means that any other places that uses other packages would also encounter this error.

This error only occurs on the server but not local development, and I have checked that all are using PHP 7.3 and files are in sync

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions