At the mercy of WordPress Plugins; how to fight back In balia di WordPress; come combattere indietro
WordPress has unique plugin architecture. WordPress è unico plug in architettura. Plugins are simply php files which are include d (and executed) before any php pages which renders the content, whether it is your blog page or syndication feed or even administrative functions. Plugin sono semplicemente i file php che sono anche d (ed eseguiti), prima di ogni pagine PHP che rende il contenuto, se è il tuo blog o pagina feed di diffusione dei contenuti o anche funzioni amministrative.
The plugins can do anything that is allowed by php code, including trashing your hard-disk to sending your bank account details to a cracker etc. Plugins do not operate under any restrictions. Il plugin può fare tutto ciò che è consentito dal codice php, tra cui cestinare vostro hard-disk per l'invio del tuo conto bancario a un cracker ecc collegamenti non funzionano sotto tutte le restrizioni. Nor can the product recover from errors generated by any plugin. Né si può recuperare il prodotto generato da errori di qualsiasi plug-in. I really miss here Java’s strong security infrastructure. I really perdere Java qui il forte infrastruttura di sicurezza.
Still fine and dandy untill you discover to your horror how a poorly coded plugin can bring down your site in no time. Ancora valida e dandy fino a quando non viene a scoprire il suo orrore come un mal codificati plugin può far cadere il tuo sito in poco tempo.
Couple that with php’s “silent treatment” of errors. Matura che, con php "silenzio di trattamento" di errori. In other words you and your viewers are greeted with a nice looking, white in color web page, whenever any (plugin) error occurs. In altre parole, voi ei vostri visitatori vengono accolti con un piacevole, in colore bianco pagina web, ogniqualvolta (plugin) di errore si verifica. Plugin errors could be as simple as having blank spaces at the end of plugin files after ?> to more complex ones like invalid argument to methods. Plug errori potrebbe essere più semplice avere spazi bianchi alla fine del plug file dopo?> Per quelli più complessi come argomento per non validi metodi.
Update: Please check Aggiornamento: Verifica tips on making your plugins robust suggerimenti su come rendere il vostro plugin robusto .
Pages: 1 Pagine: 1 2
Filed under Elencato sotto CMS Software CMS Software , Headline News Headline News , How To Come , Open Source Software Software open source , PHP , Pro Blogging Pro Blogging , Web , WordPress | |
| |
RSS 2.0 RSS 2,0 | |
Email this Article Invia questo articolo
You may also like to read Si può anche leggere come |




