V
V
vlad_was_here2014-08-12 15:23:34
phonegap
vlad_was_here, 2014-08-12 15:23:34

Why, when transferring the site to another server, files stopped connecting through namespace?

The new server uses PHP 5.3.10.
The problem is this:
before, when calling, for example, \ImportCSV\BaseImport::create()->attributes, everything was fine.
And now it swears that there is no BaseImport class.
Why is that? And how to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2014-08-12
@vlad_was_here

Firstly, 5.3 is outdated, and secondly, just look at the class autoloader.
If necessary, non-existent classes are searched somewhere, in your case they are either not searched at all, that is, the autoloader is not connected, or they are not found, then you need to check and correct the paths along which files with classes are searched.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question