Typo3 Error Messages – Bar54 http://www.bar54.de Software Engineering, Web Technologies, eCommerce and some more Wed, 29 Oct 2014 16:13:14 +0000 en-US hourly 1 https://wordpress.org/?v=5.9.4 Typo3: Filelist context menu does not work http://www.bar54.de/2014/03/typo3-filelist-context-menu-work/ Tue, 04 Mar 2014 18:54:33 +0000 http://www.bar54.de/?p=670 If the context menu of your typo3 file list does not work anymore and you use templavoilá, you might hit a known bug in one of templavoilá’s functions.
http://forge.typo3.org/issues/43554

To check if this is the case:

  • Use a browser developer tool such as chrome developer console (hit F12 in your browser), and check for an 500 internal error response for a url similar to …./alt_clickmenu.php?…
  • Next, check your templavoila version. If this is 1.8.0: there you go

There is already a patch provided for this issue:
http://forge.typo3.org/attachments/23132/

To fix this manually, edit the file typo3conf/ext/templavoila/classes/class.tx_templavoila_file.php

In the method public static function is_xmlFile($filename), adapt the following lines:

public static function is_xmlFile($filename) {
  if (!self::includesFal()) {
    // fix file list context menu according to http://forge.typo3.org/attachments/23132/43554.patch
    // return self::is_xmlFile($filename);
    return self::is_xmlFile_finfo($filename);
}
]]>
Typo3 logs out users or does not log them in http://www.bar54.de/2014/02/typo3-logs-out-some-users-or-even-does-not-log-in/ Mon, 17 Feb 2014 10:04:30 +0000 http://www.bar54.de/?p=659 Some Typo3 installations do not allow all your users to log in to the backend or users are logged out from time to time. For the same installation, you might have users without any issue and working as usual.
This can happen if your users use an internet connection that switchs the IP address during the same session. By Default, Typo3 has a security feature that detects an IP change during the same backend sessions. This is done to ensure sessions to not be stolen by any bad boys.

However, many internet providers started to switch IP addresses for their customers to serve more customers with smaller IP pools. Especially if you use a mobile or a hotels or conferences internet connection, you get a new client-side IP address quite often.

Typo3 lockIP Configuration
Typo3 provides a configuration to let you slightly reduce this security check and to enable such users to still access your system.
If you log into your install tool and browse to “all configurations” you will find a configuration named lockIP.

This configuration allows for a value between 0 and 4. This integer specifies the number of IP positions to be checked by this security feature. Typically, your internet provides switches only the last or the two last positions of your IP adresse (0.0.0.0). By default, all 4 positions are checked. If you modify this configuration, you should reduce it only step-wise (4-3-2-1-0) to keep the highest number your users are happy with.

]]>
Typo3: SQL Error during Page Create http://www.bar54.de/2014/02/typo3-sql-error-during-page-create/ Tue, 04 Feb 2014 06:05:46 +0000 http://www.bar54.de/blog/?p=572 If you try to create a new page, using either the drag’n’drop feature or the page action from context menu and getting an error such as:

SQL error: 'Incorrect integer value: '' for column 'backend_layout' at row 1' (pages:NEW12345)

You should check your MySQL configuration. More specific the sql-mode you have configured.
Typo3 is not compatible with the MySQL strict model. Check the example below to see how the configuration must be adapted (based on the default my.ini settings)

# Set the SQL mode to strict
# disable strict mode for typo3
#sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" 
]]>
Typo3: RTE in Backend not loading for Non-Admin-Users http://www.bar54.de/2013/04/typo3-rte-in-backend-not-loading-for-non-admin-users/ http://www.bar54.de/2013/04/typo3-rte-in-backend-not-loading-for-non-admin-users/#respond Thu, 04 Apr 2013 14:30:51 +0000 http://www.bar54.de/blog/?p=362 Recently I found a nasty problem with Typo3’s richt text editor (RTE) when a non-admin user was logged in. (Typo3 version 4.5.25)

Trying to open a content element with a rich text editor field, presented only the message “editor is being loaded” without any further information or progress.
When logging into the backend as an admin user, everything worked fine.

Checking with the firefox javacript console, the following error was provided:

ReferenceError: invalid assignment left-hand side
Line: 414, Row: 60
3);return('#'+hex(r)+hexHTMLArea.Editor.prototype.isEditable=function(){return(this._doc.designMode==="on");};HTMLArea.E

typo3-rte-javascript-error

Finally, the solution I found was to disable the javascript compression for the richt text editor scripts in the extensions overall configuration using the Extension Manager:
disable-compression

However, this was the first time I saw this problem and I was not able to reproduce it on any other of our typo3 installations.

]]>
http://www.bar54.de/2013/04/typo3-rte-in-backend-not-loading-for-non-admin-users/feed/ 0
Powermail 2.0.x: Enable Dynamic Sender Fields http://www.bar54.de/2013/04/powermail-2-0-x-enable-dynamic-sender-fields/ http://www.bar54.de/2013/04/powermail-2-0-x-enable-dynamic-sender-fields/#respond Mon, 01 Apr 2013 20:22:40 +0000 http://www.bar54.de/blog/?p=355 Starting with version 2.0, the powermail extension has a new concept to configure the email address used to send a feedback mail to the user who has submited an online form.

