{"id":351,"date":"2019-07-25T19:28:49","date_gmt":"2019-07-25T18:28:49","guid":{"rendered":"https:\/\/targetict.co.uk\/blog\/?p=351"},"modified":"2021-01-04T06:58:24","modified_gmt":"2021-01-04T06:58:24","slug":"how-to-fix-type-e-parse-error-on-lingotek-version-1-4-3","status":"publish","type":"post","link":"https:\/\/targetict.co.uk\/blog\/how-to-fix-type-e-parse-error-on-lingotek-version-1-4-3.html","title":{"rendered":"How to fix type E_PARSE error on Lingotek Version 1.4.3"},"content":{"rendered":"<p>This is a brief post on how to fix type E_PARSE error on Lingotek Version 1.4.3 on WordPress 5.2.2.<!--more--><\/p>\n<p>We had a call from a client who had been struggling to use the Lingotek plugin (with Polylang) on WordPress and wasn&#8217;t making any headway.<\/p>\n<p>We asked for a description of the problem, how to replicate it and their wordpress &amp; server login which they gave.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-352\" src=\"https:\/\/targetict.co.uk\/blog\/wp-content\/uploads\/2019\/08\/lingotek1-300x101.png\" alt=\"Lingotek 1.4.3 Type E Parse error\" width=\"300\" height=\"101\" srcset=\"https:\/\/targetict.co.uk\/blog\/wp-content\/uploads\/2019\/08\/lingotek1-300x101.png 300w, https:\/\/targetict.co.uk\/blog\/wp-content\/uploads\/2019\/08\/lingotek1.png 739w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>We got the the page on the plugin indicated and clicked the &#8220;Connect Your Account&#8221; button and were met with the following page:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-353\" src=\"https:\/\/targetict.co.uk\/blog\/wp-content\/uploads\/2019\/08\/lingotek2-300x56.png\" alt=\"\" width=\"300\" height=\"56\" srcset=\"https:\/\/targetict.co.uk\/blog\/wp-content\/uploads\/2019\/08\/lingotek2-300x56.png 300w, https:\/\/targetict.co.uk\/blog\/wp-content\/uploads\/2019\/08\/lingotek2.png 682w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>This caused an error mail to be sent containing the following error:<\/p>\n<pre>Error Details\r\n=============\r\nAn error of type E_PARSE was caused in line 578 of the file \/home\/websitename\/public_html\/wp-content\/plugins\/lingotek-translation\/include\/api.php. Error message: syntax error, unexpected '-&gt;' (T_OBJECT_OPERATOR), expecting ']'<\/pre>\n<p>This immediately pointed out the cause of the error!<\/p>\n<p>We immediately logged into to the file manager and opened the api.php file in <code>\/public_html\/wp-content\/plugins\/lingotek-translation\/include\/<\/code><\/p>\n<p>Scrolling down to Line 578 was the following line<\/p>\n<pre>$this-&gt;log_error_on_response_failure($response, \"DeleteTranslation: Error occurred\", ['id' -&gt; $id, 'wordpress_id' =&gt; $wp_id]);\r\n<\/pre>\n<p>At the point,<\/p>\n<pre>'id' -&gt; $id,<\/pre>\n<p>we simply changed the code to<\/p>\n<pre>'id' =&gt; $id,<\/pre>\n<p>and saved the api.php file.<\/p>\n<p>Going back to the wordpress Admin, we once again tried connecting the plugin and it immediately redirected to the page to create a Lingotek account.<\/p>\n<p>So simply, that&#8217;s how to fix type E_PARSE error on Lingotek Version 1.4.3 which would not allow the website owner connect their wordpress website to lingotek.<\/p>\n<p>The current version of Lingotek on the wordpress repository is 1.4.3 which was updated recently and they have been informed of this issue. Hopefully they update soon with a fix.<\/p>\n<p>&nbsp;<\/p>\n<p>You can always <a href=\"https:\/\/targetict.co.uk\/#contact\">Contact Us<\/a> with your <a href=\"https:\/\/targetict.co.uk\/blog\/10-reasons-why-law-firms-need-their-own-website.html\">Website\/IT<\/a> problems and also if you need <a href=\"https:\/\/targetict.co.uk\/blog\/targethostnowopenforbusiness.html\">Web Hosting<\/a> or Microsoft Licenses and be sure that we would have you covered!<\/p>\n<p>&nbsp;<\/p>\n<p>Peter (Target ICT).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a brief post on how to fix type E_PARSE error on Lingotek Version 1.4.3 on WordPress 5.2.2.<\/p>\n","protected":false},"author":1,"featured_media":352,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[120],"tags":[],"class_list":["post-351","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v23.1 (Yoast SEO v23.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to fix type E_PARSE error on Lingotek Version 1.4.3 - Blog - Target ICT Ltd<\/title>\n<meta name=\"description\" content=\"This is a brief post on how to fix type E_PARSE error on Lingotek Version 1.4.3 on Wordpress 5.2.2 which won&#039;t let you connect your website to Lingotek API\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/targetict.co.uk\/blog\/how-to-fix-type-e-parse-error-on-lingotek-version-1-4-3.html\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to fix type E_PARSE error on Lingotek Version 1.4.3\" \/>\n<meta property=\"og:description\" content=\"This is a brief post on how to fix type E_PARSE error on Lingotek Version 1.4.3 on Wordpress 5.2.2 which won&#039;t let you connect your website to Lingotek API\" \/>\n<meta property=\"og:url\" content=\"https:\/\/targetict.co.uk\/blog\/how-to-fix-type-e-parse-error-on-lingotek-version-1-4-3.html\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Target ICT Ltd\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/targetict\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-25T18:28:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-01-04T06:58:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/targetict.co.uk\/blog\/wp-content\/uploads\/2019\/08\/lingotek1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"739\" \/>\n\t<meta property=\"og:image:height\" content=\"250\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Content Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@targetict\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Content Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to fix type E_PARSE error on Lingotek Version 1.4.3 - Blog - Target ICT Ltd","description":"This is a brief post on how to fix type E_PARSE error on Lingotek Version 1.4.3 on Wordpress 5.2.2 which won't let you connect your website to Lingotek API","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/targetict.co.uk\/blog\/how-to-fix-type-e-parse-error-on-lingotek-version-1-4-3.html","og_locale":"en_GB","og_type":"article","og_title":"How to fix type E_PARSE error on Lingotek Version 1.4.3","og_description":"This is a brief post on how to fix type E_PARSE error on Lingotek Version 1.4.3 on Wordpress 5.2.2 which won't let you connect your website to Lingotek API","og_url":"https:\/\/targetict.co.uk\/blog\/how-to-fix-type-e-parse-error-on-lingotek-version-1-4-3.html","og_site_name":"Blog - Target ICT Ltd","article_author":"https:\/\/facebook.com\/targetict","article_published_time":"2019-07-25T18:28:49+00:00","article_modified_time":"2021-01-04T06:58:24+00:00","og_image":[{"width":739,"height":250,"url":"https:\/\/targetict.co.uk\/blog\/wp-content\/uploads\/2019\/08\/lingotek1.png","type":"image\/png"}],"author":"Content Team","twitter_card":"summary_large_image","twitter_creator":"@targetict","twitter_misc":{"Written by":"Content Team","Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/targetict.co.uk\/blog\/how-to-fix-type-e-parse-error-on-lingotek-version-1-4-3.html","url":"https:\/\/targetict.co.uk\/blog\/how-to-fix-type-e-parse-error-on-lingotek-version-1-4-3.html","name":"How to fix type E_PARSE error on Lingotek Version 1.4.3 - Blog - Target ICT Ltd","isPartOf":{"@id":"https:\/\/targetict.co.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/targetict.co.uk\/blog\/how-to-fix-type-e-parse-error-on-lingotek-version-1-4-3.html#primaryimage"},"image":{"@id":"https:\/\/targetict.co.uk\/blog\/how-to-fix-type-e-parse-error-on-lingotek-version-1-4-3.html#primaryimage"},"thumbnailUrl":"https:\/\/targetict.co.uk\/blog\/wp-content\/uploads\/2019\/08\/lingotek1.png","datePublished":"2019-07-25T18:28:49+00:00","dateModified":"2021-01-04T06:58:24+00:00","author":{"@id":"https:\/\/targetict.co.uk\/blog\/#\/schema\/person\/1283a50e1a5fc8a1ff6946640404b76b"},"description":"This is a brief post on how to fix type E_PARSE error on Lingotek Version 1.4.3 on Wordpress 5.2.2 which won't let you connect your website to Lingotek API","breadcrumb":{"@id":"https:\/\/targetict.co.uk\/blog\/how-to-fix-type-e-parse-error-on-lingotek-version-1-4-3.html#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/targetict.co.uk\/blog\/how-to-fix-type-e-parse-error-on-lingotek-version-1-4-3.html"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/targetict.co.uk\/blog\/how-to-fix-type-e-parse-error-on-lingotek-version-1-4-3.html#primaryimage","url":"https:\/\/targetict.co.uk\/blog\/wp-content\/uploads\/2019\/08\/lingotek1.png","contentUrl":"https:\/\/targetict.co.uk\/blog\/wp-content\/uploads\/2019\/08\/lingotek1.png","width":739,"height":250,"caption":"Lingotek 1.4.3 Type E Parse error"},{"@type":"BreadcrumbList","@id":"https:\/\/targetict.co.uk\/blog\/how-to-fix-type-e-parse-error-on-lingotek-version-1-4-3.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/targetict.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"How to fix type E_PARSE error on Lingotek Version 1.4.3"}]},{"@type":"WebSite","@id":"https:\/\/targetict.co.uk\/blog\/#website","url":"https:\/\/targetict.co.uk\/blog\/","name":"Blog - Target ICT Ltd","description":"Our Latest Articles","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/targetict.co.uk\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/targetict.co.uk\/blog\/#\/schema\/person\/1283a50e1a5fc8a1ff6946640404b76b","name":"Content Team","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/targetict.co.uk\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/58b50ad253fa5d4d8768740e8b0530d0?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/58b50ad253fa5d4d8768740e8b0530d0?s=96&r=g","caption":"Content Team"},"sameAs":["https:\/\/targetict.co.uk","https:\/\/facebook.com\/targetict","https:\/\/instagram.com\/targetict","https:\/\/x.com\/targetict","https:\/\/www.youtube.com\/channel\/UCXHSIBb0zQxQaPLdJkGILpw"],"url":"https:\/\/targetict.co.uk\/blog\/author\/writer"}]}},"jetpack_featured_media_url":"https:\/\/targetict.co.uk\/blog\/wp-content\/uploads\/2019\/08\/lingotek1.png","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/targetict.co.uk\/blog\/wp-json\/wp\/v2\/posts\/351"}],"collection":[{"href":"https:\/\/targetict.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/targetict.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/targetict.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/targetict.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=351"}],"version-history":[{"count":5,"href":"https:\/\/targetict.co.uk\/blog\/wp-json\/wp\/v2\/posts\/351\/revisions"}],"predecessor-version":[{"id":499,"href":"https:\/\/targetict.co.uk\/blog\/wp-json\/wp\/v2\/posts\/351\/revisions\/499"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/targetict.co.uk\/blog\/wp-json\/wp\/v2\/media\/352"}],"wp:attachment":[{"href":"https:\/\/targetict.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/targetict.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/targetict.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}