Couldn't load viewer library, check filepath in sourcecode

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: [Jason] Couldn't load viewer library, check filepath in sourcecode

By terryally - June 24, 2012

Hi Jason,

That path is the new path not the old one.

I did however make the change the suggested and the error message remains the same.

When I did the install I noticed that CMSB automatically assigned the document root to "/usr/local/apache/htdocs" which is not correct. I changed that in the General Setting to "/home/bplllih/public_html".

The error message still remains.

Any further thoughts?

Terry

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/