Bug #26784
closedGet page changes by complex TemplaVoila DS
0%
Description
I have a page that contain a TemplaViola content element. When I want to see the changes for some workspace for this page the request
/typo3/ajax.php?ajaxID=ExtDirect::route&namespace=TYPO3.Workspaces
takes so long so it get aborted from the browser. In the backend there is a message(shown 4 times):
"Connection Problem Sorry, but an error occurred while connecting to the server. Please check your network connection."
I started to search where the problem comes from and it was from
typo3/sysext/workspaces/Classes/Service/GridData.php
There is a function "calculateChangePercentage" that do not works with a little bit more complex DS.
I think there must be a way not to calculate this value if it provide a crash as by me.
Files
Updated by Oliver Hader over 13 years ago
- Status changed from New to Needs Feedback
Thanks for your report. Since you were able to track down this issue to the calculateChangePercentage() method, can you please do additional debugging on whether the call to t3lib_BEfunc::getProcessedValue() (maybe a hook there?) or similar_text() is taking that much time - you could do this e.g. by just uncommenting the accordant lines.
How big is the data stored in the flexform field - I guess the problem is the similar_text() function. Thanks in advance!
Updated by Lyuben Vassilev over 13 years ago
Hi,
I attached the data of the field tx_templavoila_flex. It is about 54 KB. All other filed of this entry seams normal. Only l18n_diffsource = [BLOB - 445B], but I think this is normal too.
I will check where the problem comes from in the next days.
Updated by Lyuben Vassilev over 13 years ago
Hi again! I tested and the problem comes really from
similar_text($val1, $val2, $similarityPercentage);
I have made var_dump() of $val1 and $val2 just for your info. $val1 is string(56412), $val2 is string(83748);
By such a volume of data the similar_text seems not to work properly any more.
You can read this too: http://www.php.net/manual/en/function.similar-text.php#72448
Updated by Tolleiv Nietsch over 13 years ago
- Status changed from Needs Feedback to Accepted
- TYPO3 Version set to 4.6
So the TODO here is to work around the know issues within PHP-functions e.g. by processing of 10KB chunks.
Updated by Michael Voehringer over 12 years ago
I ran into the same problem as Lyuben but my solution was to remove the call of calculateChangePercentage, because i did not found the usage of the calulated value. Aslong as you do not display the value there is no need to calculate it ;)
Updated by Tobias Frasch about 12 years ago
Same problem exists for me. All of a sudden viewing workspace changes stopped working. After removing the call of calculateChangePercentage it worked again.
Updated by Michael Voehringer over 11 years ago
I think you can close this ticket, in the meantime someone removed the calculateChangePercentage function and i can not reporduce this issue any more.
Updated by Michael Stucki almost 11 years ago
- Category changed from Bugs to Workspaces
Updated by Michael Stucki almost 11 years ago
- Project changed from 624 to TYPO3 Core
- Category changed from Workspaces to Workspaces
Updated by Georg Ringer almost 10 years ago
- Status changed from Accepted to Closed
- Is Regression set to No
closed as requested. calculateChangePercentage
is not there anymore