🇮🇳India @AnokR

Account created on 10 July 2018, almost 6 years ago
#

Recent comments

🇮🇳India AnokR

Hi All,

Any idea when the Drupal 9/10 version will be ready to use?

🇮🇳India AnokR

Hey @jfurnas, @kerasai,

Any update when will be the next release for this module so that It will not affect the status page in our production site.

🇮🇳India AnokR

Thanks for the quick reply

Yes, I as for as I found it is related to cache. Because when I open form at this location : "/docusign-signature/examples/embedded-signature" and sign in to DocuSign it will send correct query parameters and connect to docuSign account and send back to that form url "/docusign-signature/examples/embedded-signature". But due to cache it was unable to check the checkToken due to this line

    if (!$this->authService->checkToken()) {
      return $this->client->needToReAuth();
    }

it redirects to Auth login again and this process get continue and return the error.

Temp fix:- When we clear cache manually and then again go to same form for Auth login it works correctly.
I have disable the Internal page cache module but the problem is not resolved!.

If you are not getting this error at your end so might be some other issue.
Thanks

🇮🇳India AnokR

Thank you for applying!

Please fix PHPCS errors

FILE: ...var/www/html/current_date_time/src/Services/TimestampService.php
----------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 11 LINES
----------------------------------------------------------------------
  7 | ERROR | [x] Missing class doc comment
  8 | ERROR | [x] Opening brace should be on the same line as the
    |       |     declaration
 15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
    |       |     4
 23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
    |       |     4
 24 | ERROR | [x] Opening brace should be on the same line as the
    |       |     declaration
 25 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
    |       |     8
 26 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
    |       |     4
 41 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
    |       |     4
 42 | ERROR | [x] Opening brace should be on the same line as the
    |       |     declaration
 43 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
    |       |     8
 44 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found
    |       |     4
 44 | ERROR | [x] Expected 1 blank line after function; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

Time: 275ms; Memory: 8MB

[Finished in 311ms]


FILE: /var/www/html/current_date_time/src/Plugin/Block/ZoneBlock.php
----------------------------------------------------------------------
FOUND 60 ERRORS AND 1 WARNING AFFECTING 59 LINES
----------------------------------------------------------------------
   8 | ERROR   | [x] Use statements should be sorted alphabetically.
     |         |     The first wrong one is
     |         |     Drupal\Core\Plugin\ContainerFactoryPluginInterface.
  21 | ERROR   | [x] Opening brace should be on the same line as the
     |         |     declaration
  28 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  31 | ERROR   | [ ] More than 2 empty lines are not allowed
  43 | ERROR   | [x] There must be no blank lines after the function
     |         |     comment
  44 | ERROR   | [x] Whitespace found at end of line
  45 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  46 | ERROR   | [x] Opening brace should be on the same line as the
     |         |     declaration
  47 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
  48 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
  49 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  54 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  55 | ERROR   | [x] Opening brace should be on the same line as the
     |         |     declaration
  56 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
  62 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  67 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  68 | ERROR   | [x] Opening brace should be on the same line as the
     |         |     declaration
  69 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
  70 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
  71 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
  72 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
  73 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
  75 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 6
  76 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
  77 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
  78 | ERROR   | [x] Array indentation error, expected 10 spaces but
     |         |     found 8
  78 | WARNING | [ ] t() calls should be avoided in classes, use
     |         |     \Drupal\Core\StringTranslation\StringTranslationTrait
     |         |     and $this->t() instead
  79 | ERROR   | [x] Array indentation error, expected 10 spaces but
     |         |     found 8
  80 | ERROR   | [x] Array indentation error, expected 10 spaces but
     |         |     found 8
  82 | ERROR   | [x] Array indentation error, expected 10 spaces but
     |         |     found 8
  83 | ERROR   | [x] Array indentation error, expected 10 spaces but
     |         |     found 8
  84 | ERROR   | [x] Array indentation error, expected 10 spaces but
     |         |     found 8
  87 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
  88 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  93 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
  94 | ERROR   | [x] Opening brace should be on the same line as the
     |         |     declaration
  95 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
  96 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
  97 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
  98 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
  99 | ERROR   | [x] Array indentation error, expected 10 spaces but
     |         |     found 8
 100 | ERROR   | [x] Array indentation error, expected 10 spaces but
     |         |     found 8
 101 | ERROR   | [x] Array indentation error, expected 10 spaces but
     |         |     found 8
 103 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
 104 | ERROR   | [x] Array indentation error, expected 10 spaces but
     |         |     found 8
 105 | ERROR   | [x] Array indentation error, expected 10 spaces but
     |         |     found 8
 106 | ERROR   | [x] Array indentation error, expected 10 spaces but
     |         |     found 8
 107 | ERROR   | [x] Array indentation error, expected 10 spaces but
     |         |     found 8
 109 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
 110 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
 115 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
 116 | ERROR   | [x] Opening brace should be on the same line as the
     |         |     declaration
 117 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
 118 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
 119 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
 121 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
 121 | ERROR   | [x] Missing function doc comment
 122 | ERROR   | [x] Opening brace should be on the same line as the
     |         |     declaration
 123 | ERROR   | [x] Line indented incorrectly; expected 4 spaces,
     |         |     found 8
 124 | ERROR   | [x] Line indented incorrectly; expected 2 spaces,
     |         |     found 4
 125 | ERROR   | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 59 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

