{"id":865474,"date":"2008-09-24T09:18:44","date_gmt":"2008-09-24T09:18:44","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/line-277-of-register-plusphp-hardcoded-uploads-dir\/"},"modified":"2016-08-19T02:23:39","modified_gmt":"2016-08-19T02:23:39","slug":"line-277-of-register-plusphp-hardcoded-uploads-dir","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/line-277-of-register-plusphp-hardcoded-uploads-dir\/","title":{"rendered":"line 277 of register-plus.php: hardcoded uploads dir"},"content":{"rendered":"<p>Hello.<\/p>\n<p>I have changed the location of the uploads directory from the default (&#8220;uploads&#8221; &rarr; &#8220;files&#8221;), which causes a minor error with Register Plus. The uploads directory is hardcoded in one place, which later on is used for displaying the avatar as a logo (well, it tries to, anyway, heh). Line 277 of register-plus.php:<\/p>\n<p><code>return trailingslashit( get_option(&#039;siteurl&#039;) ) . &#039;wp-content\/uploads\/&#039; . $logo;<\/code><\/p>\n<p>Could you maybe update this to the dynamically generated config var for the uploads directory?<\/p>\n<p>Thanks in advance for your help.<\/p>\n<p>cheers,<\/p>\n<p> &#8211; pgl<\/p>\n<p>PS: this is an example of the error that appears on (eg) wp-login.php with a non-default setting of the uploads directory:<\/p>\n<p><code>Warning: getimagesize(\/home\/apache\/vhosts\/pgl.yoyo.org\/htdocs\/bits\/wp-content\/uploads\/mozzie-leaning-on-beer-70x70.png) [function.getimagesize]: failed to open stream: No such file or directory in \/home\/apache\/vhosts\/pgl.yoyo.org\/htdocs\/bits\/wp-content\/plugins\/register-plus\/register-plus.php on line 1531<\/code><\/p>\n","protected":false},"template":"","class_list":["post-865474","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/865474","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\/865474\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=865474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}