[TYPO3-english] Re: CoolUri causes exception
I did not change the configuration in any way ... still need help ... thx This is the complete trace: Uncaught TYPO3 Exception #1: PHP Warning: mysqli::query(): Empty query in /data/www/www.xx/typo3_src-7.6.9/typo3/sysext/core/Classes/Database/DatabaseConnection.php line 480 (More information) TYPO3\CMS\Core\Error\Exception thrown in file /data/www/www.xx/typo3_src-7.6.9/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 111. 15 TYPO3\CMS\Core\Error\ErrorHandler::handleError(2, "mysqli::query(): Empty query", "/data/www/www.xx/typo3_src-...ysext/core/Classes/Database/DatabaseConnection.php", 480, array) 14 mysqli::query("") /data/www/www.xx/typo3_src-7.6.9/typo3/sysext/core/Classes/Database/DatabaseConnection.php: 00478: $this->connectDB(); 00479: } 00480: return $this->link->query($query); 00481: } 00482: 13 TYPO3\CMS\Core\Database\DatabaseConnection::query("") /data/www/www.xx/typo3_src-7.6.9/typo3/sysext/core/Classes/Database/DatabaseConnection.php: 01085: public function sql_query($query) 01086: { 01087: $res = $this->query($query); 01088: if ($this->debugOutput) { 01089: $this->debug('sql_query', $query); 12 TYPO3\CMS\Core\Database\DatabaseConnection::sql_query("") /data/www/www.xx/t3/typo3conf/ext/cooluri/Classes/Core/DBLayer.php: 00035: 00036: public function query($stmt) { 00037: return $GLOBALS['TYPO3_DB']->sql_query($stmt); 00038: } 00039: 11 Bednarik\Cooluri\Core\DBLayer::query("") /data/www/www.xx/t3/typo3conf/ext/cooluri/Classes/Core/Translate.php: 00295: if ($proceed) { 00296: $db = DB::getInstance(); 00297: $res = $db->query($sql); 00298: if (!$db->error() && $db->num_rows($res)>0) { // no match found - not translating 00299: $row = $db->fetch_row($res); 10 Bednarik\Cooluri\Core\Translate::cool2params("/data/www/www.xx/index.php?id=9_cache=1") /data/www/www.xx/t3/typo3conf/ext/cooluri/Classes/Integration/CoolUri.php: 00116: } 00117: 00118: $pars = $lt->cool2params($paramsinurl); 00119: 00120: $params['pObj']->id = $pars['id']; 9 Bednarik\Cooluri\Integration\CoolUri::cool2params(array, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController) 8 call_user_func_array(array, array) /data/www/www.xx/typo3_src-7.6.9/typo3/sysext/core/Classes/Utility/GeneralUtility.php: 04373: } 04374: // Call method: 04375: $content = call_user_func_array(array(&$classObj, $parts[1]), array(&$params, &$ref)); 04376: } else { 04377: $errorMsg = 'No method name \'' . $parts[1] . '\' in class ' . $parts[0]; 7 TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction("Bednarik\Cooluri\Integration\CoolUri->cool2params", array, TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController) /data/www/www.xx/typo3_src-7.6.9/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php: 01175: $_params = array('pObj' => &$this); 01176: foreach ($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc'] as $_funcRef) { 01177: GeneralUtility::callUserFunction($_funcRef, $_params, $this); 01178: } 01179: } 6 TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::checkAlternativeIdMethods() /data/www/www.xx/typo3_src-7.6.9/typo3/sysext/frontend/Classes/Http/RequestHandler.php: 00136: $this->bootstrap->loadCachedTca(); 00137: } 00138: $this->controller->checkAlternativeIdMethods(); 00139: $this->controller->clear_preview(); 00140: $this->controller->determineId(); 5 TYPO3\CMS\Frontend\Http\RequestHandler::handleRequest(TYPO3\CMS\Core\Http\ServerRequest) /data/www/www.xx/typo3_src-7.6.9/typo3/sysext/core/Classes/Core/Bootstrap.php: 00300: 00301: // Execute the command which returns a Response object or NULL 00302: $this->response = $requestHandler->handleRequest($request); 00303: return $this; 00304: } 4 TYPO3\CMS\Core\Core\Bootstrap::handleRequest(TYPO3\CMS\Core\Http\ServerRequest) /data/www/www.xx/typo3_src-7.6.9/typo3/sysext/frontend/Classes/Http/Application.php: 00076: public function run(callable $execute = null) 00077: { 00078: $this->bootstrap->handleRequest(\TYPO3\CMS\Core\Http\ServerRequestFactory::fromGlobals()); 00079: 00080: if ($execute !== null) { 3 TYPO3\CMS\Frontend\Http\Application::run() /data/www/www.xx/typo3_src-7.6.9/index.php: 00031: call_user_func(function () { 00032: $classLoader = require rtrim(realpath(__DIR__ .
[TYPO3-english] CoolUri causes exception
Hi, I've installed CoorUri 1.1.2 on Typo 7.6.9 and I've activated the config example. Viewing my website shows only this by now: Uncaught TYPO3 Exception #1: PHP Warning: mysqli::query(): Empty query in /www/vhosts/www.domain1.de/typo3_src-7.6.9/typo3/sysext/core/Classes/Database/DatabaseConnection.php line 480 (More information) TYPO3\CMS\Core\Error\Exception thrown in file /www/vhosts/www.domain1.de/typo3_src-7.6.9/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 111. 15 TYPO3\CMS\Core\Error\ErrorHandler::handleError(2, "mysqli::query(): Empty query", "/www/vhosts/www.domain1.de/typo3_src-...ysext/core/Classes/Database/DatabaseConnection.php", 480, array) 14 mysqli::query("") Any hints ...? Thanks in advance H. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
[TYPO3-english] RealURL: old style URLs id= not working
Hi, using Typo 7.6.9 I've installed RealURL 2.0.14 ... my problem is: The RealURL created smart URLs are doing fine, but using the old URLs like: www.mydomain.de/index.php?id=22 I get this error: Segment index.php was not a keyword for a postVarSet as expected! I require the old style URLs to still work. What can I you? I'm using this realurl_autoconf: array ( 'init' => array ( 'appendMissingSlash' => 'ifNotFile,redirect', 'emptyUrlReturnValue' => '/', ), 'pagePath' => array ( 'rootpage_id' => '55', ), 'fileName' => array ( 'defaultToHTMLsuffixOnPrev' => 0, 'acceptHTMLsuffix' => 1, 'index' => array ( 'print' => array ( 'keyValues' => array ( 'type' => 98, ), ), ), ), 'postVarSets' => array ( '_DEFAULT' => array ( 'tx_news' => array ( 0 => array ( 'GETvar' => 'tx_news_pi1[news]', 'lookUpTable' => array ( 'table' => 'tx_news_domain_model_news', 'id_field' => 'uid', 'alias_field' => 'title', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array ( 'strtolower' => 1, 'spaceCharacter' => '-', ), ), ), ), ), ), ), 'www.domain1.de' => array ( 'init' => array ( 'appendMissingSlash' => 'ifNotFile,redirect', 'emptyUrlReturnValue' => '/', ), 'pagePath' => array ( 'rootpage_id' => '23', ), 'fileName' => array ( 'defaultToHTMLsuffixOnPrev' => 0, 'acceptHTMLsuffix' => 1, 'index' => array ( 'print' => array ( 'keyValues' => array ( 'type' => 98, ), ), ), ), 'postVarSets' => array ( '_DEFAULT' => array ( 'tx_news' => array ( 0 => array ( 'GETvar' => 'tx_news_pi1[news]', 'lookUpTable' => array ( 'table' => 'tx_news_domain_model_news', 'id_field' => 'uid', 'alias_field' => 'title', 'useUniqueCache' => 1, 'useUniqueCache_conf' => array ( 'strtolower' => 1, 'spaceCharacter' => '-', ), ), ), ), ), ), ), ); This is my .htaccess: RewriteEngine On RewriteBase / RewriteRule ^(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/ - [L] RewriteRule ^typo3$ typo3/index_re.php [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule .* index.php [L] Any hints? Thanks! H. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english