[TYPO3-german] setRespectStoragePage(TRUE) führt zu http error 500, keine storagePid

Andreas Freund andfriend23 at gmail.com
Mon Apr 14 14:19:59 CEST 2014


Hallo, habe es weiter probiert konnte es aber leider noch nicht zum laufen
bringen. Hier mein aktueller Versuch:

newsListingAjax = PAGE
newsListingAjax {
typeNum = 15
headerData >
config {
additionalHeaders = Content-type:application/json
admPanel = 0
disableAllHeaderCode = 1
no_cache = 1
xhtml_cleaning = 0
}
10 = USER_INT
10 {
extensionName = customnews
pluginName = Pi1
        controller = News
        switchableControllerActions {
          News {
            1 = listJson
          }
        }
settings =< plugin.tx_customnews.settings
persistence =< plugin.tx_customnews.persistence
persistence.storagePid=442
userFunc = tx_extbase_core_bootstrap->run
}
}

Typo3 antwortet dann mit der Fehlerseite und der fehlerhaften Query:
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
tx_customnews_domain_model_news.date DESC' at line 1: SELECT
tx_customnews_domain_model_news.* FROM tx_customnews_domain_model_news
WHERE (((((tx_customnews_domain_model_news.uid IN (SELECT uid_local FROM
tx_customnews_news_category_mm WHERE uid_foreign='2') OR
tx_customnews_domain_model_news.uid IN (SELECT uid_local FROM
tx_customnews_news_category_mm WHERE uid_foreign='9')) OR
tx_customnews_domain_model_news.uid IN (SELECT uid_local FROM
tx_customnews_news_category_mm WHERE uid_foreign='4')) OR
tx_customnews_domain_model_news.uid IN (SELECT uid_local FROM
tx_customnews_news_category_mm WHERE uid_foreign='7')) AND
tx_customnews_domain_model_news.deleted=0 AND
tx_customnews_domain_model_news.t3ver_state<=0 AND
tx_customnews_domain_model_news.pid<>-1 AND
tx_customnews_domain_model_news.hidden=0 AND
tx_customnews_domain_model_news.starttime<=1397477220 AND
(tx_customnews_domain_model_news.endtime=0 OR
tx_customnews_domain_model_news.endtime>1397477220) AND
tx_customnews_domain_model_news.pid IN () ORDER BY
tx_customnews_domain_model_news.date DESC

Wie man sehen kann ist die PID weiterhin leer und führt somit zum Fehler.
Hat wirklich keiner eine Idee woran das liegen könnte?

Gruß,
Andreas


2014-04-12 12:52 GMT+02:00 Andreas Freund <andfriend23 at gmail.com>:

> Hallo,
>
> ich versuche eine Extension zu konfigurieren welche per Ajax sich Daten
> holt und die Seite füllt (in Typo3 4.7). Habe das Ajax Page object wie
> folgt konfiguriert:
>
> # AJAX PAGE object for News Listing
> newsListingAjax < mediaCenterAjax
> newsListingAjax {
>   typeNum = 15
>
>   10 {
>     extensionName = customnews
>     controller = News
>     switchableControllerActions {
>       News {
>         1 = listJson
>       }
>     }
>
>     settings =< plugin.tx_customnews.settings
>     persistence =< plugin.tx_customnews.persistence
>     view =< plugin.tx_customnews.view
>   }
> }
>
> Die Action listJson wird korrekt aufgerufen, aber weder mit der oben
> angegebenen Einstellung noch wenn ich
> plugin.tx_customnews.settings.persistence.storagePid = 13 explizit setze
> kommt die storagePid im Repository an.
>
> Sobald ich $defaultQuerySettings->setRespectStoragePage(TRUE); setze
> bekomme ich beim Ajax Call einen 500 error zurück. Ein Blick in die
> sys_log Tabelle verrät mir das die storagePid nicht gesetzt ist. Was
> habe ich vergessen?
>
> Grüße und schönes Wochenende!
> Andi
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
>


More information about the TYPO3-german mailing list