The documentation recommends to activate the “This field contains the Email of the sender” checkbox for the form field the user should put his email adress in. With the powermail version 2.0.6, this setting seems to have no effect and the user does not receive any confirmation mail.
Email Form Field

According to the document, another way to configure the field to be used as the form sender’s email adress is to put in the according form field variable in the configuration field of the form:
http://typo3.org/extension-manuals/powermail/2.0.6/view/1/48/
Trying to put in the variable referencing the email field (e.g. {e_mail}):
Sender E-Mail Variable Input
ends up with an error message (“errorinemail@tryagain.com”) because of an invalid e-mail format:

errorinemail@tryagain.com
errorinemail@tryagain.com

As a result, this configuration will not work out. Even worse: The field can not be cleared again.

The only way I figured out to fix the configuration was to overwrite the sender’s email and name in an extension template for the page setting them to the fluid variable referencing the according form fields:

plugin.tx_powermail.settings.sender.overwrite.senderEmail={e_mail}
plugin.tx_powermail.settings.sender.overwrite.senderName={name}

Template Constants to override powermail sender

]]>
http://www.bar54.de/2013/04/powermail-2-0-x-enable-dynamic-sender-fields/feed/ 0
Typo3: CoolURI Multidomain Host Problem http://www.bar54.de/2013/02/typo3-cooluri-multidomain-host-problem/ http://www.bar54.de/2013/02/typo3-cooluri-multidomain-host-problem/#respond Fri, 22 Feb 2013 09:29:06 +0000 http://www.bar54.de/blog/?p=344 If you are using the CoolURI extension for a Typo3 installation managing several websites with multidomain support, you might run into 404 error problems.
This depends on your individual server configuration.

Internally, cooluri reads the requested domain from the php server array by asking for the server name: $domain = $_SERVER['SERVER_NAME'];.
Often, this does not return the request domain but an internal server name.

To fix this issue you have to edit the cooluri extension file typo3/conf/ext/cooluri/class.tx_cooluri.php
Replace all occurences of $_SERVER['SERVER_NAME'] with $_SERVER['HTTP_HOST'], refresh your typo3 caches and fore cooluri to update all cached urls.

As an alternative, you can use t3lib_div::getIndpEnv('HTTP_HOST') instead of $_SERVER['HTTP_HOST']. In the according cooluri bug report (http://forge.typo3.org/issues/35799) someone recommended this to also support setups with a proxy configured in front of typo3. However, I never tested this up to now.

]]>
http://www.bar54.de/2013/02/typo3-cooluri-multidomain-host-problem/feed/ 0
CoolURI and Typo3 6.0.2 Problem http://www.bar54.de/2013/02/cooluri-and-typo3-6-0-2-problem/ http://www.bar54.de/2013/02/cooluri-and-typo3-6-0-2-problem/#respond Fri, 15 Feb 2013 17:59:37 +0000 http://www.bar54.de/blog/?p=335 After upgrading a typo3 installation to version 6.0.2 I noticed CoolURI did not work any longer. I always ended up with endless redirects (301) when trying to open a page.
Disabling the redirect of old links to new ones in the typo3 template did allow me to open at least a “regular” uri such as www.mydomain.com/index.php?id=4.
By this, I was able to see the links have been generated fine in the html output (e.g. www.mydomain.com/home.html). However, clicking on one of the links led to an endless redirect.

Next, I checked the CoolURI cache without any entry in there. But no error messages. Only if I tried to manually create a new uri in the cooluri cache, I received an error message that cooluri wasn’t able to create the cache entry (“Could not save the link.”).

Due to this, I checked the database and found … nothing. The cooluri caching tables were not present in the database.
I assume I have accepted to remove them from the system during the upgrade to Typo3 6.x. However, there seems to be no Typo3 6.x compatible database definition in cooluri, because neither the extension manager, nor the “compare” in the installation tool offer me the option to create these tables.

So finally, I was able to fix the problem by running the insert queries on the database (MySQL) on my own to create the tables manually.

The sql script to create the tables are presented below.

