Closed (fixed)
Project:
Windows Live Writer BlogAPI
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2008 at 10:33 UTC
Updated:
8 Oct 2009 at 09:29 UTC
I did set up a new website just for blogging. I have Drupal 6.6, WLW BlogAPI 6.x-1.3 and WLW Beta (Build 14.0.5025.904) German with file attachment PlugIn.
Following modules are activated:
from core blog, no blogapi,
color, comment, database logging,
help, locale, menu, php filter,
taxonomy, update status, upload
additional administration menu, image,
image cache modules, inline, markdown filter,
search404, text size, print and pdf,
backup_migrate, blogtheme, code filter,
pathauto, token, WLW BlogAPI, external links
I have one user (and my root user), configured WLW, did give the user rights to manage his blog.
Blogging with WLW works, but I cannot upload any content. I activated upload module with user rights, didn't help.
Blogging with the browser works, uploading images with inline module works too.
How should I configure Drupal to get images (jpg, png) and files (pdf) uploaded?
Comments
Comment #1
bkraegelin commentedDiscovered a bug in Drupals core module 'user.module', which has an inconsistency handling international languages for roles.
Patching user.module helped.
Corresponding Drupal issue is http://drupal.org/node/376734
Comment #2
bkraegelin commentedCore Drupal developer suggests a fix to core module blogapi and contributed module wlw_blogapi.
Line 389 should be:
$roles = array_intersect(array_keys(user_roles(FALSE, 'administer content with blog api')), array_keys($user->roles));This works immediately without any side effects. Changing user module needs more validation.
See http://drupal.org/node/376734
Comment #3
bkraegelin commentedSorry, wrong status assigned.
Comment #4
bkraegelin commentedClose on no activity
Comment #5
ShiinZu commentedJust to inform that I tested the fixes provided here and they work but there is a catch, the user has to be explicitly added to a role. Example the first drupal user doesn't have a defined role and this fix doesn't work unless i assign a role to that user. I haven't tested setting permissions to the authenticated used role (the one the first user is assigned by default) because i don't want any register users except administrators to manage the site content.
Anyway thanks for the fixes.
Comment #6
jrglasgow commentedthe code change n #2 has been committed to CVS
Comment #7
peti2006@googlemail.com commentedHi,
I'm using wlw_blogapi - 6.x-1.x-dev with Drupal 6.12.
I can post content and upload images. But, I got images permission problem.
It's working for admin but all other authenticated users can only see the content but not the uploaded images.
Does anyone know about this problem?
Thanks in advance.