Member
Member
n20capri   12-10-2011, 21:23
#1

When using tinyZenpage some images insert into the page with no problems...but other images will not insert. Seems to be album specific - If one image inserts from an album they all will and if one won't none will but I can't figure out what the actual issue is. I click on them and nothing happens...

I thought it was a permissions thing but it doesn't seem to be that because the permissions match.

Anyone have any ideas?
Much appreciated,
Mike
ZP 1.4.1.2 [7836]

Member
Member
sbillard   13-10-2011, 00:10
#2

Have you tried inserting one of the images that fails in the album into an album where the images do not fail?

Any thing "special" about the folder name where they fail? Like any accented characters in the name?

Member
Member
n20capri   13-10-2011, 03:16
#3

Well that's part of the problem...If the Album title had a special character in it (') it wouldn't allow tinyZenpage to insert an image. I was able to change the Album title for a few albums and they now work.

HOWEVER, there are still a few that aren't working even removing the ('). I thought it was because the actual album name had a (-) but then there is one that DOES work with a (-).

Gonna investigate further in the morning...thanks for the help so far...

Any other advice?
-Mike

Member
Member
sbillard   13-10-2011, 04:28
#4

Only to check the CGI logs to see if any errors have been generated. Also look at your debug log file. The hyphen should not be a problem. I did try an album with an apostrophy in the name but that did work for me except for TinyZenpage. That is a bug. The apostrophy is a problem for javascript, but it should be escaped.

What are your server details?

Also give us the names of some of the albums that still fail.

Administrator
Administrator
acrylian   13-10-2011, 08:31
#5

Probably a bug indeed. Just to be sure: If we are talking about the album folder name and not the title I really suggest not to use special chars in those. Even if it should actually work it is a source of lots of trouble sadly which is easily avoided though.

Member
Member
n20capri   13-10-2011, 12:51
#6

Thanks again guys - I figured it out. If there is an apostrophe in the Album Title OR Album Description tinyZenpage won't insert an image from that album!

I did a few tests which confirmed that but havent gone through my entire gallery yet so I will report back if there are other issues.

Funny thing is I know from past programming and database experience that the apostrophe (we used to refer to it as a "tick") needs to be handled properly for db insertion...just didnt think that was the issue here until sbillard mentioned special characters because the older ZB install I have up and running, 1.3.1.2 [5831], works just fine.

Anyway glad we figured it out. No apostrophes for me this time around! LOL

If there is anything I need to do to put in an official bug report or for additional testing let me know!

Thanks again,
Mike

Administrator
Administrator
acrylian   13-10-2011, 15:39
#7

Thanks for testing. The issue is JavaScript related which is very picky about these chars. The title and description are passed via that so it does not exactly matter how it is handled in the db. My collegue has already create a ticket for this bug you don't need to do anything more. We will look into it.

Member
Member
n20capri   13-10-2011, 15:42
#8

Cool - Thanks - No prob. I used to test for a living so it's no big deal. Will you update this thread when the issue is fixed? AND, will there be an easy fix on my end w/o installing the latest? I never have luck updating stuff! lol. I don't mind hard coding anything either...let me know.

Administrator
Administrator
acrylian   13-10-2011, 16:33
#9

Actually we will update (close) the ticket: http://www.zenphoto.org/trac/ticket/2001

I haven't had time to look yet. Generally we don't recommend updating just parts but maybe it will be enough to replace the tinyZenpage plugin of the tinyMCE plugin for this. But as said further on the ticket.

Member
Member
n20capri   14-10-2011, 14:08
#10

I've updated tinyzenpage-functions.php and have tested a few scenarios. Looks like it's working as it should now. Still haven't gone through my entire gallery but I will report back if I find any issues!

Thanks for the quick work on this guys!

ZP RULES!

Member
Member
sbillard   14-10-2011, 17:10
#11

There were some more problems I ran into this morning with HTML in the descriptions. I'd appreciate your getting that update and doing some more testing.

Administrator
Administrator
acrylian   14-10-2011, 17:42
#12

@n20capri: This time also update the /js/dialog.php file.

Member
Member
n20capri   17-10-2011, 13:24
#13

Ticket is closed I know but I just completed some more testing and all is fine!

Awesome guys Thanks!

Administrator
Administrator
acrylian   17-10-2011, 15:35
#14

Thanks for the confirmation!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.