GithubHelp home page GithubHelp logo

Error 500 about ifm HOT 12 CLOSED

misterunknown avatar misterunknown commented on May 18, 2024
Error 500

from ifm.

Comments (12)

misterunknown avatar misterunknown commented on May 18, 2024

Do you have access to the server logs? "general error"s mostly indicates a server configuration problem.

from ifm.

jezikk82 avatar jezikk82 commented on May 18, 2024

apache_error_log is empty, no errors connected to ifm. In access_log i see the requery and replay with err 500. No other clue.

from ifm.

misterunknown avatar misterunknown commented on May 18, 2024

Well, that's weird. Did you test already if PHP runs correctly? It's also important that you have the correct version installed. The IFM needs at least PHP 5.4.

Also important:

  • Does the webserver have at least read access to the filesystem?
  • Can you maybe post an anonymized part of your access log?

from ifm.

jezikk82 avatar jezikk82 commented on May 18, 2024

PHP work correctly, I test few of php file manager over the w-end and only IFM faild to work.
I have PHP 5.5.11.
Scipts have read acces to filesystem

Access_log:

xxxxxxxx - - [15/Jun/2014:12:58:42 +0200] "GET /xxxx/ifm.php HTTP/1.1" 500 - "http://xxxxx/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36" /xxxxxxxx/ifm.php 4530 pid=25146 id=U5bk4lZv8QsAADJvvnkAAADG

from ifm.

jezikk82 avatar jezikk82 commented on May 18, 2024

OK, I found the problematic functions:

  • posix_getpwuid
  • posix_getgrgid

When switched off showing this info IFM is working.
On production serwer it doent return anything and cause errors.

from ifm.

misterunknown avatar misterunknown commented on May 18, 2024

Well, yeah, that functions don't work on windows systems. I'll write a hint in the documentation and add a workaround for this issue to the todo list.

Is your production system also a windows system? What about the server logs on that machine?

from ifm.

jezikk82 avatar jezikk82 commented on May 18, 2024

Production is Linux + Apache.
In the log was no info at all.

from ifm.

misterunknown avatar misterunknown commented on May 18, 2024

Hm. Which distribution do you use? On a linux machine you can send a request to the API of the IFM. Maybe this shows some error information:

curl --data "api=getFiles" yourhostname/yourpath/ifm.php

If you are using Apache Basic Authentication:

curl -u user:password --data "api=getFiles" yourhostname/yourpath/ifm.php

This should return a JSON-parsable string with all your files and directories. If it returns nothing you can try to enable PHPs error reporting at the beginning of the script right after the PHP-Tag:

<?php
error_reporting(E_ALL);
/*================...

from ifm.

jezikk82 avatar jezikk82 commented on May 18, 2024

None of this get any output, just blank page and in firebug i see it's error 500.
When i switch off this 2 option it works.

from ifm.

misterunknown avatar misterunknown commented on May 18, 2024

Hi. I just updated the IFM. I implemented a check for this posix_* functions. If they are not available it shows not a user or group name but the user or group id. Unfortunately it is not possible to resolve the user name on windows systems. I hope that your problems are solved now.

from ifm.

jezikk82 avatar jezikk82 commented on May 18, 2024

i'll check it and let you know.

from ifm.

misterunknown avatar misterunknown commented on May 18, 2024

I guess this issue can be closed.

from ifm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.