Time: 288ms; Memory: 10MB

[Finished in 330ms]
🇮🇳India AnokR

Thank you for applying!
Please fix PHPC issues

FILE: ...ia_popup/src/Plugin/Field/FieldFormatter/MediaPopupFormatter.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
----------------------------------------------------------------------
  61 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
  65 | WARNING | Line exceeds 80 characters; contains 87 characters
  85 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
  91 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
 108 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
 109 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
 129 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
----------------------------------------------------------------------

Time: 306ms; Memory: 10MB

[Finished in 340ms]
🇮🇳India AnokR

I have created Issue fork and added fixes. it will help peoples to get rid of the caching issue. However It may not work for anonymous users and to fix that people needs to uninstall the "Internal page cache" module to get it fully work for the anonymous as well as authenticate users.

Thanks!

🇮🇳India AnokR

Thanks for your reply. can you push your latest updates so I can test at my end.
However I will try to check with disabling the page cache.
thanks

🇮🇳India AnokR

Sure, let me know. If you found something. It seems the api issue the token request is not working. It would be good if we can change the little bit to get it working.
thanks!

🇮🇳India AnokR

http:://[Domain]/docusign/signature/callback/oauth?code=[CODE]

Actually I have this request which is returning 400 (Bad request) and it will return the

{
    "error": "invalid_grant"
}

As I debug it is throwing error at this file
OAuthException: Invalid OAuth state in Drupal\docusign_signature\DocuSignAuth\CodeGrant->authCallback() (line 46 of modules/contrib/docusign_signature/src/DocuSignAuth/CodeGrant.php).

But other requests are working before this request like
Login, state etc.

🇮🇳India AnokR

Thank you for quick reply. Can you please check and fix issue in comment #2. for the second error?

🇮🇳India AnokR

Also, getting this error after fixing the above error.

The website encountered an unexpected error. Please try again later.

OAuthException: Invalid OAuth state in Drupal\docusign_signature\DocuSignAuth\CodeGrant->authCallback() (line 46 of modules/contrib/docusign_signature/src/DocuSignAuth/CodeGrant.php).

🇮🇳India AnokR

Thanks @samit for checking the module and posting issue. I will update the patch and publish with new changes.

🇮🇳India AnokR

@larowlan, Thanks for your quick reply.
FYI:- I'm using Opigno LMS 3 using composer create project. With some customised configuration.
Now I have enabled the core aggregator module and added around 25 feeds.
The feeds are created successfully and on cron ran It fetched some data. But again when cron run it gives errors in the recent log page with the same error

 Drupal\Core\Entity\EntityStorageException: Update existing 'aggregator_feed' entity while changing the ID is not supported. in Drupal\Core\Entity\ContentEntityStorageBase->doPreSave() (line 762 of /home/mdslearn/public_html/web/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php).

However, The error is not related aggregate module file but it's related with feed.
If you can replicate that would be good.

Thanks!

🇮🇳India AnokR

Hello @all, I was having same error when downgrading the coder version to "8.3.13" run the command composer require drupal/coder:8.3.13 fix my issue.

Production build 0.69.0 2024