petelingo
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Audio Player] Version 2.0 beta releasedThanks, tomgf, that’s a perfect fix. Much appreciated.
Isn’t it odd how something works fine one minute and suddenly stops working the next minute? (Thankfully machinery e.g. cars aren’t like that).
Software is a beast.
Forum: Plugins
In reply to: How to use Avatars?…To someone who perhaps isn’t a coder, that’s not very helpful. If one doesn’t speak/read Swahili, there’s not much point suggesting someone to RTFM written in Swahili.
Forum: Fixing WordPress
In reply to: [Plugin: wordTube] Can’t Upload Media FilesI’m not sure if this thread is still active but for the sake of others stumbling upon this thread facing the same issue, I think I’ve closed the net on why wordTube is failing.
After a media file upload it tries to chmod the uploads folder to a permission it likes, namely 0666. After it’s done this, it faces problem writing to the uploads. (Talk about shooting yourself in the foot).
I’m using WordPress v2.6.3 and (I believe) v.1.6 of WordTube. You’ll find the following bit of code in <plugins>/wordtube/admin/functions.php.
@chmod ($upload_path_video, 0666) or die ('<div class="updated"><p><strong>'.__('Unable to change permissions for file ', 'wpTube').$upload_path_video.'!</strong></p></div>');
Lines change and don’t make good pointers, so I’ll refrain from giving you an exact line number. (In my functions.php, it’s around line 138. Do a string search. You’ll find it).
Now, why it needs to do this is beyond me. Why not rely on WordPress’ own permissions management?
The options facing you I think are two-fold.
- To use more relaxed file permissions chmod i.e. NOT 0666 but 0707 instead
Example
@chmod ($upload_path_video, 0707) or die (‘<div class=”updated”><p>‘.__(‘Unable to change permissions for file ‘, ‘wpTube’).$upload_path_video.’!</p></div>’); OR - To remove the line completely so it NEVER tries to change/set the dir permissions on the uploads folder i.e so they remain in tact as original from the WP install
I’d prefer not to open that can of worms and incur the wrath of web hosters by opening up potential security holes by changing folder permissions, so I’ve just commented the line out completely. The original permissions on the uploads folder are good enough for me. ??
I hope that helps someone.
Cheerio.
Pete.
Forum: Developing with WordPress
In reply to: How to Add an independant RSS feed to another blog pageIt’s ‘independEnt’ (with an E). Nobody ‘digs’ spelling anymore, I suppose.
- To use more relaxed file permissions chmod i.e. NOT 0666 but 0707 instead