[TYPO3-english] CoolUri causes exception

Jan Bednarik info at bednarik.org
Sat Oct 15 19:28:35 CEST 2016


It looks like you have disabled the cache as the empty query comes from 
a code that should no be called at all. Send me the XML configuration.

Jan

Dne 02.08.2016 v 17:03 Helga Somann napsal(a):
> 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.xxxxxx/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.xxxxxx/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.xxxxxx/typo3_src-...ysext/core/Classes/Database/DatabaseConnection.php",
> 480, array)
>
> 14 mysqli::query("")
>
>
> /data/www/www.xxxxxx/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.xxxxxx/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.xxxxxx/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.xxxxxx/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.xxxxxx/index.php?id=9&no_cache=1")
>
>
>
> /data/www/www.xxxxxx/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.xxxxxx/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.xxxxxx/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.xxxxxx/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.xxxxxx/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.xxxxxx/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.xxxxxx/typo3_src-7.6.9/index.php:
>
> 00031: call_user_func(function () {
> 00032:     $classLoader = require rtrim(realpath(__DIR__ . '/typo3'),
> '\\/') . '/../vendor/autoload.php';
>
> 00033:     (new \TYPO3\CMS\Frontend\Http\Application($classLoader))->run();
>
> 00034: });
>
>
> 2 {closure}()
>
> 1 call_user_func(Closure)
>
>
> /data/www/www.xxxxxx/typo3_src-7.6.9/index.php:
>
> 00032:     $classLoader = require rtrim(realpath(__DIR__ . '/typo3'),
> '\\/') . '/../vendor/autoload.php';
> 00033:     (new \TYPO3\CMS\Frontend\Http\Application($classLoader))->run();
>
> 00034: });
>



More information about the TYPO3-english mailing list