1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Photopost import

Discussion in 'Media Gallery Support' started by CMGDevel, Dec 10, 2014.

  1. CMGDevel

    CMGDevel Active Member

    Hi,

    I ran through a full vb import today, followed by imports of Albums and Photopost images. Everything seems to be working except for the photopost stuff. I can see the correct categories that correspond to what PP had, but can't seem to get any of the pictures to show up. I have rebuilt everything that I can I think. Just can't seem to get the pictures associated with categories. I get message "No media has been added yet. Add Media."
     
  2. CMGDevel

    CMGDevel Active Member

    Category_media_count for all categories in the DB is zero.
     
  3. Chris D

    Chris D XenForo Developer Staff Member

    How many media items do you have in xengallery_media?
     
  4. CMGDevel

    CMGDevel Active Member

    There are 3316 items in there. They look to be VB attachments though as they all have an attachment id.
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    This is likely down to a permissions issue, then.

    Make sure your user account has these permissions:

    View media
    View albums
    View categories

    If you don't see anything obviously wrong, then use the Analyze Permissions feature in the Admin CP. Enter your username and screenshot the output specifically of the various XenForo Media Gallery groups.
     
  6. CMGDevel

    CMGDevel Active Member

    I will take a look into the permissions again but like I said in my last post it appears that everything in the xengallery_media is associated with vb attachments.
     
  7. Chris D

    Chris D XenForo Developer Staff Member

    You edited it while I was typing my previous post. You originally said it wasn't clear if they were VB or Photopost.

    It sounds like the Media step of the Photopost import wasn't successful. This would happen if it couldn't find the source files for Photopost for some reason. This might mean the path was entered wrong or otherwise wasn't accessible. It could also happen if the PhotoPost users don't exist in XenForo for some reason e.g. if the users were deleted.
     
  8. CMGDevel

    CMGDevel Active Member

    Ok so is the import script looking for the photopost source .php files or are you saying it couldn't find the actual images in the /data directory (they appear to be there)? If I try the import again, will it mess up my xengallery tables?
     
  9. Chris D

    Chris D XenForo Developer Staff Member

    It would be looking for the images in the data directory.

    The Importer actually looks for the path as set in the Photopost database:

    Code:
    SELECT setting FROM pp_settings WHERE varname = 'datafull'
    (where pp_ is your Photopost table prefix)

    You should probably check what that is set to before running the process again.

    If the files are in a different location, you should be able to override the default setting by opening up the file: library/XenGallery/Importer/PhotopostVb.php

    And changing this line near the top:
    PHP:
    protected $_fileRoot;
    To:
    PHP:
    protected $_fileRoot 'full/path/on/server/to/photopost/data';
    (Change the path accordingly).
     
  10. CMGDevel

    CMGDevel Active Member

    That's the problem. The database got moved to a new server with a different directory structure.
     
  11. CMGDevel

    CMGDevel Active Member

    So if I re-run the import with the valid absolute file path corrected in the photopost database is that going to jack up the XenGallery tables?
     
  12. Chris D

    Chris D XenForo Developer Staff Member

    No, it should be fine. You won't be able to use the Retain content IDs option, though.
     

Share This Page