Closed (outdated)
Project:
Tagadelic
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jun 2008 at 16:13 UTC
Updated:
26 Nov 2024 at 09:02 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
vladimir.dolgopolov commentedMy opinion here is just return an array() instead of $vids = array();
Why should we read from the cache wrong data?
Comment #2
vladimir.dolgopolov commentedHere is my patch.
It against module's HEAD.
Comment #3
Bèr Kessels commentedCan someone please test this patch?
I like its concept, and like the solution, but need at least one more person to confirm it works and does not break his/her site.
Comment #4
brainlock commentedI didn't apply the patch, but made the code change and now receive a "Page Not Found" error, which is acceptable since no tags exist yet.
Comment #5
vladimir.dolgopolov commentedYou should clear the cache IMHO.
Comment #6
Bèr Kessels commentedif cache is causing this, then we need to implement this in the patch: we should clear the cahce in hook_update, in that case.
Comment #7
Bèr Kessels commentedpatch should implement a cache wipe in the update, else people get warnings.
Comment #8
rkdesantos commentedI am seeing a similar error in v5:
Message implode() [<a href='function.implode'>function.implode</a>]: Argument must be an array in /home/..../modules/tagadelic/tagadelic.module on line 208.Comment #9
rkdesantos commentedI'm interested in getting a fix against D5 but has this ever been fixed against either D6 or D5?
Comment #10
Bèr Kessels commentedIMO we should travers up the calling functions and fix it in the first place: simply make sure we never call the function tagadelic_get_weighted_tags without an array if vids!
Comment #11
ilfelice commentedSubscribing
Comment #12
rkdesantos commentedAny action to address this issue?
Comment #13
Bèr Kessels commented@jorgemare instead of subscribing and spamming us with updates, you could actually do somthing about it :)
@rdesantos: see #10. Maybe you can address it?
Comment #14
rkdesantos commented@Ber Kessels: If I had the necessary knowledge or skills I'd be happy to do so. Unfortunately I don't think I do. My question was an inquiry on the status and that's all.
Comment #15
Bèr Kessels commentedClosing "needs work" that has been open for a long time, without anyone working on it.
Comment #16
Bèr Kessels commentedComment #18
kalman.hosszu commentedA new patch is attached. This solves the problem on my environment. Would somebody test it?
Comment #19
rkdesantos commentedThe equivalent patch seems to be good in V5 as best as I can tell. Will test V6 later and advise.
Comment #20
Bèr Kessels commentedThanks for the patch and the test. I'd like a confirmation about how it works on d6.
Also, if you are familiar with Github, consider sending a pull-request there: that is a lot less work for me and the other maintainers to merge, review and test. It will speed up acceptance of a patch enormously.
About the patch:
As I said in #10:
» IMO we should travers up the calling functions and fix it in the first place: simply make sure we never call the function tagadelic_get_weighted_tags without an array if vids! «
This is addressed just fine, thanks!
But, this introduces a so-called "early-return" which, in the already horrible factored (sorry, my fault) code makes it harder to follow and debug. All in all: I'd very much prefer a solution that solves this by refactoring a little more. I've done a quick refactoring of this method, which may be an example: https://github.com/berkes/tagadelic/commit/3ded2f6a20393afe2be67435cadc1...
Bèr
Comment #21
rkdesantos commentedI've tested v6 and it appears to be ok with the patch.
Comment #22
astonvictor commentedI'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks