Error Accessing Search Users on site restored to new server
Permalink
I have moved a Concrete5 site from one server to another.
I did a fresh install on the new server copied over all the /files, /themes, /blocks, /packages directories and restored the database from a backup.
The site is working fine and the dashboard is working. However when I access the 'Search Users' section I get this error
An unexpected error occurred.
Unable to get permission key for access_user_search_export
I did a fresh install on the new server copied over all the /files, /themes, /blocks, /packages directories and restored the database from a backup.
The site is working fine and the dashboard is working. However when I access the 'Search Users' section I get this error
An unexpected error occurred.
Unable to get permission key for access_user_search_export
Hi,
I've had a look at the link provided and have checked the permissions on the folders are as it suggests.
The folder permissions look to be fine and I am still recieving the error
If click on a user I get the user detail page just fine and I can change user details like the password.
The problem seems to be located on the search users page only.
If I ask the search users page to display more users per page I get this error.
Thanks
Nat
I've had a look at the link provided and have checked the permissions on the folders are as it suggests.
The folder permissions look to be fine and I am still recieving the error
Unable to get permission key for access_user_search_export
If click on a user I get the user detail page just fine and I can change user details like the password.
The problem seems to be located on the search users page only.
If I ask the search users page to display more users per page I get this error.
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/beck.yorserve.co.uk/lleynsheep.com/updates/concrete5.6.3.1_updater/concrete/elements/users/search_results.php:93) in /var/www/vhosts/beck.yorserve.co.uk/lleynsheep.com/updates/concrete5.6.3.1_updater/concrete/core/libraries/view.php on line 644
Thanks
Nat
I'm experiencing the same error after moving a Concrete 5.6.3.1 site to a new server.
The full log message is:
The full log message is:
Exception Occurred: /var/www/concrete/core/models/permissions.php:73 Unable to get permission key for access_user_search_export (0) #0 /var/www/concrete/elements/users/search_results.php(124): Concrete5_Model_Permissions->__call('canAccessUserSe...', Array) #1 /var/www/concrete/elements/users/search_results.php(124): TaskPermission->canAccessUserSearchExport() #2 /var/www/concrete/core/libraries/loader.php(92): include('/var/www/concre...') #3 /var/www/concrete/single_pages/dashboard/users/search.php(600): Concrete5_Library_Loader->element('users/search_re...', Array) #4 /var/www/concrete/core/libraries/view.php(936): include('/var/www/concre...') #5 /var/www/concrete/dispatcher.php(264): Concrete5_Library_View->render(Object(Page)) #6 /var/www/index.php(2): require('/var/www/concre...') #7 {main}
+1 with this same problem. Has anyone resolved this?
Same here on two sites, different hosting environments.
### EDIT ###
Quick fix for now,
/concrete/elements/users/search_results.php, r124, comment out the if statement
Dont't use it if you've set certain permissions for user access!!
### EDIT ###
Quick fix for now,
/concrete/elements/users/search_results.php, r124, comment out the if statement
Dont't use it if you've set certain permissions for user access!!
<?php $tp = new TaskPermission(); // if ($tp->canAccessUserSearchExport()) { ?> <div id="ccm-export-results-wrapper"> <a id="ccm-export-results" href="javascript:void(0)" onclick="$('#ccm-user-advanced-search').attr('action', '<?php echo REL_DIR_FILES_TOOLS_REQUIRED?>/users/search_results_export'); $('#ccm-user-advanced-search').get(0).submit(); $('#ccm-user-advanced-search').attr('action', '<?php echo REL_DIR_FILES_TOOLS_REQUIRED?>/users/search_results');"><span></span><?php echo t('Export')?></a> </div> <?php //} ?>
You can run this query on your site's database to fix the problem:
-Jordan
INSERT INTO `PermissionKeys` (`pkID`, `pkHandle`, `pkName`, `pkCanTriggerWorkflow`, `pkHasCustomClass`, `pkDescription`, `pkCategoryID`, `pkgID`) VALUES (72, 'access_user_search_export', 'Export Site Users', 0, 0, 'Controls whether a user can export site users or not', 5, 0);
-Jordan
Hi Jordan,
on my latest websites i have the same problem. i also can't save changes like update an avatar and save settings.
When i run the query on the database i get this message:
import.php:Missing parameter:import_type
import.php:Missing parameter:format
any clue on that?
thanks for your time, Mieke
on my latest websites i have the same problem. i also can't save changes like update an avatar and save settings.
When i run the query on the database i get this message:
import.php:Missing parameter:import_type
import.php:Missing parameter:format
any clue on that?
thanks for your time, Mieke
Looks like you did not ran the upgrade script athttp://<your site url>/index.php/tools/required/upgrade.
This is the correct answer. If your database has not been updated to the same version as C5 core this error is thrown. Somewhere between v6.2.1 and v6.3.4 `access_user_search_export` (and possibly other settings) must have been added.
Anyone feel like digging through changelogs? ;)
Anyone feel like digging through changelogs? ;)
Did you set the permissions on the directories as detailed here?:
http://www.concrete5.org/documentation/installation/installing_conc...