Skip to content

non-static method HTML_QuickForm_file::_ruleCheckMaxFileSize() cannot be called statically #151

Description

@shannah

PHP 8.4 failure reported with short related record form.

Fatal error: Uncaught TypeError: call_user_func(): Argument https://github.com/shannah/xataface/pull/1 ($callback) must be a valid callback, non-static method HTML_QuickForm_file::_ruleCheckMaxFileSize() cannot be called statically in /home/cardin55/public_html/hoaDB/xataface-29apr26/lib/HTML/QuickForm/Rule/Callback.php:66 Stack trace: #0 /home/cardin55/public_html/hoaDB/xataface-29apr26/lib/HTML/QuickForm/RuleRegistry.php(148): HTML_QuickForm_Rule_Callback->validate(Array, '12000000') https://github.com/shannah/xataface/pull/1 /home/cardin55/public_html/hoaDB/xataface-29apr26/lib/HTML/QuickForm.php(1536): HTML_QuickForm_RuleRegistry->validate('maxfilesize', Array, '12000000', true) https://github.com/shannah/xataface/issues/2 /home/cardin55/public_html/hoaDB/xataface-29apr26/Dataface/ShortRelatedRecordForm.php(739): HTML_QuickForm->validate() https://github.com/shannah/xataface/issues/3 /home/cardin55/public_html/hoaDB/xataface-29apr26/actions/new_related_record.php(90): Dataface_ShortRelatedRecordForm->validate() https://github.com/shannah/xataface/issues/4 /home/cardin55/public_html/hoaDB/xataface-29apr26/Dataface/Application.php(3723): dataface_actions_new_related_record->handle(Array) https://github.com/shannah/xataface/issues/5 /home/cardin55/public_html/hoaDB/xataface-29apr26/Dataface/Application.php(3866): Dataface_Application->handleRequest() https://github.com/shannah/xataface/issues/6 /home/cardin55/public_html/hoaDB/xataface-29apr26/Dataface/Application.php(3751): Dataface_Application->_display(false, false) https://github.com/shannah/xataface/issues/7 /home/cardin55/public_html/hoaDB/index.php(12): Dataface_Application->display() https://github.com/shannah/xataface/issues/8 {main} thrown in /home/cardin55/public_html/hoaDB/xataface-29apr26/lib/HTML/QuickForm/Rule/Callback.php on line 66

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions