Tuesday, February 15, 2022

[FIXED] kohana framework doesn't load module on linux server while load it perfectly on mamp

Issue

well, question is in subject, here i can give you some details. Error is Class QIWI is not found. In bootstrap it is uncommented, when i use

    Debug(Kohana::modules()) 

it shown like module is loaded. folder three is

    --modules
    --|-qiwi
    ----|--classes
    -------|--Kohana
    ----------|--Qiwi.php (class Kohana_Qiwi)
    -------|Qiwi.php (class Qiwi extends Kohana_Qiwi)

i think that is a filename issue, but it seems like files r named correctly


Solution

Try to uncomment this line in bootstrap:

spl_autoload_register(array('Kohana', 'auto_load_lowercase'));


Answered By - Mariyo

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.