Open shifasiddeqque opened 3 years ago
Just for curiosity's sake, what PHP and MySQL versions are you using with that project, and what versions do you have locally, where you say that it's working fine? What do you get in the logs?
@GwynethLlewelyn Thank you so much for the reply,
it worked now, but i am getting a new issue as images are not getting populated, Do you have any idea about that?? All images are present if i see the folder, However on inspecting i am getting 403 error , attaching screenshot
For your knowledge i am using PHP 7.3 (ea-php73) Sql 5.7.23-23(After Running this query SHOW VARIABLES LIKE "%version%")
i am attaching screenshots
if you can help I will be highly grateful
Well, the most important thing is that dotProject works 😸
As for the images, my guess is that something changed on your web server, and now, for some reason, the directory with the files is deliberately set to be off-limits. In other words: it's possible that the image files are all there, in the right place, but the web server was configured to explicitly forbid access to that directory. Usually, the more likely reason is bad permissions/ownership (either on the directory, on the files themselves, or both).
What do the web server logs say?
I forgot to ask what web server you're using; if by any chance you've got nginx
installed, if you get an error message such as:
[error] 123456#123456: *98765 access forbidden by rule, client: 192.168.0.1, server: your.server.name request: "GET /images/icons/stock_edit-16.png HTTP/1.1", host: "your.server.name"
this is a sign that you have something in the configuration that deliberately disallows access to the images
directory (numbers are made up).
Try the following:
Inside /images/icons/
you should have a file called images.html
. What happens on the browser when you go to http://your.server.name/images/icons/index.html
? Ordinarily, it just shows a blank page (you can write a few things on that file, just to make sure you're getting the 'right' file). If you get the same Forbidden (403)
error, then it's clear that there must be a rule in your web server configuration explicitly forbidding access to that directory.
If you get index.html
to display without any errors ('forbidden' or otherwise), but cannot display any of the images inside that directory when manually typing their name on the browser, and all have the same permissions and ownership — then it would seem that the web server has a rule forbidding images to be shown... at least, .png
and .jpg
. This is rather unusual, but it might be worth taking a look!
Also: is your web server directly accessible from the 'outside world', or do you have some sort of reverse proxy/http accelerator/CDN in front of your web server? If so, are you able to access the server directly via the internal network (e.g. eventually typing its local, private IP address instead of the server name)? That would mean that whatever issues you've got with the images are tied to whatever server/service you've got running in front of your web server. This would be more common.
Finally: are you able to upload images/documents via dotProject, and then retrieve them again? If not, then there really must be an issue with your directory setup — dotProject is not figuring out correctly where the files are supposed to be, and/or there are some permission/ownership issues along the way.
... oh, and for good measure, clear the cache in dotProject 😄 It's always worth doing that before testing anything else... 😉
Good luck...
Thank you so much for such a neat clarification @GwynethLlewelyn , it worked
But I am getting one more issue, While trying to click on the issue attachment, it is giving me error
Warning: Use of undefined constant LOCALE_FIRST_DAY - assumed 'LOCALE_FIRST_DAY' (this will throw an Error in a future version of PHP) in ../pm/classes/date.class.php on line 10
Warning: Cannot modify header information - headers already sent by (output started at ..pm/classes/date.class.php:10) in ./pm/classes/ui.class.php on line 585
and if i comment out the said line in date.class.php, it is then giving error "| fileIdError -- | --"
Help would be highly appreciated
Many thanx once again
Yay! I'm glad you sorted that out! 👍
As for your other issue, I believe that this is the same as #158 — take a look at my solution there and see if it works for you.
I have upgraded Dotproject to a newer version (2.2.0) but while i point dot project to my old DB(even not working with the existing db which got created during installation), i am not able to login, redirecting me to the same login page again and again despite the correct password, Please help
40 #153 #157 #133
edit: The project is working Locally, i ran the project in different php version and is working fine