Support » Plugin: WP Photo Album Plus » [Plugin: WP Photo Album Plus] Strange apostophe Search problem

Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Thank you for this report. This will be fixed in the next version.

    davidallen23

    (@davidallen23)

    Thanks. The latest has update has fixed the \ problem.
    However, if I search for WRIGHT’S or some other search term that includes an apostrophe (‘) nothing is found even though the term is in a photo description.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    By me it works, go to http://wppa.opajaap.nl and search for saldo-'corrector' and you will fine one picture.

    davidallen23

    (@davidallen23)

    So if it works for you what could be my problem.
    I just added saldo-‘corrector to a photo description and then searched – nothing found.
    I tried adding “123” and nothing found.
    It it something to do with ASCII coding?

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    WP is set to utf-8? and wppa+ also? (Table VIII-2).

    davidallen23

    (@davidallen23)

    Table VIII-2 allows me to: Set to utf-8 Set Character set to UTF_8.
    So is wppa+ set to utf-8 or not?
    However, it seems very unlikely to me that this is the problem area when using a standard UK PC/OS set up.
    However, I can’t imagine what could cause the problem.
    Can you point in any direction in order to solve it?

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Table VIII-2 is not a setting, but an action to be performed. It sets the necessary databasefields to utf-8. It does no harm to do this a second time.

    A suggestion:

    Use the autosave version of the album admin page (if not set already, check Table IX-18 first). Then go to the photo and change the description (add a space or so) and click outside the edit window. This should update the field. Then try again.

    davidallen23

    (@davidallen23)

    Thanks opajaap.
    As usual you’ve worked your magic.
    I tried your suggestion and it now works fine.

    davidallen23

    (@davidallen23)

    Well, it only works if I go through all albums and do the same thing to every photo that contains an apostrophe in the description. Did the ‘Save all changes’ button stop working?

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    The autosave works with ajax, this means the data goes through javascript. This is slightly different from regular $_POST.
    This means that escape characters act a little different.

    I will have a quick look into the code if i can find a possible solution to this…

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Try this:

    wppa-functions.php at line 1908:

    function wppa_deep_stristr($string, $tokens) {
    global $wppa_stree;
    	// Explode tokens into search tree

    change to:

    function wppa_deep_stristr($string, $tokens) {
    global $wppa_stree;
    	$string = stripslashes($string);
    	$tokens = stripslashes($tokens);
    	// Explode tokens into search tree

    If it works, it is usefull to try either one line apart, it may be that only one of them is required, but i cannot guess which.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Forget about editing, update to 4.4.1 Its not documented (as i do not know if it works) but the mod is in, and it still works on my site.

    I am missing something. I see the widget title “Search Photos” However there is no text box to enter search keys.

    http://georgerandybass.com/c-o-canal/canal-photos?wppa-album=2&wppa-photo=21&wppa-occur=1

    Got to be something simple!

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Did you activate a Search Photos widget (subtitle: WPPA+ Search Photos)?

    Yes. The title “Search Photos” is at the top of the widget area. Is there more to activation?

    Thanks for the prompt response! Really like the plugin! Made donation this morning!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘[Plugin: WP Photo Album Plus] Strange apostophe Search problem’ is closed to new replies.