Log in | Register | Lost password

Bottom
Photoshare => Mediashare in Zikula
  • Posted: 24.06.2008, 07:59
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Jorn, you're gonna hate me ;)

    I have a very old site running pn 0.7.1, with a lot of images in photoshare 4.2. My goal is to modernize to Zikula and mediashare. The photoshare images are stored in the database. I have a new fresh zikula install (not upgraded) and it and mediashare are functioning there.

    I know there are some basic compatibility issues here. I can't install photoshare into Zikula. I can't install mediashare into pn 0.7.1. I am hoping that I can copy photoshare to Zikula and the photoshare database into the Zikula database and get enough functionality for Zikula/Mediashare to do an import. I did try to install photoshare, and it got far enough to load default module vars. I've resolved a few issues where the photoshare functions called in the mediashare import wanted zk_users.pn_name which no longer exists, and some where it thought I had extra fields defined that weren't actually there. I'm stuck at this error:


    Code

    path/to/modules/mediashare/pnimportapi.php(156): Got error while converting (): path/to/modules/mediashare/pnmediahandlerapi.php(131): Unable to locate media handler for '' ()


    Looking at the code there, it seems that photoshare is looking for files to import instead of records in a database(?). Is there something I can do to force it to look in the database?

    Here's the photoshare module vars:

    Code

    "240";"photoshare";"allowaccessperuser";"N;"

    "228";"photoshare";"allowframeremove";"N;"

    "239";"photoshare";"defaultfolderaccess";"N;"

    "230";"photoshare";"defaultTemplate";"s:7:\"stylish\";"

    "229";"photoshare";"defaultTopic";"N;"

    "232";"photoshare";"extra1Title";"s:0:\"\";"

    "233";"photoshare";"extra2Title";"s:0:\"\";"

    "234";"photoshare";"extra3Title";"s:0:\"\";"

    "235";"photoshare";"extra4Title";"s:0:\"\";"

    "236";"photoshare";"extra5Title";"s:0:\"\";"

    "237";"photoshare";"extra6Title";"s:0:\"\";"

    "221";"photoshare";"imagedirname";"s:1:\"*\";"

    "226";"photoshare";"imageSizeLimitSingle";"s:6:\"250000\";"

    "227";"photoshare";"imageSizeLimitTotal";"s:7:\"5000000\";"

    "231";"photoshare";"mainlist";"s:4:\"flat\";"

    "225";"photoshare";"maxdisplayheight";"s:1:\"0\";"

    "224";"photoshare";"maxdisplaywidth";"s:1:\"0\";"

    "223";"photoshare";"thumbnailsize";"s:2:\"80\";"

    "220";"photoshare";"tmpdirname";"s:4:\"/tmp\";"

    "222";"photoshare";"useImageDirectory";"s:1:\"0\";"

    "238";"photoshare";"useimagedirectory";"s:1:\"0\";"


    I've also verified that mediashare is storing data in the database.

    Any suggestions?
  • Posted: 05.07.2008, 08:00
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    I've gotten it imported by updating the old site to .764, doing the photoshare => mediashare import there, and then transfering the data to the new site.

    The support for old photoshare URLs doesn't seem to be working. I've fiddled with it for about an hour and no success. Not sure if we should expect it to work in Zikula though. If photoshare is actually removed in Modules, Zikula won't allow any calls to files there. And without all the photoshare files present (your docs say to remove the files except for the mediashare verion of pnshow.php) it can't be initialized.

    Any hints/suggestions?
  • Posted: 08.07.2008, 19:40
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0

    bronto

    The support for old photoshare URLs doesn't seem to be working. If photoshare is actually removed in Modules, Zikula won't allow any calls to files there. And without all the photoshare files present (your docs say to remove the files except for the mediashare verion of pnshow.php) it can't be initialized.


    You don't really need to remove the Photoshare files/module. You are right - that will make it impossible to use the Photoshare URLs. I did not think about it since I upgrade Photoshare and leave the site believing it's still there. Just let the Photoshare files stay and live their own lives.

Template courtesy of Designs By Darren.