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

Jost Baron jost.baron at gmx.de
Fri Oct 24 15:56:13 CEST 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Dennis,

the solution was already posted by bernd: Just remove the line
starting with "require_once". The autoloader will find the correct
file on its own.

The problem occurs because the included file is not where it used to
be, it got removed in cleanups for 6.2. The functionality is still
there, just somewhere else.

Regards,
Jost

On 10/24/2014 03:34 PM, Dennis Luemkemann wrote:
> 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
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlRKWnwACgkQNme/yCvmvTKV3ACfcAvZhwzKgUOuU+LYSGADREwc
nEwAoJ295XiybiAM+xJgcRapVMtuSRit
=+Xrq
-----END PGP SIGNATURE-----



More information about the TYPO3-dev mailing list