Project

General

Profile

Actions

Bug #17366

closed

Parse error: syntax error, unexpected T_STRING in newloginbox/locallang.xml on line 1

Added by Franz Holzinger almost 17 years ago. Updated over 16 years ago.

Status:
Closed
Priority:
Should have
Category:
felogin
Target version:
-
Start date:
2007-06-07
Due date:
% Done:

0%

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

Description

PHP5.2.1, TYPO3 4.2trunk:
After installation of current newloginbox from SVN I cannot any more create a new page content element.
It ends up in the error message and no editing is possible any more:
  1. Time Function Location
    1 0.0021 {main}() /var/www/html/typo3-svn/TYPO3core/trunk/typo3/sysext/cms/layout/db_new_content_el.php:0
    2 0.4190 SC_db_new_content_el->main() /var/www/html/typo3-svn/TYPO3core/trunk/typo3/sysext/cms/layout/db_new_content_el.php:633
    3 0.4205 SC_db_new_content_el->getWizardItems() /var/www/html/typo3-svn/TYPO3core/trunk/typo3/sysext/cms/layout/db_new_content_el.php:259
    4 0.4205 SC_db_new_content_el->wizardArray() /var/www/html/typo3-svn/TYPO3core/trunk/typo3/sysext/cms/layout/db_new_content_el.php:389
    5 0.4219 tx_newloginbox_pi1_wizicon->proc() /var/www/html/typo3-svn/TYPO3core/trunk/typo3/sysext/cms/layout/db_new_content_el.php:532
    6 0.4219 tx_newloginbox_pi1_wizicon->includeLocalLang() /var/www/html/typo3-svn/TYPO3core/trunk/typo3/ext/newloginbox/pi1/class.tx_newloginbox_pi1_wizicon.php:
! ) Parse error: syntax error, unexpected T_STRING in /var/www/html/typo3-svn/TYPO3core/trunk/typo3/ext/newloginbox/locallang.xml on line 1
Call Stack

It works only if you change the function includeLocalLang in
ext/newloginbox/pi1/class.tx_newloginbox_pi1_wizicon.php:

/**
 * Includes the locallang.xml and returns the $LOCAL_LANG array found in that file.
*/
function includeLocalLang() {
$typoVersion = t3lib_div::int_from_ver($GLOBALS['TYPO_VERSION']);
if ($typoVersion >= 3008000)    {
$LOCAL_LANG = $GLOBALS['LANG']->includeLLFile(t3lib_extMgm::extPath('newloginbox').'locallang.xml',FALSE);
} else {
include(t3lib_extMgm::extPath('newloginbox').'locallang.php');
}
return $LOCAL_LANG;
}
(issue imported from #M5756)

Files

wizard-icon.diff (1.39 KB) wizard-icon.diff Administrator Admin, 2007-06-07 22:30
Actions #1

Updated by Stefan Strasser almost 17 years ago

I noticed it this week. Thank you for your patch!

Actions #2

Updated by Stefan Strasser almost 17 years ago

I've just tested your patch and submitted it already to svn because it is urgent. The snapshot this night should therefore include your patch.

A question about your legacy-settings (php-files): the php-files are not anymore included in svn. Do you think they should also be delivered to ensure backwards-compatibility with typo3-versions before 4.x/3.8? After contacting Ingmar about this I've raised the required Typo3-Version to 4.x for newloginbox.

Actions #3

Updated by Franz Holzinger almost 17 years ago

Yes, the locallang.php seems to be missing. Maybe you can still add an old version to make it working also for TYPO3 - 3.8 and mark this as the last version which will work for them.

It would be sufficient to raise the required version to 3.8 .

Actions #4

Updated by Stefan Strasser over 16 years ago

As far as I've understood Ingmar, the xml-lang-support for the frontend-plugins requires at least Typo3 4.0. Therefore I think it doesn't make sense to add a php-file for backwards-compatibility.
Newloginbox 3.1.0 has just been released.

Actions

Also available in: Atom PDF