Keyword

K2 shows media manager if category image is not available

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #154191 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 shows media manager if category image is not available
This one demo.nuevvo.com/sites/j3x/radiowave/media/k2/items/cache/c889234799e865bbe90cee71f6cd2e53_XL.jpg and this one www.joomlaworks.net/media/k2/items/cache/47359a90eed3ee35f2dab5a3c718abb3_L.jpg?t=1461688251 do not produce this issue (both on nginx too). I also tried it in different sites with the same result.

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?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Farid
  • Farid's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 11 months ago - 7 years 11 months ago #154202 by Farid
I'm not sure about IIS, but if do this scenario, you can actually face similar problem:
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/*;
}
Last edit: 7 years 11 months ago by Farid.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 11 months ago #154247 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 shows media manager if category image is not available
Under MAMP (no XAMPP sorry) it is also generating 404 errors as it should.

I will look at these rules and let you know.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum