Page 2 of 2

Re: Multiple Add Problem

Posted: 08 Feb 2021, 18:05
by christine
Hi,
Kordian wrote: 08 Feb 2021, 16:32 Thank you, I am administering the server and do not know what to activate or not.
Why own server and which one?
As mentioned, everything is working and the server is more or less protected.
against what?

Image: https://www.phoca.cz/documents/50-phoca ... forum-post

Could you show us the configuration.php? (remove sensitive data)

Kind regards
Christine

Re: Multiple Add Problem

Posted: 08 Feb 2021, 18:12
by Jan
Hi, in fact, there is nothing to solve. The upload feature just needs the Javascript libraries and the server just does not allow load them ([HTTP/1.1 403 Forbidden 191ms]) Because Javascript cannot affect server itself as Javascript is running in browser, I would say, this is not some security limit. But really hard to say. If you manage the server, just see some log or settings or limit to detect, why the Javascript files cannot be accessed. In fact it has nothing to do with Phoca Gallery - it is just an issue that some feature needs to load JS file but server does not allow it. So really no clue advice as this is managed by server not by Joomla or Phoca Gallery. Server just decides that it will not allow to load some Javascritp. Why? Hard to say, a question on server settings/limits/logs :idea:

Jan

Re: Multiple Add Problem

Posted: 09 Feb 2021, 09:28
by Kordian
christine wrote: 08 Feb 2021, 18:05
Why own server and which one?
Well, you need a server to serve things on internet... You want to know the make and model???
against what?
Well, there are hackers on this planet.
Could you show us the configuration.php? (remove sensitive data)
Just a moment...

Code: Select all

<?php
class JConfig {
	public $MetaAuthor = '1';
	public $MetaDesc = '';
	public $MetaKeys = '';
	public $MetaRights = '';
	public $MetaTitle = '1';
	public $MetaVersion = '0';
	public $access = '1';
	public $cache_handler = 'file';
	public $cachetime = '15';
	public $caching = '0';
	public $captcha = '0';
	public $cookie_domain = '';
	public $cookie_path = '';
	public $db = '';
	public $dbprefix = '';
	public $dbtype = 'mysqli';
	public $debug = '0';
	public $debug_lang = '0';
	public $display_offline_message = '1';
	public $editor = 'tinymce';
	public $error_reporting = 'default';
	public $feed_email = 'author';
	public $feed_limit = '10';
	public $force_ssl = '2';
	public $fromname = '';
	public $ftp_enable = '0';
	public $ftp_host = '127.0.0.1';
	public $ftp_port = '21';
	public $ftp_root = '';
	public $ftp_user = '';
	public $gzip = '0';
	public $helpurl = '';
	public $host = 'localhost';
	public $lifetime = '15';
	public $list_limit = '20';
	public $live_site = '';
	public $log_path = '/log';
	public $mailer = 'smtp';
	public $mailfrom = '';
	public $memcache_compress = '0';
	public $memcache_persist = '1';
	public $memcache_server_host = 'localhost';
	public $memcache_server_port = '11211';
	public $offline = '0';
	public $offline_image = '';
	public $offline_message = '';
	public $offset = 'Europe/Warsaw';
	public $offset_user = 'UTC';
	public $password = '';
	public $robots = '';
	public $secret = '';
	public $sef = '1';
	public $sef_rewrite = '1';
	public $sef_suffix = '0';
	public $sendmail = '/usr/sbin/sendmail';
	public $session_handler = 'database';
	public $sitename = '';
	public $sitename_pagetitles = '1';
	public $smtpauth = '1';
	public $smtphost = '';
	public $smtppass = '';
	public $smtpport = '445';
	public $smtpsecure = 'ssl';
	public $smtpuser = '';
	public $tmp_path = '/htdocs/tmp';
	public $unicodeslugs = '0';
	public $user = '';
	public $legacy = '0';
	public $xmlrpc_server = '1';
	public $debug_db = '0';
	public $memcached_persist = '1';
	public $memcached_compress = '0';
	public $memcached_server_host = 'localhost';
	public $memcached_server_port = '11211';
	public $redis_persist = '1';
	public $redis_server_host = 'localhost';
	public $redis_server_port = '6379';
	public $redis_server_db = '0';
	public $cache_platformprefix = '0';
	public $proxy_enable = '0';
	public $proxy_host = '';
	public $proxy_port = '';
	public $proxy_user = '';
	public $proxy_pass = '';
	public $mailonline = '1';
	public $massmailoff = '0';
	public $replyto = '';
	public $replytoname = '';
	public $session_memcache_server_host = 'localhost';
	public $session_memcache_server_port = '11211';
	public $session_memcached_server_host = 'localhost';
	public $session_memcached_server_port = '11211';
	public $session_redis_persist = '1';
	public $session_redis_server_host = 'localhost';
	public $session_redis_server_port = '6379';
	public $session_redis_server_db = '0';
	public $shared_session = '0';
	public $frontediting = '1';
	public $asset_id = '1';
	public $debug_lang_const = '1';
}

