H
H
Herman Martin2018-07-14 01:16:53
Yii
Herman Martin, 2018-07-14 01:16:53

How to overcome ReflectionException Class app\modules\module_name\module does not exist?

Wrote a simple application. It works from under Windows + Apache + muscle. No complaints.
I decided to test everything on the hosting, uploaded all the files, changed the database, user and password to the right one, uploaded the database structure and some table data.
The hosting is nginx. I try to run it and get an error:
ReflectionException
Class app\modules\str\module does not exist
I don't even know what the problem could be. It still worked on a Windows server, but it didn't work on Linux. Please point out possible errors to those who know

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
davidcopperbeard, 2018-11-02
@dklight

I had the same problem.
In my case, the problem turned out to be in the module namespace
was: app\Modules\module_name
needed: app\modules\module_name
It is worth checking the module namespace, the correctness of the module in the config and the folder structure.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question