4 posts by 2 authors in: Forums > CMS Builder
Last Post: June 25, 2012   (RSS)

By terryally - June 23, 2012 - edited: June 23, 2012

I am trying to install CMSB on a new server.

I initially copied over the entire directory file, deleted the isInstalled.php and did a reinstallation and got the error message: "Couldn't load viewer library, check filepath in sourcecode."

I then did a fresh installation and created a sample Section Editor and got the same error message.

I tried replacing the following lines:

$libraryPath = 'cmsAdmin/lib/viewer_functions.php';
$dirsToCheck = array('/home/bplllih/public_html/','','../','../../','../../../');
foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}


with a direct include_once pointing to the location of viewer_functions.php and the error message was Internal 500.

safe_mode is turned off but mod_security isn't because it is a temporary URL.

Can you please tell me what to do to correct this?

Thanks
Terry

Re: [terryally] Couldn't load viewer library, check filepath in sourcecode

By Jason - June 23, 2012

Hi Terry,

mod_security shouldn't be an issue. Since this was a server move, the issue is most likely here:

/home/bplllih/public_html/

Chances are, that is not the correct directory anymore. If cmsAdmin is in the root of your site, you can try replacing it with this:


$libraryPath = 'cmsAdmin/lib/viewer_functions.php';
$dirsToCheck = array('/','','../','../../','../../../');
foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [terryally] Couldn't load viewer library, check filepath in sourcecode

By Jason - June 25, 2012

Hi Terry,

Please send in a [url http://www.interactivetools.com/support]2nd Level Support Request[/url] along with a link to a page that demonstrates the problem and we'll take a look.

Thanks,
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/