Log in | Register | Lost password

Bottom
Upgrading from Photoshare to Mediashare
  • Posted: 14.07.2008, 15:25
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I have photoshare and mediashare installed on my postnuke .764 site and I want to migrate to mediashare. Media is installed and appears to be working correctly. When I try to import I immediately get a white screen and despite repeatedly refreshing the screen nothing ever imports, it looks like the script is being killed as soon as or before it starts.

    In php.ini

    max_execution_time = 500
    max_input_time = 500
    memory_limit = 250M

    I don't even know how to start troubleshooting this one.
  • Posted: 18.07.2008, 15:14
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

    rshol

    I have photoshare and mediashare installed on my postnuke .764 site and I want to migrate to mediashare. Media is installed and appears to be working correctly. When I try to import I immediately get a white screen and despite repeatedly refreshing the screen nothing ever imports, it looks like the script is being killed as soon as or before it starts.


    I'm also having problems upgrading from PhotoShare to MediaShare.

    The import script looks to be working, takes about 15secs before going to a white screen, refresh, wait, white screen etc. After about three or four runs through, it starts to take just a couple of seconds, then about a second - which continues indefinitely.

    I've got just short of 1,300 images in about 150 albums - of which about eight albums get created in MediaShare, whilst no images seem to get transferred.

    PhotoShare 4.2.0, MediaShare 3.2.0, PN 0.764



    edited by: AdrianC, Jul 18, 2008 - 04:16 PM
  • Posted: 23.07.2008, 08:26
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

    AdrianC

    I've got just short of 1,300 images in about 150 albums - of which about eight albums get created in MediaShare, whilst no images seem to get transferred.


    Did a bit more investigating of this last night - the import brings in about 30 images on each of the first few runs, then just a couple, finally - when it gets to 15 folders and 97 images - no more.

    * It doesn't make any difference if they're being stored in directory or database.
    * It's not the PHP execution time - the later runs, with nothing being imported - fail to a white screen almost immediately, and I've increased the maximum runtime massively as a test.
    * No PHP errors are being logged to the Apache logs.
    * Commenting out the lines (mentioned in another reply) in the importapi script makes no difference.
    * There doesn't appear to be a pattern to which images or albums are being imported, so I'm not quite sure how to identify which is causing issues.
    * I've tried this on two separate (one CentOS 5.1/PHP5/MySQL5, one SuSE 9.3/PHP4/MySQL4) server installs, and it's failed in the same way.

    Thoughts?



    edited by: AdrianC, Jul 23, 2008 - 08:26 AM
  • Posted: 03.08.2008, 21:04
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I don't know why this happens - maybe because some of the photos cannot be read and converted by GD2 (for some odd reason), I have seen this happen once in a while.

    Try to remove the half-imported gallery and see if Mediashare can continue with the galleries after that.
  • Posted: 03.08.2008, 21:11
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Is there any easy way to tell which is the "half-imported" folder, though?

    There's no empty galleries. I s'pose I need to go through and view every single gallery, make sure everything looks OK...
  • Posted: 03.08.2008, 21:20
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Look at what was imported in Mediashare - the latest imported album may be the troublesome one (especially if some photos are missing in it).
  • Posted: 03.08.2008, 22:49
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Thanks, Jorn. That was indeed the easy way - looks like the albums are imported in alphabetical order.

    So - out of 150 albums, 1,300 images, I've had to remove two albums whole, one image from a third, and have one album which seems to have lost all it's images without any help from me...

    But the import has COMPLETED!

    Now just to figure out why no images are actually showing... Thumbnails or full images. Hiho. One step nearer.
  • Posted: 05.08.2008, 11:03
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

    AdrianC

    Now just to figure out why no images are actually showing... Thumbnails or full images. Hiho. One step nearer.


    D'oh. That's me being a flamin' user and not reading the documentation... It's entirely down to the requirement for mod_rewrite if I want to use database-stored images. It works perfectly if I store them in the file system. I'm sure if I dived into mod_rewrite, it'd work fine, too... Life's too short.

    Well, almost perfectly. One small problem with the random image block. The first time an image is shown, an error appears below it...

    Quote

    DB Error: getArticles: 1052: Column 'pn_counter' in field list is ambiguous


    ...and the news items which should appear below (center block) don't load.

    If the page is refreshed before the expiry of the update time interval for the next image, then the error disappears and the rest of the center loads fine.

    Update - this is only on PN.764 - on Zik1.0, it's fine.



    edited by: AdrianC, Aug 05, 2008 - 02:37 PM
  • Posted: 15.08.2008, 13:23
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

    AdrianC

    Well, almost perfectly. One small problem with the random image block. The first time an image is shown, an error appears below it...

    Quote

    DB Error: getArticles: 1052: Column 'pn_counter' in field list is ambiguous


    ...and the news items which should appear below (center block) don't load.

    If the page is refreshed before the expiry of the update time interval for the next image, then the error disappears and the rest of the center loads fine.

    Update - this is only on PN.764 - on Zik1.0, it's fine.


    Anybody? This is the last remaining thing stopping me shifting from PhotoShare - which several users have since told me isn't working for them at all... (Taking too long to display for their browser, it appears - AOL seems to be a common factor)
  • Posted: 19.08.2008, 20:31
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

    AdrianC

    Anybody? This is the last remaining thing stopping me shifting from PhotoShare


    Well, I've migrated the live gallery to MediaShare, but the random image block is still on PhotoShare - ANYBODY?

    Does the random image block just plain not work in PN764?
  • Posted: 05.09.2008, 19:21
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I always get messages like this when trying to convert my photoshare albums to mediashare. The directories media and tmp are writable so I don't know what other mistake I could have made. I put the pnshow.php into the photoshare directory like theinstall instructions told me.

    Quote

    /www/xxx/xxx/test/modules/mediashare/pnimportapi.php(156): Got error while converting (Album 1): /www/xxx/xxx/test/modules/mediashare/pnvfs_fsdirectapi.php(44): Failed to copy file '/tmp/Preview5jNEFY' to '/www/xxx/xxx/test/media/o0/phngmi05dwt6q01tc6citguzdu555f-tmb.png' while creating new file in virtual storage system. Please check media upload directory in admin settings and it's permissions.


    And I can't upload new files:

    Quote

    /www/xxx/xxx/test/modules/mediashare/pnvfs_fsdirectapi.php(44): Failed to copy file '/tmp/PreviewITf4xn' to '/www/xxx/xxx/test/media/ho/mhjii0yawjt6awalydku3uo3s4sucx-tmb.png' while creating new file in virtual storage system. Please check media upload directory in admin settings and it's permissions.


    Any idea?



    edited by: trekclubs, Sep 05, 2008 - 08:23 PM
  • Posted: 06.09.2008, 08:38
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

    trekclubs

    I always get messages like this when trying to convert my photoshare albums to mediashare. The directories media and tmp are writable so I don't know what other mistake I could have made. I put the pnshow.php into the photoshare directory like theinstall instructions told me.


    The install instructions have recently been corrected - you need to leave the old photoshare PHP intact, and just replace pnshow - the instructions used to tell you to remove all the photoshare PHP. That doesn't work. Although, for the error you've got, that's not the problem.

    Quote

    Quote

    /www/xxx/xxx/test/modules/mediashare/pnimportapi.php(156): Got error while converting (Album 1): /www/xxx/xxx/test/modules/mediashare/pnvfs_fsdirectapi.php(44): Failed to copy file '/tmp/Preview5jNEFY' to '/www/xxx/xxx/test/media/o0/phngmi05dwt6q01tc6citguzdu555f-tmb.png' while creating new file in virtual storage system. Please check media upload directory in admin settings and it's permissions.


    And I can't upload new files:

    Quote

    /www/xxx/xxx/test/modules/mediashare/pnvfs_fsdirectapi.php(44): Failed to copy file '/tmp/PreviewITf4xn' to '/www/xxx/xxx/test/media/ho/mhjii0yawjt6awalydku3uo3s4sucx-tmb.png' while creating new file in virtual storage system. Please check media upload directory in admin settings and it's permissions.


    Any idea?


    Try using the default [pnroot]/mediashare directory - something appears to be a bit too hard-coded inside the module, and it doesn't work if you try to change the directory.
  • Posted: 06.09.2008, 14:47
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Thanks!

    Good that I didn't read it THAT closely. I left all files intact and just replaced the pnshow.php. It seems I'm a bit too used to being allowed to put the directory wherever I want. I'll try the default one then ;-)

Template courtesy of Designs By Darren.