Open VIPINSAINI17 opened 7 years ago
Hi @VIPINSAINI17,
I created a bundle which should work out-of-the-box, also with short instructions and some common questions and answers for you: bundle-php-local
Can you try it and let me know how it works?
Hi @durasj,
I still cannot make it work, error: 'Function not Implemented'.
kindly help if possible thanks
Hi @varungpt,
can you please tell me what is your setup? I.e. what web server are you running and anything else that can help me. Because otherwise, I'm afraid I can't help you from what you wrote.
@durasj , I am using Ubuntu 16.04 (installed PHP and Apache), I can see index.html page on visiting localhost but it is showing error mentioned above.
@varungpt can you please try whether creating index.php with
<?php phpinfo();
as content and visiting it in the browser will give you usual PHP info page?
@durasj PFA the output. phpinfo.pdf
@varungpt thanks, looks good. I will try it on Ubuntu. I'm not running the Apache server there, but that shouldn't be a problem. Will let you know.
@varungpt looks like the Apache was the issue there. I made some changes and created a new bundle.
Please take a look at it and let me know whether it works.
@durasj still not working, it is showing error: "Error 500 - Bridge response error, please check the API docs or this ajax response", and response is empty 500 error.
@varungpt check your apache error log. If there will be error about utf encode function not being defined, make sure you have the php-xml extension.
@durasj installing php-xml helped and now it is working fine. Thank you very much for the help.
Hi I have the same issue. I am using a Docker image of php7 with apache and even if I install php-xml I still have the issue. 'Function not Implemented' It happens with the first POST (action list) I will try with php-fpm but I don't understand what is the real problem. How can I check that my php-xml is active and working properly ?
@durasj I may have found the issue. https://github.com/joni2back/angular-filemanager/blob/master/bridges/php-local/LocalBridge/Rest.php#L153
Shouldn't it be a AND (&&) instead of a OR (||) ?
Hi @AshDevFr , yeah, that's how it was before. Also on two more lines below. Would you be so kind and try it and then create a PR? Otherwise, I will do so by the end of the week.
Regarding the debugging, the best thing you can always do is to check your PHP error logs. In the case of php-xml there would be error about utf encode function not being defined. But that shouldn't be a problem now, since it's no longer used if you are on the latest version of the bundle.
The issue @varungpt experienced on the Apache was the path, if I remember correctly, which I changed in the config on the client side (index.html).
Hello ,
This is best fit for my requirements , However I am not able to run this code locally. I need your help to setup locally.
Thanks in Advance . Vipin