What Do You Need In The Xf2 Xengallery Version? Vote for your choices here: http://www.sonnb.com/threads/what-do-you-need-in-the-xf2-xengallery-version.1539/

Question Time Out Or Error Importing Xfr_useralbum

Discussion in 'XenGallery' started by snoopy5, Feb 21, 2014.

  1. snoopy5

    snoopy5 Authorized Member Authorized

    Hi

    I just tried for another forum to import xfr_useralbum into xengallery. First step (albums) works fine, second step (photos) gies until 43,x% and then an internal error occurs.

    My guess is that it is a time out, but I am not sure about it.

    I first thought, that this is because I had also inatlled the xfr albums more addon. So I deinstalled it and ran again a new import. But again the same problem at the same step with the same percentage

    What could i do?

    Is there any other manual way to import it into xengallery?

    Xenforo 1.24

    (only around 21 xfr albums with a total of around 300 images)
     
    Last edited: Feb 21, 2014
  2. sonnb

    sonnb Administrator Staff Member

    Can you check the php logs to see what is the actual error?

    (btw, another forum need another license for XenGallery ;))
     
  3. snoopy5

    snoopy5 Authorized Member Authorized

    Hi

    I have of course two licences ;)

    I n XF ACP there are no errors during the time of the import. I will attach as PM the error log of the server for the time frame when I did try the import (somewhere between 10pm and 11pm). saved with notepad++
     
  4. snoopy5

    snoopy5 Authorized Member Authorized

    update:

    I have new information from my webhoster.

    I am on a shared server. I have max 100MB RAM which can be used within the first 30 seconds in total. The import script exceeded the 100MB slot during the first 30 seconds, this is why the internal server error appeared.

    I am surprised that with only 300 images (around 500KB each), the 100MB RAM is already full.

    But the webhsoter said, you need to adapt the import script so that it does not make each step in one pull. It shall restart every x seconds or so and then you do not get over the 100 MB within the first 30 seconds.

    I guess this will be a common problem since many users are on shared servers...
     
  5. sonnb

    sonnb Administrator Staff Member

    It is useful information.

    Foreach each run, we will query 50 photos. For each photo, it will run create thumbnail 3 times (large thumbnail, medium and small). It also create photo with queries. This might be the issue.

    I will decrease this to 20 photos to reduce the process time and memory for slow host.
     
    Last edited: Feb 23, 2014
    snoopy5 likes this.
  6. snoopy5

    snoopy5 Authorized Member Authorized

    Can I do this already via FTP directly in your code? If yes, in which file do I have to change what?
     
  7. sonnb

    sonnb Administrator Staff Member

    Please edit: library\sonnb\XenGallery\Importer\UserAlbum.php line 204.
     
  8. snoopy5

    snoopy5 Authorized Member Authorized


    Thanks, I found it and changed 50 into 20.

    How can I delete the old imports which did not succeed in the database to avoid double imports?
     
  9. sonnb

    sonnb Administrator Staff Member

    Please go to: adminCP -> Applications -> XenGallery -> Manage Albums.
     
  10. snoopy5

    snoopy5 Authorized Member Authorized

    Does this mean all from xfr_albums imported albums are listed there in the tab "uncategorized albums"?
     
  11. snoopy5

    snoopy5 Authorized Member Authorized

    Hi

    I just wanted to report back, that I deleted all uncategorized albums and started a new import, this time with the lower number in the php file as described above and everything worked fine...
     
  12. sonnb

    sonnb Administrator Staff Member

    It is good to hear that :)
     

Share This Page