-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP Error log not available. #1770
Comments
This comment was marked as abuse.
This comment was marked as abuse.
I think everyone sees it .... but everyone's target platform architecture can be different. So the best that can be recommended is to refer to your platform's documentation as to how to achieve this or that. When I develop on my laptop the error log is under my wamp logs folder. I doubt that knowledge would be helpful to you (unless you are running under the wamp platform which isn't very likely). When I installed the first time I was a bit confused by the architecture because I had never installed anything before where the library folders weren't dropped into the public root folder. But the intent of OSPOS (justifiably so for improved security) is that the library folders are dropped a level higher. In that way I don't have to play any games with the rewrite. You aren't forced to do that but that is where you would need to play games with the rewrite. I installed it that way once but it took 2 or 3 retries to get the rewrite changes correct (plus I wanted it running under a virtual subdomain which added a bit more complexity to the goal). I think the message is probably true for the configuration of the original developer so it should be corrected to be less specific. |
I assumed that when it states that it is written to the OSPOS public folder that it would be there. I have a couple Ubuntu servers and can not locate it there either. |
If it says it should be there then I would assume it would be there too. I think in most cases the person doing the installation can configure the error log to be dropped anywhere on the system. On a hosted site I think it is usually in the folder just above the public folder but I'm sure that is dependent on the preference of the hosting services. A public folder is a terrible place for an error log (for reasons of security). |
This comment was marked as abuse.
This comment was marked as abuse.
error_log under opensourcepos/public folder. It's a PHP thing, please make sure you have not disabled it at PHP configuration level. |
Really? Let me be very clear. Bad attitude gets zip, zero, nada free support from me. |
BTW .htaccess (that useless thing full of stuff...) protects error_log:
and this even prevents somebody to see if it's there:
haaaa useless stuff all hardcoded |
This comment was marked as abuse.
This comment was marked as abuse.
Hi Guys, i am trying hard to install it in XAMPP on my local machine but every time i get same creepy error. i.e. When i dig deep further, i've realised that it requires some php extension, which apparently i've installed all but not "mcrypt". Since my php version is 7.2 and PHP has removed this extension decade ago :( I expect this is the only reason i am not able to log-in. (fingers crossed). My concern is if this extension is dead long ago, why are we still using it in this application? in last, i would humbly request, if one of the moderators be kind enough to write step by step guide for development. So that upcoming guys do not suffer from this nasty error. i apologize for my harsh language,if it hurt anybody out there! Looking forward hearing from you soon! |
This comment was marked as abuse.
This comment was marked as abuse.
@mckaygerhard : Thank you for your prompt response. i am still concerned is there any compatible xampp version using which i can be able to run it locally? |
This comment was marked as abuse.
This comment was marked as abuse.
@aamiritsu Yes, probably PHP 7.2 is not supported due to that issue. |
WRT XAMPP that has been discussed again and again, but the point is that I don't use windows and use Ubuntu for development and CentOS for deployment. |
OK, I read the following: https://www.codeigniter.com/user_guide/libraries/encryption.html |
@daN4cat: I appreciate your feedback. I did not mean to hurt you / any of contributors. |
@aamiritsu no it's not you, don't worry. And actually thank you for the hint because I missed this point in PHP7.2. So it's now fixed and in master as 3.2.0. (Since bintray seems broken, you can take the full installation from my GitHub: https://github.com/daN4cat/opensourcepos) |
BTW... @mckaygerhard you must clarify this statement now |
This comment was marked as abuse.
This comment was marked as abuse.
@mckaygerhard to be clear the "hardcoded" expression didn't go down well, so please refrain from expressing similar things and control your language and manners! |
@odiea You are probably already aware of these, but I thought I'd mention it here since it seems relevant. In my php.ini file there is a directive setting shown below that establishes where the php error log will be found. I think this is the error log being referred to in the issue. This explains why this particular error log isn't found in the public folder (in my environment).
Under httpd.config I can find the directives for two more logs which have been less useful to me but were helpful in debugging my url rewrite changes.
In config.php we can also set where database logging takes place. Leaving it blank will default the location to .../application/logs. It also needs to be enabled before any logging actually takes place. I used this quite a bit in my first explorations in order to understand the database.
|
Thanks @SteveIreland I'll copy and paste it in the FAQ so we have a clear explanation. Or maybe create a wiki page and I reference it from FAQ. That would be even better. |
I'l create a wiki page on the subject of logging (I've been wanting to explore this further anyway) and flesh it out a bit further. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I know this issue is old but I had the same problem and I fixed it by Although I should note that the user name for whatever LAMP/LEMP stack you're using might be different, so do a P.S. I never had an issue with logging on my windows configuration so permission probably does not apply there, but good luck! Installation information
|
Thanks for the late reply. My issue was not enabling error reporting in the config file. After that all went well. |
No problem, this is just for whoever might be having the same issue to try this solution. |
Background information
IMPORTANT: If you choose to ignore this issue report template, your issue will be closed as we cannot help without the requested information.
Please make sure you tick (add an x between the square brackets with no spaces) the following check boxes:
Installation information
Issue / Question
If at login time you read "The installation is not correct, check your php.ini file.", please check the error_log in public folder to understand what's wrong. Any PHP extension related issue is due to one of the point below.
I cannot find any error log in the public folder nor can I see any error logs in the application/logs folder.
The text was updated successfully, but these errors were encountered: