Forum
Error creating new subpage, Call to undefined function iconv()
Hi, When creating a new subpage, right after writing in a page title, the file name field shows a php error (enabled display errors in php):
<br /><b>Fatal error</b>: Uncaught Error: Call to undefined function iconv() in /home/maxusnice/public_html/perch/core/lib/PerchUtil.class.php:796Stack trace:#0 /home/maxusnice/public_html/perch/core/async/urlify.php(5): PerchUtil::urlify('test6')#1 {main} thrown in <b>/home/maxusnice/public_html/perch/core/lib/PerchUtil.class.php</b> on line <b>796</b><br />
If I write in a file name manually and try to create the new page I get a blank page, or with php debug on:
Fatal error: Uncaught Error: Call to undefined function iconv() in /home/maxusnice/public_html/perch/core/lib/PerchUtil.class.php:796 Stack trace: #0 /home/maxusnice/public_html/perch/core/apps/content/PerchContent_Pages.class.php(475): PerchUtil::urlify('test6') #1 /home/maxusnice/public_html/perch/core/apps/content/modes/page.add.pre.php(64): PerchContent_Pages->create_with_file(Array) #2 /home/maxusnice/public_html/perch/core/apps/content/page/add/index.php(23): include('/home/maxusnice...') #3 {main} thrown in /home/maxusnice/public_html/perch/core/lib/PerchUtil.class.php on line 796
Below is my short diagnostics report. Please advise.
Regards Asker
Perch: 3.0.4, PHP: 7.0.24, MySQL: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (3.0.4), assets (3.0.4), categories (3.0.4)
App runtimes: <?php $apps_list = [ ];
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/maxusnice/public_html/perch
PERCH_CORE: /home/maxusnice/public_html/perch/core
PERCH_RESFILEPATH: /home/maxusnice/public_html/perch/resources
Image manipulation: GD
PHP limits: Max upload 8M, Max POST 8M, Memory: 128M, Total max file upload: 8M
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
Resource folder writeable: Yes
HTTP_HOST: maxus-nice.fr
DOCUMENT_ROOT: /home/maxusnice/public_html
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Found it by searching the web for the error message. I have now added the php extension iconv which solved the issue!