{"id":3864,"date":"2018-07-04T10:54:37","date_gmt":"2018-07-04T09:54:37","guid":{"rendered":"http:\/\/tomaskalabis.com\/wordpress\/?p=3864"},"modified":"2018-07-04T10:55:32","modified_gmt":"2018-07-04T09:55:32","slug":"jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php","status":"publish","type":"post","link":"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/","title":{"rendered":"Jetpack for WordPress &#8211; Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php"},"content":{"rendered":"<h3>Jetpack for WordPress &#8211; Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php<\/h3>\n<p>after udpdate jetpack plugin for wordpress i got error &#8222;Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php&#8220;<\/p>\n<pre class=\"lang:default decode:true\">Parse error: syntax error, unexpected '[', expecting ')' in \/data\/web\/virtuals\/50209\/virtual\/www\/wordpress\/wp-content\/plugins\/jetpack\/modules\/widgets\/simple-payments.php on line 220<\/pre>\n<h4>Solution<\/h4>\n<p>replace\u00a0\u00a0[ and ] with { and } on the line 220\u00a0<strong>not worked for me<\/strong><\/p>\n<pre class=\"lang:default decode:true\">                        wp_send_json_success( [\r\n\t\t\t\t'product_post_id' =&gt; $product_post_id,\r\n\t\t\t\t'product_post_title' =&gt; $params['post_title'],\r\n\t\t\t] );<\/pre>\n<p>to<\/p>\n<pre class=\"lang:default decode:true \">                        wp_send_json_success( {\r\n\t\t\t\t'product_post_id' =&gt; $product_post_id,\r\n\t\t\t\t'product_post_title' =&gt; $params['post_title'],\r\n\t\t\t} );<\/pre>\n<p>I renamed the folder jetpack in wp-content\/plugins\/<strong>jetpack<\/strong> to <strong>jetpack_old<\/strong> and now it works !<\/p>\n<p><a href=\"http:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2018\/07\/wp-jetpack.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-3866\" src=\"http:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2018\/07\/wp-jetpack.png\" alt=\"\" width=\"311\" height=\"314\" srcset=\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2018\/07\/wp-jetpack.png 311w, https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2018\/07\/wp-jetpack-285x288.png 285w, https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2018\/07\/wp-jetpack-150x150.png 150w\" sizes=\"(max-width: 311px) 100vw, 311px\" \/><\/a><\/p>\n<p><em>Developers from jetpack still investigating this issue\u00a0<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jetpack for WordPress &#8211; Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php after udpdate jetpack plugin for wordpress i got error &#8222;Parse error: syntax error, unexpected \u2018[\u2018, expecting &#8230;<\/p>\n","protected":false},"author":2,"featured_media":3053,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[81],"tags":[215],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Jetpack for Wordpress - Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php -<\/title>\n<meta name=\"description\" content=\"after udpdate jetpack plugin for wordpress i got error &quot;Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php&quot;\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/\" \/>\n<meta property=\"og:locale\" content=\"cs_CZ\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Jetpack for Wordpress - Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php -\" \/>\n<meta property=\"og:description\" content=\"after udpdate jetpack plugin for wordpress i got error &quot;Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/\" \/>\n<meta property=\"og:site_name\" content=\"tomaskalabis.com\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-04T09:54:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-07-04T09:55:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/05\/wordpress-logo-icon.png\" \/>\n\t<meta property=\"og:image:width\" content=\"200\" \/>\n\t<meta property=\"og:image:height\" content=\"179\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Tomas Kalabis\" \/>\n<meta name=\"twitter:label1\" content=\"Napsal(a)\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomas Kalabis\" \/>\n\t<meta name=\"twitter:label2\" content=\"Odhadovan\u00e1 doba \u010dten\u00ed\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuta\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/\",\"url\":\"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/\",\"name\":\"Jetpack for Wordpress - Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php -\",\"isPartOf\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/05\/wordpress-logo-icon.png\",\"datePublished\":\"2018-07-04T09:54:37+00:00\",\"dateModified\":\"2018-07-04T09:55:32+00:00\",\"author\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/8e7e83f618a561ed3734a38cef4cf1d6\"},\"description\":\"after udpdate jetpack plugin for wordpress i got error \\\"Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php\\\"\",\"breadcrumb\":{\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/#breadcrumb\"},\"inLanguage\":\"cs\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"cs\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/#primaryimage\",\"url\":\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/05\/wordpress-logo-icon.png\",\"contentUrl\":\"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/05\/wordpress-logo-icon.png\",\"width\":200,\"height\":179},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tomaskalabis.com\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Jetpack for WordPress &#8211; Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#website\",\"url\":\"https:\/\/tomaskalabis.com\/wordpress\/\",\"name\":\"tomaskalabis.com\",\"description\":\"my personal blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tomaskalabis.com\/wordpress\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"cs\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/8e7e83f618a561ed3734a38cef4cf1d6\",\"name\":\"Tomas Kalabis\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"cs\",\"@id\":\"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9f7e4796b38d5720e8a07b918f423311?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9f7e4796b38d5720e8a07b918f423311?s=96&d=retro&r=g\",\"caption\":\"Tomas Kalabis\"},\"sameAs\":[\"https:\/\/x.com\/tomaskalabis\"],\"url\":\"https:\/\/tomaskalabis.com\/wordpress\/author\/kalabis\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Jetpack for Wordpress - Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php -","description":"after udpdate jetpack plugin for wordpress i got error \"Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php\"","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:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/","og_locale":"cs_CZ","og_type":"article","og_title":"Jetpack for Wordpress - Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php -","og_description":"after udpdate jetpack plugin for wordpress i got error \"Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php\"","og_url":"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/","og_site_name":"tomaskalabis.com","article_published_time":"2018-07-04T09:54:37+00:00","article_modified_time":"2018-07-04T09:55:32+00:00","og_image":[{"width":200,"height":179,"url":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/05\/wordpress-logo-icon.png","type":"image\/png"}],"author":"Tomas Kalabis","twitter_misc":{"Napsal(a)":"Tomas Kalabis","Odhadovan\u00e1 doba \u010dten\u00ed":"1 minuta"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/","url":"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/","name":"Jetpack for Wordpress - Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php -","isPartOf":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/#primaryimage"},"image":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/#primaryimage"},"thumbnailUrl":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/05\/wordpress-logo-icon.png","datePublished":"2018-07-04T09:54:37+00:00","dateModified":"2018-07-04T09:55:32+00:00","author":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/8e7e83f618a561ed3734a38cef4cf1d6"},"description":"after udpdate jetpack plugin for wordpress i got error \"Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php\"","breadcrumb":{"@id":"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/#breadcrumb"},"inLanguage":"cs","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/"]}]},{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/#primaryimage","url":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/05\/wordpress-logo-icon.png","contentUrl":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/05\/wordpress-logo-icon.png","width":200,"height":179},{"@type":"BreadcrumbList","@id":"https:\/\/tomaskalabis.com\/wordpress\/jetpack-for-wordpress-parse-error-syntax-error-unexpected-expecting-simple-payments-php\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tomaskalabis.com\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Jetpack for WordPress &#8211; Parse error: syntax error, unexpected \u2018[\u2018, expecting \u2018)\u2019 \u2013 simple-payments.php"}]},{"@type":"WebSite","@id":"https:\/\/tomaskalabis.com\/wordpress\/#website","url":"https:\/\/tomaskalabis.com\/wordpress\/","name":"tomaskalabis.com","description":"my personal blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tomaskalabis.com\/wordpress\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"cs"},{"@type":"Person","@id":"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/8e7e83f618a561ed3734a38cef4cf1d6","name":"Tomas Kalabis","image":{"@type":"ImageObject","inLanguage":"cs","@id":"https:\/\/tomaskalabis.com\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9f7e4796b38d5720e8a07b918f423311?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9f7e4796b38d5720e8a07b918f423311?s=96&d=retro&r=g","caption":"Tomas Kalabis"},"sameAs":["https:\/\/x.com\/tomaskalabis"],"url":"https:\/\/tomaskalabis.com\/wordpress\/author\/kalabis\/"}]}},"jetpack_featured_media_url":"https:\/\/tomaskalabis.com\/wordpress\/wp-content\/uploads\/2014\/05\/wordpress-logo-icon.png","_links":{"self":[{"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/posts\/3864"}],"collection":[{"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/comments?post=3864"}],"version-history":[{"count":2,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/posts\/3864\/revisions"}],"predecessor-version":[{"id":3867,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/posts\/3864\/revisions\/3867"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/media\/3053"}],"wp:attachment":[{"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3864"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3864"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tomaskalabis.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3864"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}