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?

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • Hier die Zeilen:

    // 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);

  • 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.

  • 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);

  • $numExisting = mysql_query("select id from {$table_prefix}posts where guid='".db_escape($singleItem->get_id())."'");


    Hier muss irgendwas falsch sein. Änder die Zeile bitte mal wie folgt:

    PHP
    $query = "select id from {$table_prefix}posts where guid='".db_escape($singleItem->get_id())."'";
    echo "<pre>$query\n\n";
    $numExisting = mysql_query( $query );
    var_dump($numExisting);
    echo '</pre>';


    und poste mal den Output.

  • 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);


  • 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
    if( $numExisting === false ) {
  • 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();


  • PHP-Version5.2.6

    & in der Zeile nun weggelassen

    Zeile sieht dann so aus:

    cRssImport = new RSSImport();

    Ergebnis:

    Das gleiche:

    Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /home/geilerbl/public_html/wordpress/wp-content/plugins/pc-rss-import/pcrssimport.php on line 759

    Vom Support RSS Plugin:

    [FONT=Verdana, Arial, Helvetica, sans-serif][size=10][COLOR=red]Support: [/COLOR][/SIZE][/FONT][FONT=Verdana, Arial, Helvetica, sans-serif][size=10][COLOR=black]das sollte kein problem sein
    [/COLOR][/SIZE][/FONT][FONT=Verdana, Arial, Helvetica, sans-serif][size=10][COLOR=blue]Timo[/COLOR][/SIZE][/FONT][FONT=Verdana, Arial, Helvetica, sans-serif][size=10][COLOR=black]: Okay dann brauch ich auch nicht die 1.1[/COLOR][/SIZE][/FONT]
    [FONT=Verdana, Arial, Helvetica, sans-serif][size=10][COLOR=red]Support[/COLOR][/SIZE][/FONT][FONT=Verdana, Arial, Helvetica, sans-serif][size=10][COLOR=black]: das hängt davon ab, welche wordpress version sie nutzen[/COLOR][/SIZE][/FONT]
    [FONT=Verdana, Arial, Helvetica, sans-serif][size=10][COLOR=blue]Timo[/COLOR][/SIZE][/FONT][FONT=Verdana, Arial, Helvetica, sans-serif][size=10][COLOR=black]: 2.51[/COLOR][/SIZE][/FONT]
    [FONT=Verdana, Arial, Helvetica, sans-serif][size=10][COLOR=blue]Timo[/COLOR][/SIZE][/FONT][FONT=Verdana, Arial, Helvetica, sans-serif][size=10][COLOR=black]: Deutsch[/COLOR][/SIZE][/FONT]
    [FONT=Verdana, Arial, Helvetica, sans-serif][size=10][COLOR=red]Support[/COLOR][/SIZE][/FONT][FONT=Verdana, Arial, Helvetica, sans-serif][size=10][COLOR=black]: dann benötigen sie die version 1.1
    [/COLOR][/SIZE][/FONT][FONT=Verdana, Arial, Helvetica, sans-serif][size=10][COLOR=blue]Timo[/COLOR][/SIZE][/FONT][FONT=Verdana, Arial, Helvetica, sans-serif][size=10][COLOR=black]Alles klar[/COLOR][/SIZE][/FONT]

  • Okay 1.1 installiert:

    Möchte ich Feeds updaten

    komtm Feeds erfolgreich aktualisiert.

    ABer eben ohne irgendeien Aktivität durchzufühen:

    Dazu schrieb mir jemand:

    Zitat

    Für RSS Feeds zu importieren hab ich keines - dafür ein "schöneres" - aber das geb ich nun wirklich nicht raus.
    Wer PHP kann, weis in dem RSS feed dings an der richtigen Stelle anzusetzen - selbst Anfänger sollten das finden.....


    Zitat

    ich mag hier nur keine Hilfestellung geben das Werk einer anderen Person zu hacken - auch wenns nur 2 zeilen sind

  • Das Tool verfügt über einen so genannten Kombialitätstest

    http://www.geilerblog.net/wordpress/wp-c…lepie.tests.php

    Will ich das ausführen

    kommt

    Zitat

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Please contact the server administrator, webmaster@geilerblog.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.7a mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at Dateiload: Neue Internetseite Port 80

  • Der Supporter kann dir da nicht weiterhelfen? Ansonsten kannst du ja mal im error.log des Servers nachgucken (falls verfügbar...), was für ein Fehler genau geworfen wird.

    Das Plugin funktioniert mit den eigenen Feeds von Partnerprogramm Betreiber problemlos...nur mit den Feeds von einenen anderen PP Betreiber nicht und dazu muss man angblich nur 2 Zeilen ändern damit es läuft.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!