Error Cannot redeclare json_encode_jsfunc()

QuestionsError Cannot redeclare json_encode_jsfunc()
Daniele asked 1 year ago

Hello!

I have tried to connect Oracle DB with a simple datagrid (i have use this sample https://www.gridphp.com/demo/demos/editing/index.phps).

When i start my page i give this error:

PHP Fatal error:  Cannot redeclare json_encode_jsfunc() (previously declared in C:\inetpub\wwwroot\gridphp\lib\inc\jqgrid_dist.php:1146) in C:\inetpub\wwwroot\gridphp\lib\inc\jqgrid_dist.php on line 1146

My configuration:
IIS 10 PHP 8.3.2
DB ORACLE 18.3
1 Answers
Abu answered 1 year ago

Hello,

Please replace include with include_once while including jqgrid_dist.php, line 12 in demo.

Your Answer

11 + 20 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?