[TYPO3-dev] Migrate tiny pibase-frontend-plugin from 4.5 to 6.2

Dennis Luemkemann dennis.luemkemann at gmx.de
Fri Oct 24 15:34:55 CEST 2014


Hello Jost,

when I load a page in the FE that contains the plugin, the server returns 500 internal server error. In the backend Log I find:

Core: Error handler (FE): PHP Warning: require_once(/www/comsoft.de/typo3/sysext/cms/tslib/class.tslib_pibase.php): failed to open stream: No such file or directory in /www/comsoft.de/typo3conf/ext/dl_backlink/pi1/class.tx_dlbacklink_pi1.php line 30

line 30 is the first line of following code:
require_once(PATH_tslib.'class.tslib_pibase.php');

An this is the rest of class.tx_dlbacklink_pi1.php is:

class tx_dlbacklink_pi1 extends tslib_pibase {
        var $prefixId      = 'tx_dlbacklink_pi1';               // Same as class name
        var $scriptRelPath = 'pi1/class.tx_dlbacklink_pi1.php'; // Path to this script relative to the extension dir.
        var $extKey        = 'dl_backlink';     // The extension key.
        var $pi_checkCHash = true;

        function main($content, $conf)  {
                $this->conf = $conf;
                $this->pi_loadLL();
                $linktext = $this->pi_getLL('linkText','back',FALSE);
                return '<div class="dl_backlink"><a href="#" onclick="javascript:history.go(-1);return false;">'.$linktext.'</a></div>';
        }
}

if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dl_backlink/pi1/class.tx_dlbacklink_pi1.php']) {
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dl_backlink/pi1/class.tx_dlbacklink_pi1.php']);
}

Thanks
Dennis




More information about the TYPO3-dev mailing list