WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL-SQL-Abfrage Fehler in WPDB Klasse
WordPress plug-ins users or external scripts developers may encounter problems on when trying to perform query or manipulation on MySQL database by using $wpdb class, a class of functions for all database manipulations based on the ezSQL. WordPress Plug-Ins oder externe Nutzer Skripte Entwickler kann es Probleme auf, wenn sie versuchen zu erfüllen Abfrage oder Manipulation auf MySQL-Datenbank mit $ wpdb-Klasse, einer Klasse von Funktionen für alle Datenbank-Manipulationen auf der Grundlage der ezSQL. $wpdb Wordpress class provides easy way to access to database tables without the need to manually code the database connection syntax in PHP again. $ wpdb Wordpress-Klasse bietet einfache Weise den Zugang zu den Datenbank-Tabellen ohne die Notwendigkeit, manuell Code der Datenbank-Verbindung Syntax in PHP wieder. $wpdb provides several functions to access, retrieve, select, delete, update or manipulate the data in the database such as query, get_var, get_row, get_col, get_results, escape, show_errors, hide_errors, get_col_info, and flush. $ wpdb bietet mehrere Funktionen auf Zugang, abrufen, auswählen, löschen, aktualisieren oder zu manipulieren, die Daten in der Datenbank wie Abfrage, get_var, get_row, get_col, get_results, Flucht, show_errors, hide_errors, get_col_info und bündig. When using these $wpdb to parse SQL statements as in plug-ins or external scripts or even Wordpress code itself the following error or similar error may appear. Bei der Verwendung dieser $ wpdb zu analysieren SQL-Anweisungen wie im Plug-Ins oder externe Skripte oder sogar Wordpress Code selbst die folgende Fehlermeldung oder ähnliche Fehler kann angezeigt werden.
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY post_date ASC LIMIT 1' at line 1] WordPress Datenbank-Fehler: [Sie haben einen Fehler in Ihrer SQL-Syntax, kontrollieren das Handbuch, das zu Ihrem MySQL-Server-Version für den richtigen Syntax zur Verwendung in der Nähe von 'ORDER BY post_date ASC LIMIT 1' at line 1]
SELECT ID, post_title FROM wp_posts WHERE post_date > ” AND post_date < '2006-08-28 09:03:57' AND post_status = 'publish' AND ID != ORDER BY post_date ASC LIMIT 1 SELECT ID, post_title FROM wp_posts WHERE post_date> "und post_date <'2006-08-28 09:03:57 'AND post_status =' veröffentlichen 'und ID! = ORDER BY post_date ASC LIMIT 1
or (the following from bsuite B2V6) oder (aus den folgenden bsuite B2V6)
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ’s pages’ ELSE LEFT(b.post_title, 60) END AS title, SUM(a.hits_reads) AS sor’ at line 4] WordPress Datenbank-Fehler: [Sie haben einen Fehler in Ihrer SQL-Syntax, kontrollieren das Handbuch, das zu Ihrem MySQL-Server-Version für den richtigen Syntax zur Verwendung in der Nähe von 's Seiten' Else LEFT (b.post_title, 60) END AS Titel, SUM ( a.hits_reads) AS sor "in Zeile 4]
SELECT a.post_id AS post_id, CASE WHEN b.post_title IS NULL THEN ‘Alice’s Home’ ELSE LEFT(b.post_title, 60) END AS title, SUM(a.hits_reads) AS sort_order, CONCAT(’Tot: ‘, FORMAT(SUM(a.hits_reads), 0), ‘, Avg: ‘, FORMAT((SUM(a.hits_reads)) / ((TO_DAYS(NOW()) A.post_id AS SELECT post_id, Fall, wenn b.post_title IS NULL Then 'Alice's Home' Else LEFT (b.post_title, 60) END AS Titel, SUM (a.hits_reads) AS sort_order, CONCAT ( 'Tot:', FORMAT (SUM (a.hits_reads), 0), ', Durchschnitt:', Format ((SUM (a.hits_reads)) / ((TO_DAYS (NOW ())
- TO_DAYS(MIN(a.bstat_date))) + 1), 0), ‘, Max: ‘, FORMAT(MAX(a.hits_reads), 0), ‘’) AS note FROM wp_bstat_hits a LEFT JOIN wp_posts b ON (a.post_id = b.ID) WHERE bstat_date > ‘2006-08-03′ GROUP BY a.post_id ORDER BY sort_order DESC LIMIT 5 -- TO_DAYS (MIN (a.bstat_date))) + 1), 0), ', Max: ", Format (MAX (a.hits_reads), 0),'') AS Hinweis von wp_bstat_hits ein LEFT JOIN wp_posts B auf ( a.post_id = b.ID) WHERE bstat_date>'2006-08-03 'GROUP BY a.post_id ORDER BY sort_order DESC LIMIT 5
One of the reason for the errors is caused by post_ID or ID variable that represent the ID of the Wordpress post. Einer der Grund für den Fehler wurde dadurch verursacht, dass post_id-oder ID-Variable, die die ID des Wordpress Post. Depending on which version of PHP, MySQL or WordPress you used, the $post_id or $id or $post->ID can be placed within single quote (’) as the workaround or resolution to avoid or solve the error. Je nachdem, welche Version von PHP, MySQL oder WordPress Sie verwendet wird, muss die post_id $ oder $ id oder $ post-> ID kann in einzelnen Anführungszeichen ( ') als Workaround oder Auflösung zu vermeiden oder zu lösen, den Fehler.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. WICHTIG: Es handelt sich um eine Maschine der Seite übersetzt wird "as is" ohne Garantie. Machine translation may be difficult to understand. Maschinelle Übersetzung ist vielleicht schwierig zu verstehen. Please refer to Bitte wenden Sie sich an original English article Original Englisch Artikel whenever possible. wann immer dies möglich ist.
Share and contribute or get technical support and help at Aktie und einen Beitrag oder erhalten technische Unterstützung und Hilfe an My Digital Life Forums Meine digitalen Lebens Foren .
Related Articles Verwandte Artikel
- Change or Set MySQL Long Query Time Value for log-slow-queries Ändern oder Set MySQL Query Time Long Wert für log-slow-queries
- Enable Logging of Slow Queries (Slow Query Log) in MySQL Database Aktivieren der Protokollierung von Slow-Abfragen (Slow Query Log) in der MySQL Datenbank
- How to Move WordPress Blog to New Domain or Location Wie sich zu bewegen Wordpress Blog auf neue Domain oder Standort
- You Are Not Authorized to Execute SQL Queries in vBulletin Maintenance Sie sind nicht berechtigt, SQL-Abfragen in vBulletin Wartung
- How to Customize, Modify or Change WordPress Database Connection Error Page Wie Anpassen, zu modifizieren oder zu ändern WordPress Datenbank-Verbindung Fehlerseite
- Oracle PL/SQL ORA-00947 Not Enough Values Error Oracle PL / SQL-ORA-00947 nicht genug Werte Fehler
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 4 Installation von Web-Server in Windows XP mit Apache2, PHP5 und MySQL4 - Teil 4
- How to Delete Existing WordPress Post Revisions Stored/Saved So löschen Sie bestehende WordPress Post Revisionen gespeichert / gespeichert
- ORA-01502 Oracle Index in Unusable State ORA-01502 Oracle-Index in Unusable Staat
- MySQL Error 1170 (42000): BLOB/TEXT Column Used in Key Specification Without a Key Length MySQL-Fehler 1170 (42000): BLOB / TEXT-Spalte Used in Key Spezifikation ohne Schlüssel Länge




























April 16th, 2007 22:11 16. April 2007 22:11
I’ve let these errors persist for way too long, but now they’re fixed along with a bunch of other bugs. Ich möchte diese Fehler fortbestehen zu viel zu lange, aber jetzt sind sie fester zusammen mit einem Haufen anderer Fehler.
The latest version also lays the groundwork to transition to bsuite3, a ground-up rewrite and re-architecting of the plugin. Die neueste Version enthält auch den Grundstein zur Umstellung auf bsuite3, ein Boden-up umzuschreiben und wieder Architecting des Plugins.
http://maisonbisson.com/blog/post/11613/