Problème avec la gestion des images dans WordPress 2.7.1

Voici me message d’erreur que j’ai quand je télécharge des images dans un de mes blog :
Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in.../wp-admin/includes/media.php on line 736

La solution est donnée par emilb dans cette discussion :
Editer le fichier /wp-admin/media.php. Descendez jusqu’à la ligne 736 et ensuite changer
if ( !array_key_exists($checked, $alignments) )
if ( !array_key_exists('$checked', $alignments) )

(il y a juste des guillemets ajoutés autour de $checked). Ce truc fonctionne aussi avec WPMU.

  • Amaury dit :

    Un warning n’est pas une erreur PHP.

    Donc hacker le coeur de WordPress dans une telle situation n’est pas pertinent.

    La solution serait plutot de vérifier que la constante WP_DEBUG n’est pas présente et également spécifier à PHP de ne pas afficher les warnings.

  • Pas d’accord avec Amaury qui propose une solution complexe d’informaticien (avec des distinguos entre error et warning qui échapperont au blogueur moyen) là où la solution de libretto sera accessible à tous (et probablement intégrée comme telle dans la prochaine version de WP, du moins peut-on l’espérer).

    Petite remarque. Il ne s’agit pas de guillemets mais de simples cotes (et c’est pas pareil !).

  • Wolforg dit :


    Je suis plutôt d’accord avec cui sur ce coup (et donc par conséquent avec Libretto) : Ne pas afficher les warnings équivaut à ne pas afficher les écrans bleus sous windows; cela ne résoud pas le souci cela le dissimule simplement 😉
    Quand à faire en sorte que ce warning soit rectifié pour la sortie de wp 2.8 il suffit d’ouvrir un ticket sur le trunck non? Amaury, tu crois que tu pourrais t’en occuper? 😀

    Ré@gissons, p@ticipons…

  • Samuel dit :

    j’ai installé l’extension, puis virée puisqu’elle ne marchait pas, maintenant en haut de mon site j’ai une inscription. Comment puis-je virer cela maintenant ?
    Merci pour votre aide !!!

  • Pacome dit :

    Bonjour !

    Voilà, désolé de vous déranger pour si peu…

    Mais je ne sais pas comment m’y prendre pour poser des questions techniques, alors j’espère que vous me viendrez en aide…

    J’ai donc un wordpress…qui sera sur des series.

    1/ J’aimerais faire une Page par série, mais je ne souhaite pas qu’elles s’affichent en haut mais plutôt dans un bloc qui serait un menu déroulant…

    Type celui-ci :

    (a gauche « Liste des Séries disponibles »)

    Mais j’ai peur que si je crée une page elle s’affiche auto en haut…

    2/ J’aimerais aussi pouvoir faire une newsletter du type : (a droite)

    Mais j’ai beau chercher, je ne sais pas comment la mettre =S

    3/ Je ne sais pas comment modifier l’index.php pour pouvoir y mettre une publicité (adbrite); ni comment la mettre directement dans un bloc a droite…

    Je comprendrais que vous ne voudriez pas répondre, si c’est le cas, excusez moi de vous avoir dérangé, et dans le cas contraire, merci beaucoup d’avance =)

  • Manu dit :

    Ce qu’il ne faut pas entendre… en prod.. on affiche jamais les warnings… jamais, tout simplement parce que d’une, c’est pas beau de montrer un site plein d’erreur… de deux… c’est un début de porte ouverte au hack, les warnings retourne des noms de fichier ainsi que leurs chemins.

    En prod, les warnings, on les logs dans un fichier… tout ça c’est parqué noir sur blanc dans les fichiers de conf php…

    En ce qui concerne cette modification, d’un point de vue code… c’est complêtement irrationnel… $checked est une variable censé contenir une chaine de caractère… visiblement… elle n’en contient pas.

    pour déterminer ce qu’il y a dans $checked… suffit de faire un var_dump($checked); à la ligne 735. La… mettre des guillemets autour de checked… c’est sur… la variable devient directement une chaine. Comment dire… c’est comme mettre du pétrol lourd dans sa voiture pour qu’elle redémarre… ça fume un peu… mais bon.. ça tourne…

  • Georges dit :

    Un plugin intéressant …

    Il permet de créer des dossiers, sous dossiers, de faire le tri, renommer et insérer plus facilement des images dans nos posts

  • crushpadwine dit :

    There is nothing as special as that night when a man proposes to the woman he loves and wants to make her his life. Getting the right ring is almost as important as actually proposing and will have to last a lifetime of everyday wear and tear. Durability is normally associated with rings, but it needs to be thought of as much as the actual look and price. 2 carat diamond engagement rings are beautiful and affordable, and they are available in a wide range of styles and looks.
    The first rule of thumb when looking for the perfect ring is that size really doesn’t matter that much. In fact, a lady will appreciate a cool and sleek look much more than a big rock that sticks out of her finger. That being said, spending some time shopping around can make a difference in both the ring you end up choosing as well as how it will look years from now.
    Second is to consider whether or not she like gold or silver as well as a look that is traditional or exotic. There are many different cuts that diamonds have, and the general rule of thumb is that if the ring has more facets, it will shimmer and radiate more brilliantly in light. As a result, more facets equals more money. However, a nice mid ranged diamond with around 30 or 40 facets will prove to be brilliant as well as affordable.

  • Finally, don’t write off shopping online. Many people prefer to go into a store and look and touch the actual ring, and justifiably so, however there are deals to be had online unlike anywhere else. But, for peace of mind, it might be worth it in the long run to look into a few retail stores and see what kinds of rings are available in your price range.
    On the other hand, you don’t want to look cheap and get something that she will not like either. Finding the happy middle takes some time and actual shopping around, which most guys hate. But making the extra effort for the one you love to give her a once in a lifetime symbol of the strength of your live is something that will be appreciated beyond words for years to come.
    There are plenty of these available at realistic prices, and 2 carat diamond engagement rings are beautiful and affordable. Looking around for one that she will look good in and love showing off for the world to see should be one of the most important things you ever do. So make it count and celebrate the beginning of a new life with something timeless and distinctively beautiful.

  • hvim dit :

    During winter period, temperature will fall down to great extent such that they will be fluctuating around freezing conditions. During that period there is an increased requirement to purchase bed sheets that will be providing ultimate comforts.
    For all those people who are looking for a quality product that will be offering best protection, flannel bed sheets will be a fabulous option. To help you pick the best quality flannel sheets, the killer tips that are mentioned below will be of great significance to fulfill your purpose.
    Use Light In Order To Determine Quality
    Bed sheets in which fabrics are spaced in a closer manner offer wonderful quality than the one in which the fabric are widely spaced. A simple method that will enable you to assess the fabric spacing is to place the bed sheet through the region of light and observe it closely.
    If you are able to observe light through the finer holes that are present then the quality of bed sheet is not good and alternatively look for a piece in which the fabrics are closely spaced together and this will be reflected when light is not visible when it is viewed.
    You can feel free to ask for a sample and look at this feature. If you are buying through online source, then you can depend upon the feedback which was made by other people or you can refer some of the images which are displayed in website.

  • fcmbfoot dit :

    Easy clean up design: One of the biggest challenges once the roast is ended or even at the time of doing it is the grill and the table cleaning. Sometimes even the abrasive are not enough to remove the food scraps. The Weber Performer Charcoal Grill design performs a One-Touch cleaning system with a removable black aluminum ash catcher, so that the only concern that one can have is to attend to your guests as they deserve, not cleaning.

  • fipn dit :

    Definitely, the Weber Performer Charcoal Grill with its combination of design and ease of use and cleaning

    provided by the assist gas technology to light the coals fast, this awesome 22.5-inch-Enameled porcelain bowl

    design and lid with a dual-purpose thermometer and the Char-bin charcoal holder, with no doubt becomes the best

    charcoal grill for all types of meetings and BBQ.

  • Staying healthy is a constant challenge in a world full of pressures and problems. Most of us are concerned about being fit and enjoying life to the full. So we need to maximise every area of our life to be healthy and enjoy a good wellbeing. We can sleep for up to a third of our lives so we should not ignore the impact of improving the amount of fitful sleep we obtain. When we select poor quality bedding it can have a dramatic negative affect on our sleep pattern. It can leave us feeling irritable, weak, and with a reduced ability to perform tasks. Good quality wool bedding initially appears to be expensive when compared to synthetic bedding, but as with many things you get what you pay for. Here are some reasons why wool bedding may be the wiser choice. Natural wool is a regulator of temperature.

  • weight brand dit :

    2 carat diamond engagement rings nike tn are beautiful and affordable, and they are available in a wide range of styles and looks

  • Lester vous dit :

    Editer le fichier /wp-admin/media.php. Descendez jusqu’à la Nike Free Run ligne 736 et ensuite changer

  • This past November, another local auction house advertised what was being called a « Christmas Auction. » Those in attendance were a little confused when they arrived because none of the merchandise was holiday related. Just before starting the auction, the auctioneer announced that all of the proceeds from this sale would be donated to buy toys for needy children in time for Christmas. Hence the name, « Christmas Auction. » He asked that they not haggle with him too much because it was « for the kids. » They didn’t. The auction did very well and paid for a whole lot of toys. Oh, yeah – all of the merchandise in the auction personally belonged to the auctioneer. He had been saving it up for an entire year.

  • Only three stories were outlined here. There are hundreds more out there that just don’t get the attention they deserve because the auction houses and auctioneers keep their good deeds to themselves. So, from now on, if you think auction houses and auctioneers are harsh, inflexible and difficult to get along with, just remember that there is actually a real bumper sticker out there that says, « Kiss an Auctioneer Today. » Whoever made up that bumper sticker obviously realized that some auction owners and auctioneers are good Samaritans in disguise. Now you know it too.

  • If by « full of beans » you mean metaphorically lyrical and light hearted, and full of life, then of course they are. But if you mean, are they made of real beans, like the edible varieties? Then no, they’re not. Bean bag chairs are full of « beads » and are 100% whimsical.
    No, bean bag chairs are not like those clever little bean filled toys you made in childhood when you went to girl scout or boy scout camp. Remember those? You would fill a small cloth bag with hard beans and stitch it closed. Those bags were great fun to toss around, and they’re still a good idea for toys.

  • version serveur dit :

    Donc hacker le coeur de WordPress dans nike free run une telle situation n’est pas pertinent

  • votre premier dit :

    Ce truc fonctionne nike air max aussi avec WPMU

  • truc fonctionne dit :

    You will simply need to add some water to the pulp that is produced nike tn pas cher and pass this paper through a silkscreen to get rid of the excess water

  • However, a nice mid ranged diamond with around 30 or 40 facets will prove to be brilliant as well as affordable.Nike Air Max Hommes Those bags were great fun to toss around, and they’re still a good idea for toys.

  • sticker obviously dit :

    ca peut être cohérent avec sa thématique sac Longchamp pilage pour le mois de décembre le nombre d’éléments

  • Amarox very dit :

    Ce truc fonctionne survetement lacoste aussi avec WPMU.

  • Perrin Morel dit :

    de mes billets ont une vocation durable et mis à jour régulièrement, Chaussures Foot Adidas>. Un générateur permet même de le personnaliser à ses besoins.