{"id":4477284,"date":"2014-01-07T01:54:51","date_gmt":"2014-01-07T01:54:51","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/plugin-activation-error-with-php-version\/"},"modified":"2016-08-21T14:28:46","modified_gmt":"2016-08-21T14:28:46","slug":"plugin-activation-error-with-php-version","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/plugin-activation-error-with-php-version\/","title":{"rendered":"Plugin activation error with PHP version lower than 5.3.0"},"content":{"rendered":"<p>Since one of my client server is running PHP 5.2.9<br \/>\nWhen I turn this plugin on, error is occured due to<br \/>\n__DIR__ is added since 5.3.0<\/p>\n<p>So, I suggest you the following way to be the path instead:<br \/>\nplugin_dir_path(__FILE__)<\/p>\n<p>because magical constant __FILE__ is added since PHP 4.0.2<br \/>\nref: http:\/\/www.php.net\/manual\/en\/language.constants.predefined.php<\/p>\n<p>Many thanks<\/p>\n<p>https:\/\/wordpress.org\/plugins\/scriblio-authority\/<\/p>\n","protected":false},"template":"","class_list":["post-4477284","topic","type-topic","status-closed","hentry","topic-tag-activation-error","topic-tag-path"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4477284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4477284\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4477284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}