Re: Multiple Add Problem

Posted: 09 Feb 2021, 09:50
by Kordian
Jan wrote: 08 Feb 2021, 18:12 Hi, in fact, there is nothing to solve. The upload feature just needs the Javascript libraries and the server just does not allow load them ([HTTP/1.1 403 Forbidden 191ms]) Because Javascript cannot affect server itself as Javascript is running in browser, I would say, this is not some security limit. But really hard to say. If you manage the server, just see some log or settings or limit to detect, why the Javascript files cannot be accessed. In fact it has nothing to do with Phoca Gallery - it is just an issue that some feature needs to load JS file but server does not allow it. So really no clue advice as this is managed by server not by Joomla or Phoca Gallery. Server just decides that it will not allow to load some Javascritp. Why? Hard to say, a question on server settings/limits/logs :idea:

Jan
Hi, sorry, but since you claim, that javascript runs on client side, then it should not matter what the server allows.
Furthermore, there has to be some settings in the client's browser that allows/disallows it.

Re: Multiple Add Problem

Posted: 10 Feb 2021, 01:42
by Jan
Hi, this is the flow of my ideas

- the problem: multiple add not working
- mostly this is caused by some javascript error or conflict - if some JS code is broken, then the whole feature does not work
- in this topic, we have some help information like this:

Code: Select all

[HTTP/1.1 403 Forbidden 191ms]
GEThttps://xxx/media/com_phocagallery/js/plupload/jquery.plupload.queue/jquery.plupload.queue.js?aa3ec197aa519eddb63fbe28d347c4c8
- so this can be the reason for the problem - it can be - when we solve this problem then we will see if this was the problem or there is another problem

- so the question: Do you still get this error messages? If yes, first try to solve this problem and then we will see if this was the problem or there is another problem.

- what I wanted to say with my previous post: If the server does not allow to run some files - in this case e.g. Javascript file, then the problem has nothing to do with Joomla or Phoca Gallery. The problem is to detect why server does not allow to run these files. When this will be known, then:

a) this will solve the problem
b) or we can try to look further

But first, we need to know why the server does not allow to load the scripts and unfortunately, because Joomla! or Phoca Gallery cannot do such limitation like preventing from loading some script, it needs to be checked on server side, not on program side.
Hi, sorry, but since you claim, that javascript runs on client side, then it should not matter what the server allows.
Furthermore, there has to be some settings in the client's browser that allows/disallows it.
I don't claim anything, I just wrote my thoughts, I am not server expert so what I wrote, was may thoughts about some possible limit on server - I really don't know the server, I just write my thoughts which can somehow help you to solve the problems

So, my thougts, if server response is 403, it is probably done by server - this is not a feature of program like Joomla or Phoca Gallery - so first it needs to be checked the server, of course if you think, it can be done by browser, even browser should be checked. These are my thoughts, not my claim - thoughts which maybe can help you to find the right place where to look :idea:

Jan