Coder Social home page Coder Social logo

Web import hiccup about zoph HOT 6 CLOSED

jeroenrnl avatar jeroenrnl commented on September 5, 2024
Web import hiccup

from zoph.

Comments (6)

lizdodd avatar lizdodd commented on September 5, 2024

Trying now to follow up the error, I can't manually import
zoph --photographer "liz billiau" --field "mapzoom=12" --album "home" /data/images/uploads/P1090853.JPG
File already exists: /data/images/2012/07/08/P1090853.JPG
File already exists: /data/images/2012/07/08/P1090853.JPGPHP Fatal error: Uncaught exception 'FileExistsException' with message 'File already exists: /data/images/2012/07/08/P1090853.JPG' in /var/www/zoph/file.inc.php:211
Stack trace:
#0 /var/www/zoph/file.inc.php(222): file->checkCopy()
#1 /var/www/zoph/photo.inc.php(423): file->checkMove()
#2 /var/www/zoph/import.inc.php(112): photo->import(Object(file))
#3 /var/www/zoph/cli/cli.inc.php(230): Import::photos(Array, Array)
#4 /var/www/zoph/cli/cli.inc.php(75): cli->doImport()
#5 /usr/bin/zoph(95): cli->run()
#6 /usr/bin/zoph(62): init()
#7 {main}
thrown in /var/www/zoph/file.inc.php on line 211

but there is no database entry so I can't view it.

from zoph.

jeroenrnl avatar jeroenrnl commented on September 5, 2024

The first (webimport) problem you are describing is probably a leftover from the change that removed the rating field from the photo table, I'm investigating that now.
The second problem is caused by the photo you're trying to import already being in your images directory, due to the import breaking halfway the import process. If you doublecheck whether the photo is indeed still in the place where you're trying to import it from, you can delete it (and the mid_ and thumb_ files too) from the images dir. If it does no longer exist in the original location, you should move it back instead of deleting it.

from zoph.

jeroenrnl avatar jeroenrnl commented on September 5, 2024

I can't reproduce this on my system... which version are you using?

from zoph.

lizdodd avatar lizdodd commented on September 5, 2024

version is whatever i downloaded from git last week,
OS is Debian jessie/sid

from zoph.

jeroenrnl avatar jeroenrnl commented on September 5, 2024

I haven't made any changes that could fix this in the last few weeks, so there must be something else going on. I will try some more to reproduce this issue.

from zoph.

jeroenrnl avatar jeroenrnl commented on September 5, 2024

After a long search, I finally found the issue: I run several installations of Zoph and in a few of them, I have negected to delete the rating field from the photo database... this included both the version I used to test your bug and the one that automatically runs tests every night... I will now remove it in both and see what happens :-)

from zoph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.