- Posts: 28
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- K2 shows media manager if category image is not available
K2 shows media manager if category image is not available
- Farid
-
Topic Author
- Offline
- Junior Member
If user has logged in Joomla admin area, media manager works and if not it shows login form!
I think that's a security bug and needs fast consideration, or I've messed up somewhere which I don't think because I haven't touched even a single line of code in K2.
Please Log in or Create an account to join the conversation.
- JoomlaWorks Support Team
-
- Offline
- Elite Member
- Posts: 169
K2 media manager is available at frontend for a registered user but with no access for uploading or modifying any of the listed files - folders.
Please Log in or Create an account to join the conversation.
- Farid
-
Topic Author
- Offline
- Junior Member
- Posts: 28
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Please Log in or Create an account to join the conversation.
- Farid
-
Topic Author
- Offline
- Junior Member
- Posts: 28
Although I've changed some of K2 SEO configurations like not showing category ID in URL, etc.
Please Log in or Create an account to join the conversation.
- JoomlaWorks Support Team
-
- Offline
- Elite Member
- Posts: 169
Please Log in or Create an account to join the conversation.
- Farid
-
Topic Author
- Offline
- Junior Member
- Posts: 28
Please Log in or Create an account to join the conversation.
- Farid
-
Topic Author
- Offline
- Junior Member
- Posts: 28
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Both nginx and Apache threw 404 errors.
Can you share you htaccess file?
Is your site live?
Do you have a /media menu item?
Please Log in or Create an account to join the conversation.
- Farid
-
Topic Author
- Offline
- Junior Member
- Posts: 28
As I told you, I'm using default htaccess file on my local XAMPP which I found out about this problem.
I don't have a menu to media manager or anything like it
This is an example link using Nginx web server:
tourism.doctv.ir/media/k2/items/cache/94d43e327d9303539cb1e2aac7032668_M.jpg
I have other under development and live websites with same problem.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
This is a strange issue indeed. I noticed the issue on a IIS server (why anyone uses them is beyond me).
It is most likely related to how your rules treat 404 errors. Can you share your server's rules?
Please Log in or Create an account to join the conversation.
- Farid
-
Topic Author
- Offline
- Junior Member
- Posts: 28
Install a XAMPP server or WAMP (latest version) and then install a clean lastest version of Joomla and then K2, create a category and an item, and you can see the same problem.
My nginx config of the server of the link I provided to you is (sites-available/default):
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /var/www;
index index.php index.html index.htm;
server_name localhost;
client_max_body_size 256M;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
nginx.conf:
user www-data;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 768;
}
http {
disable_symlinks off;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
client_max_body_size 256m;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log notice;
gzip on;
gzip_disable "msie6";
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
I will look at these rules and let you know.
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- K2 shows media manager if category image is not available