Advanced Permissions

Permalink
I think the pictures can better express what's happening to me.

When I try to authorize a group, in addition to the administrator, for the home page editing the loading wheel runs infinitely and does not update the system.

I need to fix the problem quickly, someone can help me, thank you.


Environment Information

# concrete5 Version
5.6.3.1

# concrete5 Packages
Bootswatch (0.9.1), Content+ (1.2), Expand / Collapse (1.2.6), Facebook Like Button (1.1), Formigo Social Links (1.0), Google Map (Premium) (2.1), Instant CSS (1.0), Instant JavaScript (1.0.1), Internationalization (1.3), Login (1.1.1), Manual Nav (1.3), PC5 Custom Templates (3.5), Popup Login (1.0.5), VideoJS Player (1.0.2), Whale Nivo Image Slider (1.2).

# concrete5 Overrides
js/ccm.app.js, languages/ar, languages/cs_CZ, languages/da_DK, languages/de_DE, languages/el_GR, languages/es_AR, languages/es_ES, languages/es_MX, languages/es_PE, languages/fa_IR, languages/fi_FI, languages/fr_FR, languages/he_IL, languages/it_IT, languages/ja_JP, languages/nb_NO, languages/nl_NL, languages/pt_PT, languages/ro_RO, languages/ru_RU, languages/sk_SK, languages/sl_SI, languages/sv_SE, languages/tr_TR, languages/vi_VN, languages/zh_CN, languages/zh_TW

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.5.38

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, soap, SourceGuardian, SPL, sqlite3, standard, tidy, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib.

# PHP Settings
max_execution_time - 120
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 30M
sql.safe_mode - Off
upload_max_filesize - 25M
mysql.max_links - Unlimited
mysql.max_persistent - 10
mysqli.max_links - Unlimited
mysqli.max_persistent - 10
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5

6 Attachments

wells
 
Cahueya replied on at Permalink Reply
Can you run that process while watching the dev console in Chrome? This might display some more errors.