May 11th, 2005 at 1:58 pm 11 maggio 2005 a 1:58 pm
Nice Article.. Nizza articolo ..
I like your wordpress articles. Mi piace il tuo wordpress articoli. You seem to be quite knowledgeable on the inner and outer workings of this baby. Lei sembra essere molto a saperla esterni ed interni funzionamento di questo bambino. Keep up the good work. Mantenere il buon lavoro.
I can see your Wordpress Feed updates in my klipfolio reader (www.klipfolio.com) Sono in grado di vedere il tuo feed di Wordpress aggiornamenti nel mio lettore KlipFolio (www.klipfolio.com)
As far as plugins, so far no major problems.. Per quanto riguarda i collegamenti, finora non ha particolari problemi .. the only thing I worry about is if I put too many of them in my blog that there will be incompatibilities amongst them. l'unica cosa che è preoccuparsi se ho messo troppo molti di loro nel mio blog che vi sia incompatibilità tra di essi. In addition, I fear that when I upgrade to next wordpress version, if I have too many plugins it will screw me over… But so far everything is smooth. Inoltre, temo che quando ho eseguito l'aggiornamento a wordpress prossima versione, se ho troppi collegamenti a vite che più di me… ma finora tutto è mosso.
Regards, Saluti,
tom Tom
May 11th, 2005 at 2:00 pm 11 maggio 2005 a 2:00 pm
Forgot to say, in case you want added publicity for your blog, consider adding yourself to the klip folio database. Dimenticato di dire, nel caso in cui si desidera aggiungere la pubblicità per il tuo blog, prendere in considerazione l'aggiunta di voi la Klip folio banca dati. It is a good way to get added exposure: E 'un buon modo per ottenere aggiunto esposizione:
http://www.serence.com/provider.php
May 11th, 2005 at 6:46 pm 11 maggio 2005 a 6:46 pm
@Thomas I registered as a provider. @ Thomas Mi sono registrato come fornitore. It is just so much complicated to create a klip. E 'solo in modo molto complicato per creare un Klip. And then they do not explain clearly upfront, what in the hell is a klip! E allora essi non spiegano chiaramente in anticipo, in quanto l'inferno è un Klip!
It looks over-engineered at first glance. Sembra più di ingegneria al primo sguardo. I might give it a try again later. Potrei fare una prova più tardi.
May 12th, 2005 at 7:41 am 12 maggio 2005 alle 7:41 am
Well said. Ben detto. No doubt someone experienced would be able to fix misbehaving plugins it does screws the non-geeks over. Senza dubbio qualcuno esperto sarebbe in grado di stabilire collegamenti comportamento anomalo che fa le viti non oltre i geek.
How then would you propose a solution that offers security and fail-safety together with the existing simple ease of implementation? Come poi si proporre una soluzione che offre la sicurezza e la non-sicurezza insieme con l'attuale semplice facilità di implementazione? I’m really interested to find out. Sono davvero curioso di scoprirlo.
May 12th, 2005 at 12:57 pm 12 maggio 2005 a 12:57 pm
In Java World we could allow the plugins to be executed in a limited rights environment or sandbox. In Java mondo che potrebbe consentire il plugin per essere eseguito in un ambiente limitato di diritti o sandbox. So the plugins from unknown source cannot do anything nasty. In modo che il plugin da fonte sconosciuta non può fare qualsiasi cosa brutta.
Secondly even if a plugin fails the site should continue. In secondo luogo, anche se un plugin non riesce il sito dovrebbe continuare. Again in Java world we achieve this by catching the execptions generated by the plugin, logging them, and move on to execute other plugins. Di nuovo nel mondo Java noi raggiungere questo obiettivo la cattura di execptions generato dal plugin, la registrazione, e di passare per l'esecuzione di altri collegamenti. The page should still display, albeit with reduced functionality. La pagina deve ancora mostrare, anche se con funzionalità ridotte.
This is in essence what we need for plugins. Questo è in sostanza quello di cui abbiamo bisogno per i collegamenti. In php world it is much harder to achieve. In php mondo è molto più difficile da raggiungere. So the fallback option is to have a public reveiew system of plugins and use only the ones with good reviews. In modo che il ripiego opzione è quella di avere un pubblico reveiew sistema di plugin e utilizzare solo quelli con buone recensioni.
Secondly we should always test the plugins in a test enironment before deployment. In secondo luogo dobbiamo sempre testare il plug-in in un test enironment prima di distribuzione.
Personally I prefer to look in the plugin code also to ensure something strange isn’t going on. Personalmente preferisco guardare in codice il plugin anche al fine di garantire qualcosa di strano non è in corso.
May 13th, 2005 at 8:43 am 13 maggio 2005 alle 8:43 am
“In php world it is much harder to achieve.” "Mondo in PHP è molto più difficile da raggiungere."
It actually is not hard to achieve, it just is of little interest in this application. In realtà non è difficile da raggiungere, è solo è di scarso interesse per questa applicazione. I doubt that the Wordpress developers target audience are grumpy Java developers who can’t figure out the PHP error settings. Dubito che la Wordpress sviluppatori pubblico di destinazione sono grumpy sviluppatori Java che non può capire le impostazioni di PHP errore. Either log them or set them to print please. O accedere o li si prega di stampare.
May 14th, 2005 at 5:33 am 14 maggio 2005 alle 5:33 am
@Christopher I think you misunderstood the comments. @ Christopher I pensa di frainteso le osservazioni. It is about running plugins in a secure sandbox, which is much harder to do in php then in Java. Si tratta di collegamenti in esecuzione in condizioni di sicurezza sandbox, che è molto più difficile da fare in php quindi in Java. I wasn’t talking about error settings. Non ero a parlare di errore impostazioni.
May 16th, 2005 at 10:49 pm 16 maggio 2005 a 10:49 pm
I think the plugin system, while very powerful, is fundamentally flawed. Credo che il sistema di plug in, mentre molto potente, è sostanzialmente viziata. I find that calling apply_filters on a field is rather irritating. Trovo che chiede apply_filters su un campo è piuttosto irritante. I would _much_ rather apply_filters to a post, because sometimes, you simply need to filter a field differently based on the surrounding data. Mi _much_ piuttosto apply_filters a un post, perché a volte, dovete semplicemente per filtrare un campo diverso sulla base dei dati circostante. And this would make the plugins work better outside the loop. E questo renderebbe la collegamenti funzionano meglio al di fuori del ciclo.
Btw: Which plugin we should stay away from? BTW: Quali plug dobbiamo stare lontano dai?
May 16th, 2005 at 11:34 pm 16 maggio 2005 a 11:34 pm
@Denis de Bernardy @ Denis de Bernardy
I agree. Sono d'accordo.
My plugin problems was with a rss aggregator plugin. Il mio è stato plug problemi con un aggregatore rss plugin. In all fairness I had some settings wrong. In tutta onestà ho avuto alcune impostazioni errate. However the way it bailed on me, bringing down the whole site made me realize the mine field we are sitting on Tuttavia il modo in libertà su di me, portando così l'intero sito mi ha fatto realizzare il mio campo siamo seduti su
Plugins are like Business Rules. Plugins sono come le regole aziendali. One flawed business rule cannot bring down a BR engine. Una regola di attività viziata non può portare un motore di BR. Similarly one errant plugin shouldn’t be able to bring down the site. Allo stesso modo uno errante plug non dovrebbe essere in grado di far cadere il sito.