Skip to content

Incompatibilities with TYPO3 8.7.1 #58

Description

@gianstraf

Hi,
the extension seo_basics (v.0.9.6) doesn't work properly with TYPO3 8.7.1.
We incontered this problems:

  • The class seo_basics/Classes/Tree/PageTreeView.php uses unexisting IconUtility::getSpriteIcon method.
    This causes a FATAL error:

Uncaught TYPO3 Exception: Class 'TYPO3\CMS\Backend\Utility\IconUtility' not found

We have replaced this line (method getTree):

$HTML_depthData = $depthData . IconUtility::getSpriteIcon('treeline-' . $LN);
with

/** @var \TYPO3\CMS\Core\Imaging\IconFactory $iconFactory */ $iconFactory = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconFactory::class); $icon = $iconFactory->getIcon( 'treeline-' . $LN, \TYPO3\CMS\Core\Imaging\Icon::SIZE_SMALL); $HTML_depthData = $depthData . $icon;

  • The class seo_basics/Classes/Tree/PageTreeView.php uses deprecated class TYPO3\CMS\Core\Database\DatabaseConnection.
    In method getDataNext ,
    the function call: $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)

causes this FATAL ERROR:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: Call to undefined method Doctrine\DBAL\Driver\Mysqli\MysqliStatement::fetch_assoc() | Error thrown in file /var/www/project/htdocs/typo3_src-8.7.1/typo3/sysext/core/Classes/Database/DatabaseConnection.php in line 1131.

Currently we've modified properly the class DatabaseConnection to work fine with MysqliStatement, using method $res->fetch(\PDO::FETCH_ASSOC) instead of $res->fetch_assoc.

Thank you,
Gianluca

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions