temporary workaround needed

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
honuware
Posts: 3
Joined: 2014-01-15 19:39

temporary workaround needed

Post by honuware » 2017-10-01 18:47

In my ajax_combo.php file the following will not work with php5.6 or higher:

// receive and validate user input
$table_name = $_REQUEST['t'];
$field_name = $_REQUEST['f'];
$search_id = makeSafe(iconv('UTF-8', datalist_db_encoding, $_REQUEST['id']));
$selected_text = $_REQUEST['text'];
$returnOptions = ($_REQUEST['o'] == 1 ? true : false);
$page = intval($_REQUEST['p']);
if($page < 1) $page = 1;
$skip = $results_per_page * ($page - 1);
$search_term = makeSafe(iconv('UTF-8', datalist_db_encoding, $_REQUEST['s']));

This is due to the iconv() being unsupported.

How can I change this in the short term until I can open and save my appgini project in the current version of appgini and get current export of the php code.

Also, what version of php does the current version of appgini export?

Thanks all.

User avatar
a.gneady
Site Admin
Posts: 1354
Joined: 2012-09-27 14:46
Contact:

Re: temporary workaround needed

Post by a.gneady » 2017-10-04 22:28

AppGini-generated apps work on PHP 5.2 and higher (tested up to PHP 7.1). The code snippet you mentioned should work fine with PHP 5.6 and higher. According to the PHP manual, iconv is supported on all versions of PHP and is not marked as deprecated: https://secure.php.net/manual/en/function.iconv.php
:idea: AppGini plugins to add more power to your apps:

honuware
Posts: 3
Joined: 2014-01-15 19:39

Re: temporary workaround needed

Post by honuware » 2017-10-04 23:55

Thank you.

I thought that was the case, but my crappy host is apparently crappy and I am battling with them that iconv is not configured appropriately. We will see.

BTW, I have a been an Appgini user since 2011 and appreciate you keeping the software updated and current.

Post Reply