ZenphotoCMS Forum
tinyZenpage not inserting images... - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: tinyZenpage not inserting images... (/thread-9163.html)



tinyZenpage not inserting images... - n20capri - 12-10-2011

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]




tinyZenpage not inserting images... - sbillard - 13-10-2011

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?




tinyZenpage not inserting images... - n20capri - 13-10-2011

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




tinyZenpage not inserting images... - sbillard - 13-10-2011

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.




tinyZenpage not inserting images... - acrylian - 13-10-2011

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.




tinyZenpage not inserting images... - n20capri - 13-10-2011

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




tinyZenpage not inserting images... - acrylian - 13-10-2011

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.




tinyZenpage not inserting images... - n20capri - 13-10-2011

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.




tinyZenpage not inserting images... - acrylian - 13-10-2011

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.




tinyZenpage not inserting images... - n20capri - 14-10-2011

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!




tinyZenpage not inserting images... - sbillard - 14-10-2011

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.




tinyZenpage not inserting images... - acrylian - 14-10-2011

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




tinyZenpage not inserting images... - n20capri - 17-10-2011

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

Awesome guys Thanks!




tinyZenpage not inserting images... - acrylian - 17-10-2011

Thanks for the confirmation!