Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2005-12-07 00:00:41

t0ma
Member
From: On the edge of arctic circle
Registered: 2005-04-28
Posts: 24
Website

Re: aba_import_images (formerly nhn_import_images)

I have the same problem with double import, Quite annoying. I am currently unable to give more info as I am sitting in small cafe in Arequipa, Peru and trying to update my travel blog.

Best regards, Topi


“The role of art is to make a world which can be inhabited.”

Offline

#32 2005-12-07 00:19:45

aba
Plugin Author
Registered: 2004-04-14
Posts: 119

Re: aba_import_images (formerly nhn_import_images)

unfortunately I can’t find any reason for it or even a solution (and it doesn’t happen here, using Firefox). I was told that it will do this when using the same session so logging out of textpattern after importing the images and logging in again might work. I’m in the process of reading some heavy stuff about pHP internals I don’t even pretend to fully understand to maybe find out what to do – according to the code it shouldn’t happen at all and the number of replies indicate that only some are affected.

Debugging a problem I can’t reproduce doesn’t make it easier at all – any help is appreciated.

apart from that: enjoy your trip – Machu Picchu is still on my todo list.

Offline

#33 2005-12-07 06:21:02

Anton
Plugin Author
From: Alingsås, Sweden
Registered: 2004-11-16
Posts: 138
Website

Re: aba_import_images (formerly nhn_import_images)

t0ma: sure about your chmod settings? i had no problem when having 777 on everything, IIRC.

Offline

#34 2005-12-07 08:39:56

lwray
Member
From: Allston, MA
Registered: 2004-12-02
Posts: 21
Website

Re: aba_import_images (formerly nhn_import_images)

On my first attempt using this plugin, I had the same problems as Superstar, with same error messages (no debugging on) and double images. I knew I should have started with something less than 100 images…

Anyway, I tried to duplicate it with debugging on (and that’s the only thing I changed), but now the plugin works flawlessly. Perhaps it’s something that only happens on the first go? Has anyone experienced double image uploads after the first attempt?

edited to add: This was also all done in the same session of Textpattern, i.e. I didn’t log in or out.

Last edited by lwray (2005-12-07 08:40:58)

Offline

#35 2005-12-07 11:43:48

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: aba_import_images (formerly nhn_import_images)

Nice plugin. The former was not very usable without the automatic thumbnail tool. I will give it a try.

Offline

#36 2005-12-11 17:05:11

mordread
New Member
From: Paris
Registered: 2004-08-30
Posts: 6
Website

Re: aba_import_images (formerly nhn_import_images)

> aba wrote:
> I was told that it will do this when using the same session so logging out of textpattern after importing the images and logging in again might work.

I also have the same problem of double import (and didn’t notice anything in the debug output).
In fact, your recommendation works well:

  • logging out,
  • copying image files into /import dir,
  • logging in again

Thanks for this Plugin!

Offline

#37 2005-12-11 17:22:04

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: aba_import_images (formerly nhn_import_images)

I always get an error message after import that the folder is not readable….and that the images were imported. They always are, and the folder is 777. Don’t know why the message comes but it does not really affect the usage too much.

Offline

#38 2005-12-12 17:27:50

t0ma
Member
From: On the edge of arctic circle
Registered: 2005-04-28
Posts: 24
Website

Re: aba_import_images (formerly nhn_import_images)

Anton: Yes I have chmodded it 777, problem isn’t there. Anyway, I’ll try that ending session today and will report back later.


“The role of art is to make a world which can be inhabited.”

Offline

#39 2005-12-13 18:54:03

t0ma
Member
From: On the edge of arctic circle
Registered: 2005-04-28
Posts: 24
Website

Re: aba_import_images (formerly nhn_import_images)

I tried the plugin today. I got doubles again. I did that close sessions while uploading and new session after upload. I don’t know if the problem is there but I clicked images tab again while there was no sign of lige. Maybe it started working with images again when I did this.

Weird, some of the images were four times, some three or two times.

Poor me, 85 images I uploaded. A lot work to delete those doubles.

Last edited by t0ma (2005-12-13 18:57:07)


“The role of art is to make a world which can be inhabited.”

Offline

#40 2005-12-19 12:01:45

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: aba_import_images (formerly nhn_import_images)

I have an issue. The plugin doesn’t work with utf8 characters in the filename. For example a file Jérémie.jpg will work when added with Textpattern, but not with the plugin (I got a Apache 500 error).

Last edited by Jeremie (2005-12-19 12:11:45)

Offline

#41 2005-12-19 15:54:01

aba
Plugin Author
Registered: 2004-04-14
Posts: 119

Re: aba_import_images (formerly nhn_import_images)

do you have access to the errorlog?

Offline

#42 2005-12-19 16:24:19

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: aba_import_images (formerly nhn_import_images)

Of course when I try to reproduce it after activating the apache logs, it doesn’t work. Grmbl.

Ok now I’ve got this error : “There was a problem reading the file info, please check permission” (the file was 777, even if I don’t need it because PHP is under fast-cgi/suexec). The image is imported (and resized, thumbnailed,etc.) but the name of the image is cropped to the first ascii characters until the first non ascii one (here the “é”).

Nothing shows on the error log, but I can’t be sure of it, I’ve tested it on Textdrive and their console (to activate the log and its level) is.. well… strange :)

I’m not sure if I’m clear. Need some sleep ^^

Offline

#43 2005-12-19 18:18:34

aba
Plugin Author
Registered: 2004-04-14
Posts: 119

Re: aba_import_images (formerly nhn_import_images)

strange, I use umlauts (being a native german) all the time without a problem.

For the error report: I put it in because of some reports that told me people tend not have the correct permissions for files but it seems to be wrong sometimes so I will get rid of all additional error checking. I’m still trying to reproduce the aforementioned “double import” error before releasing a stripped down version without debug code.

I’ll try to find out why the name is truncated and let you know asap – in the meantime: just ignore the error… ;)

Offline

#44 2005-12-21 13:00:16

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: aba_import_images (formerly nhn_import_images)

The displayed error is fine, nobody sees it but me. But the truncation of the name is more a thing right now :(

Offline

#45 2005-12-21 15:01:59

aba
Plugin Author
Registered: 2004-04-14
Posts: 119

Re: aba_import_images (formerly nhn_import_images)

locate the line (approx in the middle of the file

$name2db = doSlash($imagename);

replace with

$name2db = utf8_encode(doSlash($imagename));

and tell me if this works.

Unfortunately I’m not a php guru nor an utf8 expert so this is a wild shot in the dark.

Offline

Board footer

Powered by FluxBB