Is the structure of these dirs documented anywhere? Is it just the blog name and what the blog user creates after that? I need to patch the Media File stuff for my upgrade to work - my previous 4.0 installation had created no directories for the blogs as no images had actually been uploaded and not errors appear in the admin pages.

MAnos

Emmanouil Batsis (Manos) wrote:
Dave wrote:
On Wed, Apr 14, 2010 at 11:03 AM, Emmanouil Batsis (Manos)
<ma...@abiss.gr> wrote:
Using the trunk, I tried clicking 'Media Files' and got the following
exception in the logs. Is there any chance the blog-specific media
directories need to be created if they don't exist? Do i need to patch this
or is there anything else going on? Ideas welcome!

java.lang.NullPointerException
       at
org.apache.roller.weblogger.ui.struts2.editor.MediaFileView.execute(MediaFileView.java:185)

Here's some context for that NullPointerException:

            MediaFileDirectory directory;
            if (StringUtils.isNotEmpty(this.directoryId)) {
directory = manager.getMediaFileDirectory(this.directoryId);
            } else if (StringUtils.isNotEmpty(this.directoryPath)) {
                directory =
manager.getMediaFileDirectoryByPath(getActionWeblog(),
this.directoryPath);
            } else {
                directory =
manager.getMediaFileRootDirectory(getActionWeblog());
            }
            this.directoryId = directory.getId();  // this is line 185

It appears that, perhaps, you don't have a media file root directory
for your weblog and therefore directory is null. Can you tell some
more about your install? Was it an upgrade or a fresh install?


An upgrade, but the previous installation had no blog dirs (in uploads.dir) for the new version to upgrade towards the media files directory. I think all images where hosted in a remote server, so perhaps directories where never created?



--
Manos Batsis, Chief Technologist
         __    _
  ____ _/ /_  (_)_________ ____ ______
 / __ `/ __ \/ / ___/ ___// __ `/ ___/
/ /_/ / /_/ / (__  |__  )/ /_/ / /
\__,_/_.___/_/____/____(_)__, /_/
                        /____/
http://www.Abiss.gr
19, Kalvou Street,
14231, Nea Ionia,
Athens, Greece

Tel: +30 211-1027-900
Fax: +30 211-1027-999

http://gr.linkedin.com/in/manosbatsis

Reply via email to