PHP 7.0 <-> PHP 7.2

Talk about installation process and problems

Moderator: alexandrleonenko

Rolf
Newbie
Newbie
Posts: 3
Joined: Feb 10th, '17, 18:18

PHP 7.0 <-> PHP 7.2

Postby Rolf » Mar 5th, '19, 14:00

Hello,
I have an existing application based on Linux Ubuntu 16.04.6 LTS with php 7.0
I try to move the application to a new server Ubuntu 18.04.2 LTS with php 7.2

I am using ## ApPHP DataGrid Pro (AJAX enabled) version 8.2.7
It's possible to view data but if I like to open the details or edit an entry I recieve only a blank page.

Does anyone know this problem?

Thanks for help

In the error log are some problems:

Code: Select all

PHP Warning:  Illegal string offset 'select' in /datagrid/classes/sqlparser.class.php on line 205
PHP Warning:  Cannot assign an empty string to a string offset in /datagrid/classes/sqlparser.class.php on line 205

[php7:error] [pid 21855] [client [IP]:[Port]] PHP Fatal error:  Uncaught Error: Cannot use assign-op operators with string offsets in /datagrid/classes/sqlparser.class.php:208

[Tue Mar 05 12:50:42.728294 2019] [php7:error] [pid 21855] [client 1.0.10.161:64466] PHP Fatal error:  Uncaught Error: Cannot use assign-op operators with string offsets in /datagrid/classes/sqlparser.class.php:208\nStack trace:\n#0 /datagrid/datagrid.class.php(5242): SqlParser::ParseString('SELECT Section....')\n#1 /datagrid/datagrid.class.php(2253): DataGrid->SetTotalNumberRows(' ORDER BY  orde...', '', '', true)\n#2 /datagrid/datagrid.class.php(970): DataGrid->GetDataSet(' ORDER BY  orde...', '', '', '', false, true)\n#3 /datagrid.class.php(834): DataGrid->DataSourceOld(Object(PDO), 'SELECT Section....', Array)\n#4 /datagrid/datagrid.class.php(752): DataGrid->DataSourceNew(Array)\n#5 /testgrid.php(19): DataGrid->__call('DataSource', Array)\n#6 index.php(46): include('/var/www/S...')\n#7 {main}\n  thrown in /datagrid/classes/sqlparser.class.php on line 208


administrator
Site Admin
Site Admin
Posts: 6028
Joined: Jan 7th, '09, 23:18
Contact:

Re: PHP 7.0 <-> PHP 7.2

Postby administrator » Mar 6th, '19, 08:06

Hi!

Please contact our support and provide your PHP file with datagrid, that you're trying to run, so they could check curefully and fix this issue.
Or try to fix it by yourself:
1. Open datagrid/classes/sqlparser.class.php
2. After this line of code (~ ln.195):

Code: Select all

for ($t = 0; $t < $tokenCount; $t++) {


add

Code: Select all

if(!isset($tokens[$t])) continue;


Does it help now?

Rolf
Newbie
Newbie
Posts: 3
Joined: Feb 10th, '17, 18:18

Re: PHP 7.0 <-> PHP 7.2

Postby Rolf » Mar 6th, '19, 09:40

I tried this but same situation.
I collect the relevant source codes and send a mail to the support

Thanks
Rolf

administrator
Site Admin
Site Admin
Posts: 6028
Joined: Jan 7th, '09, 23:18
Contact:

Re: PHP 7.0 <-> PHP 7.2

Postby administrator » Mar 8th, '19, 08:19

Please contact to our support: http://apphp.com/support/ and provide them access to your file, so they could fix it online.


Return to “Installation”