Hi,
I am having the same problem but I don’t know how to comment out a line. Can you please write it here so that I can copy and paste it to my config file?
Thanks
Hi,
I am having the same problem but I don’t know how to comment out a line. Can you please write it here so that I can copy and paste it to my config file?
Thanks
Lines starting with ; are commented out (by default it is commented out). Bear in mind: while this can be a solution for this problem it’s not a sure bet. MIME type recognition is more or less just a guessing game and accuracy depends on a system’s (or PHP’s) database file. The order of used recognition methods was changed in OJS 3.x so it’s unclear which method fails.
You could try to “compress” css files. That often solves the issue.
OJS 3.0.2 PHP 5.5 trying to upload the theme.css file described in the mpg OJS 3 custom responsive theme.
run into the same problem, cannot upload this file. Have commented out the following line in the site config file.
;mime_database_path = /etc/magic.mime
and cannot upload the css file that I’ve named theme.css.
I’ve checked that the file has no comments at the top, and have checked there are no tabs in the file.
Any ideas welcome
Hi Alec
We have the same problem here (local and on server). In which folder custom css are loaded? I’ll put the file there manually. Thanks.
Best
Jan
Hi @trace,
CSS files are stored within specific subdirectories in the public
directory, but just putting the file there will not be enough – the database will need to point to it. I’d suggest figuring out why your CSS documents aren’t being detected properly.
Regards,
Alec Smecher
Public Knowledge Project Team
To “uncomment” ;mime_database_path = /etc/magic.mime in the config file resolved the problem. (Deletion of the semicolon).
@asmecher and everyone else. My journal has been peaceful but not anymore after upgrading to OJS 3.1.0 build 1. Images cannot upload…
My mimetype settings is:
;mime_database_path = /etc/mime.types
mime_database_path = /etc/magic.mime
The one that is commented was working b4 upgrade… now none of them works
Hi @otuya1,
This thread is about CSS and your question is about images; can you post as a new topic? Include the version you upgraded from. Check the usual suspects like file permissions; there are FAQ questions about these.
Regards,
Alec Smecher
Public Knowledge Project Team
Hi friends
While remanaging our site, went over this issue and found that the css file must contain pure css code. Without any comment.
Best regards
Mouseonthemoon
I have the same problem if you find the solution, please share it with me.
hi @Pandora_ramin CSS or Images? mine was Images and had it fixed by defining path to mimetypes in Config file. It is my hosting provider who provided me with the correct path to mimetypes
It does not let me upload any images or .css files in both shows me this message.
Please, if you find the solution, share it with me.
hi … i dont understand that language. Can you set your language to English please?, maybe i can help
I try to upload an image for the logo and the message appears:
“The file could not be uploaded, please try again or contact the administrator if the problem persists”
The same message appears when I want to upload a .css file.
I have installed the OJS 3…1.1.
I have reviewed the folders’ persmises and it is not solved, I have also checked that the path of mimetypes is in comments and nothing solves the problem.
Some people have faced this problem due to various reasons:
Check and see if you are affected by any of those.
Thank you very much for your help and sorry my english.In reference to the possible solutions:
1.- permissions This is fine 777
2.-Disk spaces I have unlimited space
3.- having not installed native php My PHP is 5.6.36
4.- and set the right path to mime types. This path as I get it because I have searched my server and can not find any file that is .mime And this is the last solution I have to try. I desesperated.
for right path, you need to ask your hosting service provider.
for my case… my hosting had to install the following for me.
and my journal now works well Stratford Journals
Hi all,
@Pandora_ramin, note that 777 permissions are never safe to use in production – though they can be useful for testing.
What does your mime_database_path
setting in config.inc.php
currently look like?
Are you able to upload images to the various image fields e.g. for logos and covers?
Regards,
Alec Smecher
Public Knowledge Project Team
What does your mime_database_path
setting in config.inc.php
currently look like?
If I already reviewed this, what I do not know is which is the path where the .mime file is located on my server. I searched for it and could not find the magic.mime file.
Are you able to upload images to the various image fields e.g. for logos and covers?
When I try to upload an image for the logo I get the message that I have indicated, the same message appears when I want to upload the .css file. If I tried to upload images of different sizes.
What has allowed me to upload an image on the footer.