O
O
Oscar Handsome2017-09-20 17:58:45
Debugging
Oscar Handsome, 2017-09-20 17:58:45

Who faced the error Deprecated: Files started with './' should be placed relative to CURRENT_WORKING_DIR in UMI.CMS?

I have a standard local version for development, when you enable debug in config.ini in the directory and in other sections, hundreds of such lines fall out:

Deprecated: Files started with './' should be placed relative to CURRENT_WORKING_DIR 'C:/UMI.CMS_Localpack/localhost/htdocs'. File './images/cms/logo.png' loaded from 'C:\UMI.CMS_Localpack\localhost\htdocs' in C:\UMI.CMS_Localpack\localhost\htdocs\classes\system\entities\umiFile\umiFile.php on line 2

Deprecated: Files started with './' should be placed relative to CURRENT_WORKING_DIR 'C:/UMI.CMS_Localpack/localhost/htdocs'. File './images/cms/data/tv_color/television-899265_640.jpg' loaded from 'C:\UMI.CMS_Localpack\localhost\htdocs' in C:\UMI.CMS_Localpack\localhost\htdocs\classes\system\entities\umiFile\umiFile.php on line 2

Deprecated: Files started with './' should be placed relative to CURRENT_WORKING_DIR 'C:/UMI.CMS_Localpack/localhost/htdocs'. File './images/cms/data/tv_color/television-899265_640.jpg' loaded from 'C:\UMI.CMS_Localpack\localhost\htdocs' in C:\UMI.CMS_Localpack\localhost\htdocs\classes\system\entities\umiFile\umiFile.php on line 2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
relows, 2018-12-27
@relows

You need to go to the following file:
C:\UMI.CMS_Localpack\localhost\htdocs\classes\system\entities\umiFile\umiFile.php
Then, find "./" there and replace it with "/"
Just ran into this problem, but I didn't find a solution, I had to think for myself)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question