Bug #26784
closed
Get page changes by complex TemplaVoila DS
Added by Lyuben Vassilev over 13 years ago.
Updated almost 10 years ago.
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
- 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!
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.
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
- Target version deleted (
4.5.3)
- 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.
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 ;)
Same problem exists for me. All of a sudden viewing workspace changes stopped working. After removing the call of calculateChangePercentage it worked again.
I think you can close this ticket, in the meantime someone removed the calculateChangePercentage function and i can not reporduce this issue any more.
- Category changed from Bugs to Workspaces
- Project changed from 624 to TYPO3 Core
- Category changed from Workspaces to Workspaces
- Status changed from Accepted to Closed
- Is Regression set to No
closed as requested. calculateChangePercentage
is not there anymore
Also available in: Atom
PDF