Closed (fixed)
Project:
Web Links
Version:
6.x-2.x-dev
Component:
Contrib: Pralexa (D6 only)
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2013 at 11:05 UTC
Updated:
12 Aug 2015 at 17:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jonathan1055 commentedHi Gerhard,
Now that we have dropped the Pralexa sub-module in 7.x can this issue be closed? Or does it still need fixing at 6.x?
Comment #2
jonathan1055 commentedSorry I did not mean the component to change. Had to reselect as the text is different now.
Comment #3
GStegemann commentedI would say yes.
To fix this the corresponding change in D7 can be applied here as well.
Comment #4
jonathan1055 commentedIn Web Links 6.x the table weblinks_pralexa has already been corrected via a hook_update pralexa_update_6101 to change the column last_checked to type 'datetime' and this is working fine. It was done at 6.x-2.0 so it may have been noticed during and fixed during the 1.0 to 2.0 development.
However, the schema definition was not changed to keep it in line, so clean installs of 6.x have the field still defined as 'int' and the problem persists. The schema definition needs to be kept up to date with all the changes made via hook_updates so that a new clean install has the same table definition. Here's a patch which does that.
Also this I made two other minor corrections, directly related to testing this page rank retrival. First in admin.inc for the show/hide pagerank setting the default value was not causing either radio button to be selected because it needs (int). Second, in pralexa.module _pralexa_getpagerank we need to check the result with isset() otherwise PHP5 throws warnings. I know it is not good to have multiple fixes in the same patch, but these are fairly small and I do not intend to do too much to the pralexa module given that we've dropped in in 7.x, so fixing these bugs here, as we wont be starting a separate issue or separate commit for them :-)
Comment #5
GStegemann commentedOops, I missed that.
That's pretty OK here.
Tested and works. Thanks. However, I didn't test a fresh install of Web Links 6.x.
Comment #7
jonathan1055 commentedThat's OK, I already tested on a clean fresh install, and check the table definition in phpMySQL against one with the update function having run. The tables are identical.
Thanks for marking RTBC
Comment #9
jonathan1055 commentedThe issue is fixed. Old patch from #4 got automatically requeued, and obviously it fails to apply because the code change is already committed in #6.