-
Notifications
You must be signed in to change notification settings - Fork 152
JS error when setting admin groups permmissions #269
Comments
Just updated to 5.1.1 stalker_portal/server/adm/admins/save-admins-group-permissions 500 (Internal Server Error) |
Please check apache error log. |
HI. Here is the error from the error log... /var/log/apache2/stalker_portal-error.log [Wed Mar 01 13:32:17.572374 2017] [:error] [pid 12515] [client 127.0.0.1:60440] Query failed by reason : Column count doesn't match value count at row 14 (INSERT INTO adm_grp_action_access ( |
Please replace file /stalker_portal/admin/src/Model/AdminsModel.php on this https://gist.githubusercontent.com/massiw/f2db5e85b9ef6d2639ff6e9f51fab70a/raw/361e098a8653616f5743e1a6e9472c9a71fc437f/AdminsModel.php |
Two errors with one click on the save button [Wed Mar 01 18:22:34.923504 2017] [:error] [pid 12515] [client 127.0.0.1:37770] Query failed by reason : Unknown column '1' in 'field list' (INSERT INTO adm_grp_action_access ( |
Here is another fix /stalker_portal/admin/src/Model/AdminsModel.php -> https://gist.githubusercontent.com/massiw/0cdb4aea5b3019920dd4ee06ea0eebfb/raw/f21d84f99b63ea8bd7c488a1c87a83501b12ff11/AdminsModel.php /stalker_portal/admin/src/Controller/AdminsController.php -> https://gist.githubusercontent.com/massiw/0cdb4aea5b3019920dd4ee06ea0eebfb/raw/f21d84f99b63ea8bd7c488a1c87a83501b12ff11/AdminsController.php |
[Fri Mar 03 02:03:48.861500 2017] [:error] [pid 18598] [client 127.0.0.1:49260] PHP Warning: trim() expects parameter 1 to be string, array given in /var/www/stalker_portal/server/lib/core/mysql.class.php on line 880, referer: http://10.0.0.99/stalker_portal/server/adm/admins/admins-groups-permissions?id=12 |
Unfortunately we were not able to reproduce the problem. Please describe step by step your actions, attached screenshots can also help. |
I made a fresh install on a brand new server, and all works. I will now try to copy the database from the broken one to the new working server and see if the problem comes from broken database. It is not a major bug and probably it's just a one time error , but even so if someone else has the same problem, try a fresh install. |
v5.1.0
New admin interface: adm/admins/admins-groups-permissions
Trying to set a new admin group permmission returns js error:
jquery-2.1.0.min.js:4 POST http://10.0.0.99/stalker_portal/server/adm/admins/save-admins-group-permissions 500 (Internal Server Error)
send @ jquery-2.1.0.min.js:4
ajax @ jquery-2.1.0.min.js:4
ajaxPostSend @ devoops.js?ver=5.1.0:702
(anonymous) @ admins-groups-permissions?id=14:12404
dispatch @ jquery-2.1.0.min.js:3
r.handle @ jquery-2.1.0.min.js:3
The text was updated successfully, but these errors were encountered: