Mein Problem: Nach dem Upgrade auf WordPress 3.2 arbeiteten die Web-Seiten nach wie vor einwandfrei, das Dashboard ist sogar noch schöner als zuvor.
ABER: Sobald ich auf das Edit Post Fenster wechselte, (Artikel oder eine neue Seite schreiben oder bearbeiten), geht kein javascript mehr, kein Umschalten auf visuell, kein dropdown zum Abmelden, kein Screen Options dropdown mehr.
Ich habe alle Plugins deaktiviert, wechselte zu twentyten und twenty eleven Themes, machte einen ‘reset’ des Plugin Ordners, keine Chance, das wollte nicht.
Also warf ich einen Blick auf mein error.log der Seite und fand einen Fatal error:
PHP Fatal error: Call to undefined function json_encode() in /srv/www/vhosts/meineseite.com/httpdocs/wp-admin/includes/class-wp-list-table.php on line 905, referer: http://meineseite.com/wp-admin/edit.php
Deutlich erkennt man: undefined function json_encode(), eine Funktion die fehlt und durch wp-admin/edit.php aufgerufen wird.
Ein phpinfo() auf dem Server ergab, es gibt kein json! Also ist auf meinem Plesk 9.5.4 json per default nicht aktiviert!?
Der vServer läuft auf Plesk 9.5.4 auf einem SUSE 10.3 mit php 5.2.11-0.1
Um nun dieses json Modul zu aktivieren, benötigt man eine json.so und json.ini in den unten genannten Ordnern im Rootverzeichnis des Servers.
Suche auf den Servern Wurzel gibt es keine json.so in \usr\lib\php5\extensions\ und es gibt keine json.ini in \etc\php5\conf.d\
Mit etwas Glück fand ich das richtige rpm-Paket “php5-Hash-5.2.11-0.1.i586.rpm” hier:
Ich habe dieses .rpm downgeloaded, geöffnet mit 7-zip und dann die zwei enthaltenen Dateien json.so und json.ini in die entsprechenden Ordner kopiert, (mit WinSCP)
Nach einem (mutigen) Restart des VPS aus dem Virtuozzo Panel heraus ging ich zurück zur phpinfo() der Seite, um nun einen neuen Eintrag zu finden:
json json support enabled
json version 1.2.1
Jetzt auf der WordPress 3.2 Seite ins Dashboard eingeloggt und geprüft, ob der visuelle Editor in Edit Post jetzt funktioniert?
Solved, Lösung gefunden, geht prima auf allen Domains die auf dem Server laufen.
Also bei mir lag es an dem fehlenden json PHP Modul , nicht am Theme, Browsercache, Plugins, PHP Memorylimit oder sonstwas.
Es gibt vielleicht einfachere Wege, json zu aktivieren, eine Suche danach lohnt.
Wie der Titel seines Beitrags schon sagt, geht es um Tipps für Bloganfänger und wie man sie sicher vermeidet. er bezieht sich ganz unterhaltsam auf einen Beitrag mit ähnlichem Titel…
Schaut euch seinen interessanten Text gerne mal an. Ich möchte ihm zustimmen, dass das alles nicht so schwierig ist.
Man lernt doch nur aus seinen Fehlern, am ehesten wenn man sie selbst macht. Jeder hat mal angefangen, man kämpft mit der Technik, mit dem Inhalt, liest sich sein Wissen an und schreibt noch was – ist doch toll!
In Bezug auf WAS machen die Neulinge denn Fehler? Ich denke die machen das schon richtig!
Mein Tipp an Anfänger: Vergesst die ganzen SEO-Tips, bringt gar nicht viel – wie man an den SEO-Blogs sieht…
Auch von mir: nur Mut! Wo immer sich die Gelegenheit bietet einen Blog aufzustellen, ich würd’s wieder machen!
There is a trojan around infecting sites with a encrypted script starting ‘var zaee=”4.5*2,4.5*’ and iframe src linking to zxstats com and bali-planet com
This script is to find right after the body tag of index.html files and infects the PC of a visitor by loading an .exe file.
This file in return seems to scan infected PCs for ftp login user and passwords.
Finding these for example in filezilla’s passwordmanager in C:\Users\username\AppData\Roaming\FileZilla\sitemanager.xml it will send these ftp usernames and passwords out and try to access the sites stored in this file.
These sites will get this script injected via ftp to infect more visitors or even your machine again. (suspicious sites I check with chrome having javascript disabled)
There will be all index, start, home and main files with extension .php or .html infected by an added script.
The problem is the stolen ftp login, not any blog software or CMS running there! Giving ftp passwords out of hand no website software can prevent from changing files!
Sites running on php might not work after infection and show an error instead, like “Parse error: syntax error, unexpected ‘?’ in /xxx/yyy/public_html/index.php on line 18″ (WordPress) or “Parse error: syntax error, unexpected ‘?’ in /xxx/yyy/public_html/modules/boonex/chat/home.php on line 38″ (Boonex Dolphin)
Actually lucky for visitors as in this case the script doesn’t run and will not infect their machines. In .php files the script is added after the last ‘?’ and before the closing ‘>’ and doesn’t work here.
What to do?
First clean your PC from trojans using any anti virus software (malwarebytes, MS Essentials) Do not store login passwords in Filezilla Servermanager, if you have it there delete it and set it for ‘Ask for Password’ to manually typing it. Change your infected servers ftp password (and do not store in the ftp program!!)
With your new login go to your site and ‘repair’ all infected files by replacing them with a backup file or editing and removing the malicious code – that’s the biggest task ..
did you realize that in the latest version of the WordPress plugin Simple Tags the ‘auto link tags into post content’ is not working?
The solution how to repair is to edit your plugins/simple-tags/inc/client.php
Open this file with a text editor and find (line 118ff):
function autoLinkTags( $content = '' ) {
// Get currents tags if no exists
if ( $this->link_tags == 'null' ) {
$this->prepareAutoLinkTags();
} // Shuffle array
$this->randomArray($this->link_tags);
by adding (in line 121) this :
$link_tags = $this->link_tags;
Your code here should look like this: function autoLinkTags( $content = '' ) {
// Get currents tags if no exists
if ( $this->link_tags == 'null' ) {
$this->prepareAutoLinkTags();
}
$link_tags = $this->link_tags; // add in line 121
// Shuffle array
$this->randomArray($this->link_tags);
Now the keywords in your content should be linked to the tags archive.
The issuer of your credit card we were advised that a card associated with your informations has been reported as stolen or lost
coming from cjlu edu cn
Hello.
We recently have determined an fraudulent wire transfert from your Credit Card. We now need you to re-confirm your informations.
Your Credit Card has been restricted for the following reason:
The issuer of your credit card we were advised that a card associated with your informations has been reported as stolen or lost, or there are other problems with your card. For more information about the problem with your card, please contact the card issuer.
www verifiedbyvisa com
->this links to xdrivrs45.ns11-wistee.fr/www.verifedbyvisa.fr/index.php in source of mail
——————————————————————————–
How can I restore my credit card ?
Please consult http://www.verifiedbyvisa.com/ and follow the disputes procedure of removing restrictions.
->this also links to xdrivrs45.ns11-wistee.fr/www.verifedbyvisa.fr/index.php in source of mail
Failure to complete all steps of the checklist immediately restore normal you credit card.
Another one:
Amazon.com – Your Cancellation (5835-32704-075143)
coming from lwxpu biux at msa hinet net
Dear Customer,
Your order has been successfully canceled. For your reference, here`s a summary of your order:
Because you only pay for items when we ship them to you, you won`t be charged for any items that you cancel.
Thank you for visiting Amazon.com!
———————————————————————
Amazon.com
Earth`s Biggest Selection
www amazon com
———————————————————————
bei mails wie diesen schaue ich mir meist den Quelltext der Email an, wenn die dann aus China (.cn) kommen oder zu externen Seiten weiterleiten, kann man das getrost als Spam einstufen.