Install / Demos

QuestionsInstall / Demos
Tom asked 11 years ago

What needs to be changed to get the demo's to run on a live server.

I'm trying to make the "frozen columns" work. (but I'd like to get them all working)

First I changed the DB Username and PW : that got rid of a few error messages

Now these errors are displayed:
Warning: Wrong parameter count for strstr() in C:domainsRPMCphpgriddemosappearencefrozen-columns.php on line 13

Warning: include(lib/inc/jqgrid_dist.php) [function.include]: failed to open stream: No such file or directory in C:domainsRPMCphpgriddemosappearencefrozen-columns.php on line 14

Warning: include(lib/inc/jqgrid_dist.php) [function.include]: failed to open stream: No such file or directory in C:domainsRPMCphpgriddemosappearencefrozen-columns.php on line 14

Warning: include() [function.include]: Failed opening 'lib/inc/jqgrid_dist.php' for inclusion (include_path='.;c:phpincludes') in C:domainsRPMCphpgriddemosappearencefrozen-columns.php on line 14

Fatal error: Class 'jqgrid' not found in C:domainsRPMCphpgriddemosappearencefrozen-columns.php on line 111

1 Answers
Abu Ghufran answered 11 years ago

All the errors are coming because lib file is not located at mentioned path. Most likely realpath() is disabled on server.

By looking at your file structure, Solution would be to replace,

$base_path = strstr(realpath("."),"demos",true)."lib/";
include($base_path."inc/jqgrid_dist.php");

with,
include("../../lib/inc/jqgrid_dist.php");

Your Answer

1 + 14 =

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?