Error: Class Drupal\akamai\Ccu3Client not found in akamai_get_client()
Ccu3Client.php class is defined inside src folder and those classes defined inside src folder are giving "class not found" error when it call.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | Ccu3Client-not-found-3076036-13.patch | 453 bytes | supriya1992 |
| #10 | akamai-resolve-class-not-found-errors-3076036-10.patch | 2.17 KB | firewaller |
| #3 | Ccu3Client-not-found-3076036-2.patch | 15.89 KB | supriya1992 |
Comments
Comment #2
supriya1992 commentedComment #3
supriya1992 commentedI am facing issue when calling Ccu3client class inside akamai_get_client().
I found that src folder class is not directly calling inside module that is why I have created a patch for this. This will resolved the issue.
Comment #4
supriya1992 commentedComment #5
supriya1992 commentedComment #6
supriya1992 commentedComment #7
supriya1992 commentedComment #8
firewaller commentedAttached is a patch that includes the existing class files rather than creating new instances. This seems to be happening elsewhere and is somehow environment dependent (see related issue).
Comment #9
firewaller commentedAttached is an appropriately generated patch.
Comment #10
firewaller commentedUpdated patch including fix for
Error: Class 'Drupal\akamai\Batch' not found in Drupal\akamai\Batcher->getBatch().Comment #11
cameron tod commentedThanks for the patch firewaller and supriya1992. I think we need to ensure that the classes can be loaded dynamically via PSR-4, rather than explicitly including the files.
Comment #12
supriya1992 commented@Cameron Tod, I have checked the condition that if PSR4 module does not exist then add the classes to class.inc file otherwise not.
@firewaller, I already used this solution but still I was getting error that class does not exist.
Comment #13
supriya1992 commentedI have uploaded one more patch that have to apply with old one.
Comment #14
pobster commentedI agree with Cameron here, the module just needs to be installed correctly.
Comment #15
pobster commentedI'm going to close this, the issue really is that the documentation needs to be better and there's already a ticket for that.