@ruben.estrada Solving this inclusion, in turn accepts for further dependencies to be included. So here the solution is to upgrade the kcfinder file. Hence this has been marked for enhancement.
Well, this was a working feature on 7.1. There must have been something between 7.1 and 7.3 that broke it. Could it be related to this: #1254 (closed) ?
Could it be that the problem is that you started introducing vtiger functions inside of the library? that's why we get the "undefined function" errors. I suspect, the code broke from this commmit: b577028a
one solution would be to move the /kcfinder/upload.php and /kcfinder/browse.php to vtiger's root and include the necessary files so that the used functions are available.
Another solution would be to replace the library. I'm not sure if we could use cfkinder instead: https://github.com/ckfinder
What I did in the end was simply replacing the vtigercrm/kcfinder/core/uploader.php with the original one from the library used in vtiger 7.1. Thst's how I got it working.
As a long term solution I see 3 options:
use the lastest version of kcfinder which is 3.12 and keep on developing it.
replace it with an alternative library that is still alive (I wouldn't know which one though)
create an inhouse custom light version which only does the basics.
To solve the error, the following lines must be added before the require "core/autoload.php" line, in the files: kcfinder/browser.php, kcfinder/css.php and kcfinder/upload.php: