Project

General

Profile

Actions

Bug #17683

closed

disappearing USER_INT output

Added by Bartosz Aninowski about 17 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Miscellaneous
Target version:
-
Start date:
2007-10-15
Due date:
% Done:

0%

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

Description

USER_INT output is randomly disappearing
Html source shows only

Is this utf8 problem?
My database FE and forceCharset is set to utf8.
I have also noticed that polish charset in constans filed are randomly converted to "??"

(issue imported from #M6527)

Actions #1

Updated by Bartosz Aninowski about 17 years ago

Hi. Here is solution for my problem
file class.tslib_fe.php about line 2502
'cache_data' => serialize($data),
change into
'cache_data' => base64_encode(serialize($data)),

linie 1661
$this->config = (array)unserialize($row['cache_data']); // Fetches the lowlevel config stored with the cached data
change into
$this->config = (array)unserialize(base64_decode($row['cache_data'])); // Fetches the lowlevel config stored with the cached data

Actions #2

Updated by Bartosz Aninowski about 17 years ago

I think there is lot of issues like above.
I am experiencing no_cache 1 every couple of refresh
Expiration time is default and no_cache is off in config.
If I understand this correctly, no_cache is set to 1 when Typo3 cant read (unserialize) cached data.

Actions #3

Updated by Oliver Hader over 16 years ago

How is the USER_INT integrated in TypoScript? Is it nested in another COA_INT/USER_INT object, like e.g. this?
10 = COA_INT
10 {
20 = USER_INT
20 {
...
}
}
This behaviour of the nested *_INT objects was fixed in the lasted release of TYPO3 4.1 and TYPO3 4.2.

Actions #4

Updated by Bartosz Aninowski over 16 years ago

This problem has strange solutions.
I've changed
$TYPO3_CONF_VARS['SYS']['setDBinit'] = 'SET NAMES utf8;'.chr(10).'SET CHARACTER SET utf8';
into
$TYPO3_CONF_VARS['SYS']['setDBinit'] = 'SET NAMES utf8';
There is problem with SET CHARACTER SET utf8

Actions #5

Updated by Jose Antonio Guerra about 16 years ago

I'm experiencing a very similar situation but even with USER objects. Sometimes the USER objects are not rendered into the FE-Cache.

The common factor is having "forceCharset" set to "utf-8" but I didn't set up $TYPO3_CONF_VARS['SYS']['setDBinit'] = 'SET NAMES utf8;'.chr(10).'SET CHARACTER SET utf8';

I know that's a problem itself because the data isn't stored the right way into MySQL, but it's functional anyway (but the data is getting a double charset conversion).

Actions #6

Updated by Christian Kuhn almost 14 years ago

This should be solved with TYPO3 4.5, utf8 connection is set as default.

Actions #7

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF