WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: WP ImageTagger] Not working with WP 2.9.1? (24 posts)

  1. Laetitia Debruyne
    Member
    Posted 4 years ago #

    I'm currently working on my new website and your extension will really help me :)
    Trying to activate it, I've got the same error every time :
    Parse error: syntax error, unexpected '=', expecting ')' in ../wp-content/plugins/wp-imagetagger/imagetagger-lib.php on line 299

    I desactivated each extension in order to see if one of these was the problem, but it did not change anything.

    Did you test it with my WP version?

    Merci par avance, et bonjour de Lyon ;)

    http://wordpress.org/extend/plugins/wp-imagetagger/

  2. phd38
    Member
    Posted 4 years ago #

    I am checking and will let you know.

    Bonjour de Grenoble

  3. phd38
    Member
    Posted 4 years ago #

    I might have found the reason, while I am not 100% sure ... Where is your site hosted ? Which PHP version ?
    Bruno

  4. phd38
    Member
    Posted 4 years ago #

    Another question : do you face the same behaviour using ImageTagger 1.0 ? Did you experience it with V1.1 first ?

  5. phd38
    Member
    Posted 4 years ago #

    ... and did you check you have already images or photos available in your posts ? Pls give a try to V1.2.

  6. Laetitia Debruyne
    Member
    Posted 4 years ago #

    I checked with the 1.0 and 1.1. Have images in my posts. My website is hosted with OVH. PHP version : 5.2.11
    Check with 1.2, there's always an error when I try to activate it :

    Parse error: syntax error, unexpected '=', expecting ')' in /homez.28/site/dev/wp-content/plugins/wp-imagetagger/imagetagger-lib.php on line 342

    Thank you :)

  7. phd38
    Member
    Posted 4 years ago #

    Bizarre ...

    This line is a function definition :

    function imgt_get_images_untagged(&$reason=0) {

    Maybe the server disallows compact byref argument initialization. I am going to slightly change it in version 1.3, please try downloading the latest 1.3 in 15 minutes.

    Bruno

  8. Laetitia Debruyne
    Member
    Posted 4 years ago #

    Arf...

    Parse error: syntax error, unexpected '=', expecting ')' in /homez.28/site/dev/wp-content/plugins/wp-imagetagger/imagetagger-lib.php on line 340

  9. phd38
    Member
    Posted 4 years ago #

    I don't think you got the last release ... there is no more "=" in line 340.

    Please open imagetagger-lib.php and copy/paste line 340 so that I am sure.

    Then reload 1.3, I guess you downloaded it before the changes were reflected by the repository manager.

  10. Laetitia Debruyne
    Member
    Posted 4 years ago #

    You're right, it was not really the 1.3...
    Thank you, no more error message during the activation!
    I can test it now ;)

  11. Laetitia Debruyne
    Member
    Posted 4 years ago #

    Erk... another problem in the admin area. For each tag listed, I've got this message :

    Warning: in_array() [function.in-array]: Wrong datatype for first argument in /homez.28/site/dev/wp-content/plugins/wp-imagetagger/imagetagger-admin.php on line 171

  12. phd38
    Member
    Posted 4 years ago #

    Hébé ... pas sympa ce serveur. Je regarde ce soir.

    Apart from this warning, please confirm the functionality is OK and that you don't get anymore errors.

  13. Laetitia Debruyne
    Member
    Posted 4 years ago #

    I put the function in my sidebar, when I check a tag, the next page displays this error :

    Thème recherché :
    Fatal error: Call to undefined function: array_uintersect() in /homez.28/site/dev/wp-content/plugins/wp-imagetagger/imagetagger-lib.php on line 246

  14. phd38
    Member
    Posted 4 years ago #

    Concerning the last message :

    Fatal error: Call to undefined function: array_uintersect() in /homez.28/site/dev/wp-content/plugins/wp-imagetagger/imagetagger-lib.php on line 246

    I would expect to get this style of message with a server running PHP4.

    I really wonder how can this happen. array_uintersect is a standard PHP function starting from PHP5. Referring to your previous messages, I understand you are in PHP 5.2.11 (pls confirm). Therefore this message is a non sense.

    Is your web hosting mutualized, or is that a dedicated server ?

  15. phd38
    Member
    Posted 4 years ago #

    Pls confirm this behaviour with the latest development release.

    Thx.

  16. Laetitia Debruyne
    Member
    Posted 4 years ago #

    Hum, I'm sorry, one of my other websites is under PHP 5.2.11, so I thought my dev one too, but it's 4.4.9. My apologizes.
    I'm under a mutualized web hosting. I check the latest release.

    So, now I've got this lovely message ;)
    Le serveur hébergeant le blog doit être équipé au minimum de la version PHP 5 pour pouvoir faire fonctionner le plugin ImageTagger.
    La version 4.4.9 a été détectée sur ce serveur.

    (je développe la nouvelle mouture de ce site sur mon serveur mutualisé, mais ayant acheté un dédié depuis quelques jours, je vais le migrer avant de publier la nouvelle version - je pensais le faire après avoir fini le travail, mais à la vue des problèmes rencontrés...)

    So thank you for your very fast answers :) I'll let you know if I find more "problems".

  17. phd38
    Member
    Posted 4 years ago #

    Maintenant que c'est clair, je tâcherai de porter le code pour qu'il puisse tourner en PHP 4.3.

    Ce qui m'embête est la fonction in_array: elle est supportée dès PHP 4, et pourtant vous rencontrez des difficultés y compris avec celle-ci. Enfin, au moins au niveau de l'un des arguments.

    Je verrai ...

  18. phd38
    Member
    Posted 4 years ago #

    Je pense tenir une solution pour régler le pb in_array to commme array_uintersect.

    Je me mets dessus ce soir, je suis confiant dans le fait d'avoir ce plugin supporté à partir de PHP 4.3.

  19. phd38
    Member
    Posted 4 years ago #

    Question, concernant

    For each tag listed, I've got this message :
    
    Warning: in_array() [function.in-array]: Wrong datatype for first argument in /homez.28/site/dev/wp-content/plugins/wp-imagetagger/imagetagger-admin.php on line 171

    Cela empêche-t-il le comportement du plugin, ou n'est-ce qu'un warning sans conséquence sur l'exécution ?

  20. Laetitia Debruyne
    Member
    Posted 4 years ago #

    J'ai migré mon site sur le dédié, qui est avec PHP 5. Si besoin je peux me débrouiller pour le remettre sur le mutualisé avec PHP 4 pour les besoins de vos tests, demandez :)

  21. phd38
    Member
    Posted 4 years ago #

    Ca c'est sympa ...

    Je suis en train de corriger les problèmes soulevés, je vous fais signe quand c'est prêt.

  22. phd38
    Member
    Posted 4 years ago #

    Voilà à priori c'est tout bon.

    Essayez la version développement qui deviendra la 1.4

    Merci:-)

  23. phd38
    Member
    Posted 4 years ago #

    You can even try 1.5 now.

  24. phd38
    Member
    Posted 4 years ago #

    Case closed above starting V1.5

Topic Closed

This topic has been closed to new replies.

About this Topic