joni2back / angular-filemanager

JavaScript File Manager Material Design Folder Explorer Navigator Browser Manager in AngularJS with CSS3 Responsive (with FTP in PHP / Java / Node)
https://joni2back.github.io/angular-filemanager/
MIT License
1.76k stars 576 forks source link

Need help to run code locally #233

Open VIPINSAINI17 opened 7 years ago

VIPINSAINI17 commented 7 years ago

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

durasj commented 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?

varungpt commented 7 years ago

Hi @durasj,

I still cannot make it work, error: 'Function not Implemented'.

kindly help if possible thanks

durasj commented 7 years ago

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.

varungpt commented 7 years ago

@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.

durasj commented 7 years ago

@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?

varungpt commented 7 years ago

@durasj PFA the output. phpinfo.pdf

durasj commented 7 years ago

@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.

durasj commented 7 years ago

@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.

varungpt commented 7 years ago

@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.

durasj commented 7 years ago

@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.

varungpt commented 7 years ago

@durasj installing php-xml helped and now it is working fine. Thank you very much for the help.

AshDevFr commented 7 years ago

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 ?

AshDevFr commented 7 years ago

@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 (||) ?

durasj commented 7 years ago

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).