Title: Plugin file got error
Last modified: May 11, 2025

---

# Plugin file got error

 *  Resolved [feaezdk](https://wordpress.org/support/users/feaezdk/)
 * (@feaezdk)
 * [1 year ago](https://wordpress.org/support/topic/plugin-file-got-error/)
 * After update the plugin I got error and my admin panel got blank. 
   Error is:syntax
   error, unexpected ‘)’, expecting ‘|’ or variable (T_VARIABLE) in <directory>/
   plugins/uddoktapay-gateway/src/LocalGateway.php on line 339Version is : 2.5.1

Viewing 1 replies (of 1 total)

 *  Plugin Author [UddoktaPay](https://wordpress.org/support/users/uddoktapay/)
 * (@uddoktapay)
 * [1 year ago](https://wordpress.org/support/topic/plugin-file-got-error/#post-18460588)
 * **Thanks for reporting the issue.**
   The error you’re seeing:
 * `syntax error, unexpected ‘)’, expecting ‘|’ or variable (T_VARIABLE) in /plugins/
   uddoktapay-gateway/src/LocalGateway.php on line 339`
 * was caused by a syntax that’s not supported in PHP 7.4. This has been **fixed
   in version 2.5.2** of the plugin. To resolve the issue:
 * You have two options:
 * **Option 1:**
    - Temporarily upgrade your PHP version to 8.1
    - Update the plugin to version 2.5.2
    - Then downgrade PHP back to 7.4 if needed
 * **Option 2:**
    - Manually download the latest version (2.5.2) from the [WordPress Plugin Directory](https://wordpress.org/plugins/uddoktapay-gateway/)
    - Replace the plugin folder located at:
      `wp-content/plugins/uddoktapay-gateway`
 * We’re sorry for the inconvenience and thank you for your patience!
    -  This reply was modified 1 year ago by [UddoktaPay](https://wordpress.org/support/users/uddoktapay/).

Viewing 1 replies (of 1 total)

The topic ‘Plugin file got error’ is closed to new replies.

 * ![](https://ps.w.org/uddoktapay-gateway/assets/icon-256x256.png?rev=2798163)
 * [UddoktaPay](https://wordpress.org/plugins/uddoktapay-gateway/)
 * [Support Threads](https://wordpress.org/support/plugin/uddoktapay-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/uddoktapay-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/uddoktapay-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/uddoktapay-gateway/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [UddoktaPay](https://wordpress.org/support/users/uddoktapay/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/plugin-file-got-error/#post-18460588)
 * Status: resolved