Title: PHP ERROR on api.php
Last modified: November 9, 2019

---

# PHP ERROR on api.php

 *  [GlobalCultura.com](https://wordpress.org/support/users/globalcultura/)
 * (@globalcultura)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-error-on-api-php/)
 * Error on api-php
 *     ```
       PHP ERROR:array(4) {
         ["type"]=>
         int(4)
         ["message"]=>
         string(64) "syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting ']'"
         ["file"]=>
         string(99) ".../wp-content/plugins/lingotek-translation/include/api.php" 
         ["line"]=> 
         int(578)
       }
       ```
   
 * To solve it: replace -> with =>

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [joppedi](https://wordpress.org/support/users/joppedi/)
 * (@joppedi)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-error-on-api-php/#post-12121346)
 * Does this mean I shold change line 578 in api.php from
    $this->log_error_on_response_failure(
   $response, “DeleteTranslation: Error occurred”, [‘id’ -> $id, ‘wordpress_id’ 
   => $wp_id]); to $this=>log_error_on_response_failure($response, “DeleteTranslation:
   Error occurred”, [‘id’ => $id, ‘wordpress_id’ => $wp_id]);
 * It didn’t work for me.
 *  [RGhost](https://wordpress.org/support/users/rghost/)
 * (@rghost)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-error-on-api-php/#post-12130647)
 * I have same problem. Any suggestion how to fix it?
    -  This reply was modified 6 years, 6 months ago by [RGhost](https://wordpress.org/support/users/rghost/).
 *  [jcn50](https://wordpress.org/support/users/jcn50/)
 * (@jcn50)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-error-on-api-php/#post-12149760)
 * The corrected line is this one:
 * > $this->log_error_on_response_failure($response, “DeleteTranslation: Error occurred”,[‘
   > id’ => $id, ‘wordpress_id’ => $wp_id]);
 * It will probably be fixed in the next release (NB: I am NOT a contributor).
 *  [joppedi](https://wordpress.org/support/users/joppedi/)
 * (@joppedi)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-error-on-api-php/#post-12149811)
 * Yes, this works!
    Thanks! I have been in contact with Lingotek’s support but 
   they didn’t know so they passed it by to their technician. Now I don’t need to
   wait 🙂
    -  This reply was modified 6 years, 6 months ago by [joppedi](https://wordpress.org/support/users/joppedi/).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP ERROR on api.php’ is closed to new replies.

 * ![](https://ps.w.org/lingotek-translation/assets/icon-256x256.png?rev=2859082)
 * [Ray Enterprise Translation](https://wordpress.org/plugins/lingotek-translation/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lingotek-translation/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lingotek-translation/)
 * [Active Topics](https://wordpress.org/support/plugin/lingotek-translation/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lingotek-translation/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lingotek-translation/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [joppedi](https://wordpress.org/support/users/joppedi/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/php-error-on-api-php/#post-12149811)
 * Status: not resolved