CREATE TABLE IF NOT EXISTS `link_cache` (
`id` int(10) unsigned NOT NULL auto_increment,
`params` blob,
`url` char(255) collate latin1_german2_ci default NULL,
`tstamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`crdatetime` datetime default NULL,
`sticky` tinyint(1) unsigned default '0',
PRIMARY KEY (`id`),
KEY `url` (`url`(64)),
KEY `params` (`params`(64))
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci AUTO_INCREMENT=27 ;

-- --------------------------------------------------------

--
-- Table structure for table `link_oldlinks`
--

CREATE TABLE IF NOT EXISTS `link_oldlinks` (
`id` int(10) unsigned NOT NULL auto_increment,
`link_id` int(10) unsigned NOT NULL default '0',
`url` char(255) collate latin1_german2_ci default NULL,
`tstamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`),
KEY `url` (`url`(64))
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german2_ci AUTO_INCREMENT=3 ;

]]>
http://www.bar54.de/2013/02/cooluri-and-typo3-6-0-2-problem/feed/ 0
Nivoslider Plugin in Typo3 6.0.2 http://www.bar54.de/2013/02/nivoslider-plugin-in-typo3-6-0-2/ http://www.bar54.de/2013/02/nivoslider-plugin-in-typo3-6-0-2/#respond Fri, 15 Feb 2013 06:39:31 +0000 http://www.bar54.de/blog/?p=329 Nivoslider is a nice extension to integrate an image slider in your Typo3 installation (http://typo3.org/extensions/repository/view/nivoslider)
However, it has not been maintained since 2011 and is not compatible with the latest typo3 version.

It makes use of a system function which is not supported any longer. As a result, you might end up with the following error message when you try to create a new content element in the page module (the list module might still work):
Fatal error: Call to undefined method TYPO3\CMS\Core\Utility\GeneralUtility::readLLXMLfile() in /homepages/23/d183583809/htdocs/diana-nahm.de/typo3conf/ext/nivoslider/pi1/class.tx_nivoslider_pi1_wizicon.php on line 70

To fix this issue, you need to modify the code of your local extension installation or provide a xclass extension to replace the according method.

The code you need to fix is in the file typo3conf/ext/nivoslider/pi1/class.tx_nivoslider_pi1_wizicon.php

You need to replace the method
function includeLocalLang() {
$llFile = t3lib_extMgm::extPath('nivoslider').'locallang.xml';
$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);
return $LOCAL_LANG;
}

with this code

function includeLocalLang() {
$LOCAL_LANG = \TYPO3\CMS\Core\Utility\GeneralUtility::readLLfile(
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('nivoslider') . 'pi1/locallang.xml',
$GLOBALS['LANG']->lang);
return $LOCAL_LANG;
}

]]>
http://www.bar54.de/2013/02/nivoslider-plugin-in-typo3-6-0-2/feed/ 0
Typo3: Powermail File Upload Size http://www.bar54.de/2012/03/typo3-powermail-file-upload-size/ http://www.bar54.de/2012/03/typo3-powermail-file-upload-size/#respond Sun, 25 Mar 2012 22:16:33 +0000 http://www.bar54.de/blog/?p=195 Powermail is a great typo3 extension to provide mature online forms, e.g. for contact forms, requests, or any other purpose requiring the user to send information through the website.

Powermail includes facilities to upload files through the website form. Various configuration parameters exist to customize the upload according to the individual needs.
However, the default values might not fit out-of-the-box. For example, the file upload allows many different file types – from image types up to pdfs – but the file upload size is limited to less than 1MB. This will result in an error message for any file exceeding this limit.


“Folgende Fehler sind aufgetreten:” / “Diese Datei ist zu groß:”

To solve this issue, you should add the following configuration to the setup of your page template:
plugin.tx_powermail_pi1.upload.filesize=4096

The assigned value is treated as kilobytes (kb) representing 4MB in the example. Make sure you refresh your site cache when changing this parameter. You can choose any other file size if you want to.

]]>
http://www.bar54.de/2012/03/typo3-powermail-file-upload-size/feed/ 0
Typo3 Encoding Problem even with SET NAMES = utf8 http://www.bar54.de/2011/09/typo3-encoding-problem-even-with-set-names-utf8/ http://www.bar54.de/2011/09/typo3-encoding-problem-even-with-set-names-utf8/#respond Sun, 04 Sep 2011 16:16:22 +0000 http://www.bar54.de/blog/?p=106 To work with UTF-8 encoding on a Typo3 website and ensuring the database connection is also forced to use UTF-8 encoding, a common practice is to configure the parameter [SYS][setDBinit] to
SET NAMES = utf8.

Meanwhile, I faced two installations on servers of two differen hosting providers (1und1 and Pluspunkthosting) serving a wrong encoding even with this configuration.

To solve the problem I stopped using this classical shortcut configuration to force the database connection charset.

Stopped using SET NAMES db init configuration
Stopped using SET NAMES db init configuration

Instead, I used the none-shortcut conifguration for the database connection charset:

SET character_set_client = utf8
SET character_set_results = utf8
SET character_set_connection = utf8

Working db init configuration
Working db init configuration

The problem and configuration described above have been observed on Typo3 4.5.x installations.

If you face similar problems or have any questions about the solutions described, feel free to contact us.

]]>
http://www.bar54.de/2011/09/typo3-encoding-problem-even-with-set-names-utf8/feed/ 0