Forum

Thread tagged as: Question, Error

Can't save existing or create new roles

Hi,

I have a site (hosted with a 3rd party) where I can't edit existing or create new roles. When I 'Save Changes' I get a HTTP ERROR 500. I can create users and edit content without issue. An ideas?

Perch: 2.8.34, PHP: 7.0.24, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.34), assets (2.8.34), categories (2.8.34), perch_forms (1.8.3)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_forms', );
PERCH_LOGINPATH: /admin
PERCH_PATH: /home/sitename/public_html/admin
PERCH_CORE: /home/sitename/public_html/admin/core
PERCH_RESFILEPATH: /home/sitename/public_html/admin/resources
Image manipulation: GD
PHP limits: Max upload 10M, Max POST 8M, Memory: 256M, Total max file upload: 8M
F1: 6a33f95eca3667f9e0c39bf5ca2980fe
Resource folder writeable: Yes
HTTP_HOST: www.sitename.co.uk
DOCUMENT_ROOT: /home/sitename/public_html
REQUEST_URI: /admin/core/settings/diagnostics/
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
Andy Knight

Andy Knight 1 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you checked your error log?

Hi Drew,

All I can see are old errors, probably from when I ran the 2.8.34 update to see if that fixed the issue.

[06-Oct-2017 15:31:46 UTC] PHP Warning:  include(/home/sitename/public_html/admin/core/runtime/runtime.php): failed to open stream: No such file or directory in /home/sitename/public_html/admin/runtime.php on line 2
[06-Oct-2017 15:31:46 UTC] PHP Warning:  include(): Failed opening '/home/sitename/public_html/admin/core/runtime/runtime.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/sitename/public_html/admin/runtime.php on line 2
[06-Oct-2017 15:31:46 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function perch_content_custom() in /home/sitename/public_html/availability-and-floorplans.php:71
Stack trace:
#0 {main}
  thrown in /home/sitename/public_html/availability-and-floorplans.php on line 71
Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you tried causing the error again to get a new log entry?

Yes, today but nothing gets logged....

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Then you need to find out why PHP isn't logging as if you are getting a 500 error, you have an error. You won't be able to diagnose it until you can see what it is.

Hi Rachel/Drew,

Finally managed to get access to the log files...assuming this points to a missing php extension?

[07-Nov-2017 10:59:40 Europe/London] PHP Fatal error:  Uncaught Error: Call to undefined function iconv() in /home/sitename/public_html/admin/core/lib/PerchUtil.class.php:694
Stack trace:
#0 /home/sitename/public_html/admin/core/users/modes/roles.edit.pre.php(30): PerchUtil::urlify('Editor')
#1 /home/sitename/public_html/admin/core/users/roles/edit/index.php(17): include('/home/sitename...')
#2 {main}
  thrown in /home/sitename/public_html/admin/core/lib/PerchUtil.class.php on line 694
Drew McLellan

Drew McLellan 2638 points
Perch Support

Yes, try installing the iconv extension.