Project

General

Profile

Actions

Bug #56159

closed

Cannot access protected property TYPO3\CMS\Core\Database\DatabaseConnection::$link

Added by Jakub Kortus almost 11 years ago. Updated almost 11 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-02-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hi all,

when accessing page after migration of Typo3 from version 4 to 6.1.7 i received this error:

Fatal error: Cannot access protected property TYPO3\CMS\Core\Database\DatabaseConnection::$link in ..\typo3conf\ext\realurl\class.tx_realurl.php on line 167

In this file on this line is following piece of code:

/************************************ * * Translate parameters to a Speaking URL (t3lib_tstemplate::linkData)
*
****************************/

/**
 * Creates an instance of this class
 *
 * return    void
*/
function tx_realurl() {
if (!t3lib_extMgm::isLoaded('dbal') && get_resource_type($GLOBALS['TYPO3_DB']->link) == 'mysql link') {
$res = $GLOBALS['TYPO3_DB']->sql_query('SELECT
@VERSION');
$rec = $GLOBALS['TYPO3_DB']->sql_fetch_row($res);
$GLOBALS['TYPO3_DB']->sql_free_result($res);
$this->useMySQLExtendedSyntax = version_compare($rec[0], '4.1.0', '>');
}
$sysconf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['realurl']);
$this->enableDevLog = $sysconf['enableDevLog'];
}
/**
 * PHP5-style constructor
 *
 * @return    void
*/
function __construct() {
$this->tx_realurl();
}

Can somebody help me?
Thanks in advance.
Jakub

Actions #1

Updated by Michiel Roos almost 11 years ago

realurl should use the public method: \TYPO3\CMS\Core\Database\DatabaseConnection::getDatabaseHandle()

Please report your bug with the realurl maintainders.

Thank you.

Actions #2

Updated by Wouter Wolters almost 11 years ago

  • Status changed from New to Rejected

Please update your RealUrl extension. This is already fixed in a newer RealUrl version.

Actions

Also available in: Atom PDF