I've seen similar problems on a 5.6 page some years ago because of a Javascript conflict.
wells replied on at Permalink Reply
wells
[Error] Failed to load resource: the server responded with a status of 403 (Forbidden) (bg_header.png, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (htmlsfondo2.png, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (htmlsfondo2.png, line 0)
[Error] Error: only one instance of babel-polyfill is allowed
(funzione anonima) (injected.entry.js:64)
(funzione anonima) (injected.entry.js:83)
__webpack_require__ (injected.entry.js:20)
(funzione anonima) (injected.entry.js:47)
__webpack_require__ (injected.entry.js:20)
(funzione anonima) (injected.entry.js:40)
Codice globale (injected.entry.js:41)
close
(funzione anonima) (wblib.jgz:1:243374)
fire (wblib.jgz:1:44162)
fireWith (wblib.jgz:1:45446)
done (wblib.jgz:1:133552)
onreadystatechange (wblib.jgz:1:140800)
[Error] SyntaxError: Can't create duplicate variable: 'kService_Baidu'
close (wblib.jgz:1:243374)
(funzione anonima) (wblib.jgz:1:243374)
fire (wblib.jgz:1:44162)
fireWith (wblib.jgz:1:45446)
done (wblib.jgz:1:133552)
onreadystatechange (wblib.jgz:1:140800)
[Error] SyntaxError: Can't create duplicate variable: 'injectSnippetFloaterRootId'
close (wblib.jgz:1:243374)
(funzione anonima) (wblib.jgz:1:243374)
fire (wblib.jgz:1:44162)
fireWith (wblib.jgz:1:45446)
done (wblib.jgz:1:133552)
onreadystatechange (wblib.jgz:1:140800)
[Error] Error: only one instance of babel-polyfill is allowed
(funzione anonima) (injected.entry.js:64)
(funzione anonima) (injected.entry.js:83)
__webpack_require__ (injected.entry.js:20)
(funzione anonima) (injected.entry.js:47)
__webpack_require__ (injected.entry.js:20)
(funzione anonima) (injected.entry.js:40)
Codice globale (injected.entry.js:41)
close
(funzione anonima) (wblib.jgz:1:257541)
fire (wblib.jgz:1:44162)
fireWith (wblib.jgz:1:45446)
done (wblib.jgz:1:133552)
onreadystatechange (wblib.jgz:1:140800)
[Error] SyntaxError: Can't create duplicate variable: 'kService_Baidu'
close (wblib.jgz:1:257541)
(funzione anonima) (wblib.jgz:1:257541)
fire (wblib.jgz:1:44162)
fireWith (wblib.jgz:1:45446)
done (wblib.jgz:1:133552)
onreadystatechange (wblib.jgz:1:140800)
[Error] SyntaxError: Can't create duplicate variable: 'injectSnippetFloaterRootId'
close (wblib.jgz:1:257541)
(funzione anonima) (wblib.jgz:1:257541)
fire (wblib.jgz:1:44162)
fireWith (wblib.jgz:1:45446)
done (wblib.jgz:1:133552)
onreadystatechange (wblib.jgz:1:140800)
[Error] Failed to load resource: the server responded with a status of 403 (Forbidden) (bg_header.png, line 0)
[Error] Refused to display 'https://www.facebook.com/xti.php?xt=AZUYbU6Yte9geQLho1osi4dg5XRQTIFejukWiTk_XfZtcJCGYm9zsJrCbhAy-G5T66jahMf7edH2J1JvRu0DtjJ-d9Sw3C40Gj4bjJW9442ofea0XSwkUNIM0uXcfLw--z2WQfkqY2Ek-v-uE4J5jzXUk-3bbyfoXp6CRXy5QmeWlg&isv=1&cts=1508060048&csp' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
wells replied on at Permalink Reply
wells
Help me, please!
mnakalay replied on at Permalink Reply
mnakalay
You have lots of error that seem to come from plugins installed into your browser. It's not C5 related but browser related but it can break C5 stuff since it's javascript errors.

For instance, you seem to have a plugin that is related to Baidu, the Chinese search engine.

Could you try in another browser and see if it solves the problem?
wells replied on at Permalink Reply
wells
I've tried in several ways but nothing happens.
I would like to know if you can add this setting directly from code.
Which file should i modify and how, i need to add a command to the database, where and what?
mnakalay replied on at Permalink Reply
mnakalay
I wouldn't advise you do that as you are ignoring something that might pose more problems later on. You are basically getting ready to keep a website that doesn't work properly. It will come back with a vengeance eventually.

Having said so, any code you put in application/bootstrap/app.php will run on every page load so you can put code there and here's some doc that can help you:
https://documentation.concrete5.org/developers/permissions-access-se...
https://documentation.concrete5.org/developers/appendix/full-permiss...
Cahueya replied on at Permalink Reply
@mnakalay
He's running 5.6.3.1 so the config values should go to /config/site.php

something like
define('PERMISSION_MODEL', 'advanced');


should work, I am not sure.

But mnakalay is totally right, if you don't find the origin of these strange JS errors, you will have more problems! This looks very much like a browser plugin OR some strange "site optimization" hack that is inserted server-sideish through cPanel or something. And it will cause more problems because concrete5 relies on working JS !
mnakalay replied on at Permalink Reply
mnakalay
oups my bad, I forgot about that.

On the other hand defining advanced permissions is not his problem (if my Italian is correct).
His problem is when he tries to set permissions on some pages the spinner just keeps spinning and nothing happens.
wells replied on at Permalink Reply
wells
I would like to fix the errors, unfortunately I understand little about javascript and I would not know how to solve them. If someone is so kind to help me, I am willing to create an administrator user and send user and password.

But I should solve it by the weekend, otherwise I'm forced to give the customer access as an administrator, which I would avoid.

Thanks in advance.
mnakalay replied on at Permalink Reply
mnakalay
Are you looking for paid help or free help?

I'm willing to have a quick look and give you an evaluation if you want.

If that's something you'd like me to do you can just send me username and password by Private Message and I'll have a look tomorrow