Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get this error when trying to run cron now and as a result i am not able to get League Standings working:
Fatal error: Call to undefined function now() in ....\ULT\modules\ult_matches\ult_matches.module on line 1496
Anyone had a similar issue and resolved it?
Comment | File | Size | Author |
---|---|---|---|
#3 | ULT-fix-missing-leaguestatus-table-1529370-3.patch | 963 bytes | jthorson |
Comments
Comment #1
hitman007 CreditAttribution: hitman007 commentedOk, did some trial-and-error investigation and realise that this issue is directly related to http://drupal.org/node/1214358
Firstly, I removed the code now() from line 1496 of the file ult_matches.module. I then ran cron and it worked but got the error as in http://drupal.org/node/1214358 and then I disabled the module ULT Registration and that worked to get League Standings working.
Comment #2
jthorson CreditAttribution: jthorson commentedhitman007:
I've fixed the now() function with the latest commit to 6.x-1.x.
Have you activated the ult_divisions module? If not, I suspect that enabling and disabling the ult_divisions module may help get around the missing table issue identified in #1214358: Standings problem.
Comment #3
jthorson CreditAttribution: jthorson commentedhitman007:
Please try this patch (along with 6.x-1.x) and let me know if it resolves the issue, allowing you to use both the ult_registrations and ult_standings modules simultaneously.
Comment #4
LiCra CreditAttribution: LiCra commentedI have the same type of issue I believe, I have setup a league, teams and some players. have not attached players to a roster yet and I have not added any games to create standings. When cron runs, it reports:
user warning: Unknown column 'field_ult_leaguestatus_value' in 'where clause' query: Select nid from content_type_ult_division where field_ult_leaguestatus_value = "Active" in /sites/all/modules/ULT/modules/ult_standings/ult_standings.module on line 370.
Would this patch fix this issue?
Comment #5
jthorson CreditAttribution: jthorson commentedThe patch in #3 should already be in place for anything after 6.x-1.0-alpha5 (including rc1).
The root cause here is the use of direct SQL queries instead of proper use of the Field API commands (a terrible habit I have since corrected, but haven't backported to ULT). Can you verify that the 'ult_leaguestatus' field exists on the ult_divisions content type?
Comment #6
LiCra CreditAttribution: LiCra commentedah, okay. let me look.... no,
'ult_leaguestatus' does not exist as a field on the Divisions content type