| |||||||
| Registrieren | Lexikon | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
![]() |
| | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| PostRank: 2 ![]() Registriert seit: 18.04.2008
Beiträge: 66
| MySQL Fehler / Feeds in Kategorien Immer wieder auftretende Fehler: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/geilerbl/public_html/wordpress/wp-content/plugins/pc-rss-import/pcrssimport.php on line 188 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/geilerbl/public_html/wordpress/wp-content/plugins/pc-rss-import/pcrssimport.php on line 188 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/geilerbl/public_html/wordpress/wp-content/plugins/pc-rss-import/pcrssimport.php on line 188 was heisst das? |
| | |
| | #3 (permalink) |
| WPD-Moderator ![]() Registriert seit: 05.10.2006
Beiträge: 7.317
| Die Fehlermeldung besagt, dass du keine gültige MySQL-Resource zurückbekommen hast, d.h. kein Ergebnis. Wahrscheinlich wurde dort "false" zurückgeliefert, aufgrund einer fehlgeschlagenen SQL-Anfrage. Interessant ist also, was $numExisting enthält, d.h. wo es (zuletzt) gesetzt wurde. |
| | |
| | #6 (permalink) |
| PostRank: 2 ![]() Registriert seit: 18.04.2008
Beiträge: 66
| 179 bis 190: // fetch the feed $fetchedFeed = $this->fetchFeed($feedData->rss_source); // loop through all elements foreach($fetchedFeed->get_items() AS $singleItem) { // check if the post already exists $numExisting = mysql_query("select id from {$table_prefix}posts where guid='".db_escape($singleItem->get_id())."'"); // only continue, if the guid does not exist if(mysql_num_rows($numExisting) <= 0) { // does not exist - import it $this->importItem($singleItem, $feedData->cat_ID); |
| | |
| | #7 (permalink) | |
| WPD-Moderator ![]() Registriert seit: 05.10.2006
Beiträge: 7.317
| Zitat:
PHP-Code: | |
| | |
| | #8 (permalink) |
| PostRank: 2 ![]() Registriert seit: 18.04.2008
Beiträge: 66
| Nach Änderung komtm da jetzt: bool(false) Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/geilerbl/public_html/wordpress/wp-content/plugins/pc-rss-import/pcrssimport.php on line 191 In der Zeile steht: 190-193: // only continue, if the guid does not exist if(mysql_num_rows($numExisting) <= 0) { // does not exist - import it $this->importItem($singleItem, $feedData->cat_ID); |
| | |
| | #9 (permalink) |
| WPD-Moderator ![]() Registriert seit: 05.10.2006
Beiträge: 7.317
| Mmh, warum wird da die Query nicht mit ausgegeben... oder hast du nur vergessen die zu posten? Egal, bau das mal zurück (also meine echo's und das var_dump() entfernen), und ändere die jetzige Zeile 191 wie folgt: PHP-Code: |
| | |
| | #10 (permalink) |
| PostRank: 2 ![]() Registriert seit: 18.04.2008
Beiträge: 66
| Ja jetztz kann der gesamte Blog nich mehr aufgerufen werden mit den Fehler: Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /home/geilerbl/public_html/wordpress/wp-content/plugins/pc-rss-import/pcrssimport.php on line 759 Die Zeilen sagen: // new instance $cRssImport = & new RSSImport(); |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |