{"id":837,"date":"2021-12-06T03:20:35","date_gmt":"2021-12-05T21:20:35","guid":{"rendered":"https:\/\/mellowhost.com\/blog\/?p=837"},"modified":"2021-12-06T03:20:35","modified_gmt":"2021-12-05T21:20:35","slug":"php-parse-error-syntax-error-unexpected-t_paamayim_nekudotayim","status":"publish","type":"post","link":"https:\/\/mellowhost.com\/blog\/php-parse-error-syntax-error-unexpected-t_paamayim_nekudotayim.html","title":{"rendered":"PHP Parse error:  syntax error, unexpected &#8216;::&#8217; (T_PAAMAYIM_NEKUDOTAYIM)"},"content":{"rendered":"\n<p><strong>Error<\/strong><\/p>\n\n\n\n<p>When using theme in WordPress, getting an error like the following:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[05-Dec-2021 21:11:48 UTC] PHP Parse error:  syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) in \/home\/***\/public_html\/wp-content\/themes\/stockholm\/framework\/admin\/options\/elements\/map.php on line 71<\/pre>\n\n\n\n<p><strong>Solution<\/strong><\/p>\n\n\n\n<p>In Hebrew &#8216;PAAMAYIM NEKUDOTAYIM&#8217; means double colons. PHP has stopped using a double colon to refer to object elements. These need to use the &#8216;->&#8217; arrow instead of the &#8216;::&#8217; double colon. In our case, the issue was with the following:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$icons_instance = stockholm_qode_icon_collections()::getInstance();<\/pre>\n\n\n\n<p>This should have been<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$icons_instance = stockholm_qode_icon_collections()->getInstance();<\/pre>\n\n\n\n<p>Hope this helps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error When using theme in WordPress, getting an error like the following: Solution In Hebrew &#8216;PAAMAYIM NEKUDOTAYIM&#8217; means double colons. PHP has stopped using a double colon to refer to object elements. These need to use the &#8216;->&#8217; arrow instead of the &#8216;::&#8217; double colon. In our case, the issue was with the following: This &hellip; <a href=\"https:\/\/mellowhost.com\/blog\/php-parse-error-syntax-error-unexpected-t_paamayim_nekudotayim.html\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;PHP Parse error:  syntax error, unexpected &#8216;::&#8217; (T_PAAMAYIM_NEKUDOTAYIM)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[273,30],"tags":[630,628,629,627,275],"_links":{"self":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/837"}],"collection":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/comments?post=837"}],"version-history":[{"count":1,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/837\/revisions"}],"predecessor-version":[{"id":838,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/posts\/837\/revisions\/838"}],"wp:attachment":[{"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/media?parent=837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/categories?post=837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mellowhost.com\/blog\/wp-json\/wp\/v2\/tags?post=837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}