connected888
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: User Photo] Problem uploading imageHad the same problem, turned out to be quite easy to fix:
Forum: Plugins
In reply to: [Plugin: User Photo] 2 Warnings with WP 2.5 Permission error & Header errorThanks weston, that’s helped me find the prob for my install. Solution might help others.
wp_upload_dir() returned:
Array ( [path] => /home/mydomain/public_html/press/wp-content/uploads [url] => http://mydomain.com/press/wp-content/uploads [subdir] => [error] => )basedir was evidently not returned by the wp_upload_dir() for my wordpress install.
I edited the plugin’s user-photo.php file to replace 3 instances of ‘basedir’ with ‘path’ and 2 instances of ‘baseurl’ with ‘url’
Now uploading and photo display are working for the plugin on my install.
Forum: Plugins
In reply to: [Plugin: User Photo] 2 Warnings with WP 2.5 Permission error & Header error@jessai & westonruter
Where does the absolute or WordPress install relative path go? Is it a setting in the plugin somewhere or under WordPress Settings > Miscellaneous ?
Those weird paths “lib/php:/tmp” are being pulled from somewhere automatically, I’m not sure where. Everyone is getting different random paths so i guess they’re coming from the hosts’ servers.
Forum: Plugins
In reply to: [Plugin: User Photo] 2 Warnings with WP 2.5 Permission error & Header errorGetting the same errors, I have the default upload setting.
Warning: mkdir() [function.mkdir]: open_basedir restriction in effect. File(/userphoto) is not within the allowed path(s): (/home:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /home/public_html/press/wp-content/plugins/user-photo/user-photo.php on line 409
Warning: Cannot modify header information – headers already sent by (output started at /home/public_html/press/wp-content/plugins/user-photo/user-photo.php:409) in /home/public_html/press/wp-includes/pluggable.php on line 694
Maybe this plugin doesn’t work with some hosts – could be the PHP setup.