PDA

View Full Version : Installation Problems


Alpha Eco
09-27-2007, 09:51 PM
When running Cerberus 4 for the first time (after fresh install of Server 2003 R3, IIS, MySql 5, PHP 5.2, cerb4-build-latest.zip as of 9/27/2007) I get the following error:


Warning: Smarty::include(C:\Inetpub\wwwroot\cerb4/libs/devblocks/tmp/templates_c\%%6F^6F6^6F6AB46F%%base.tpl.php.php) [function.Smarty-include]: failed to open stream: No such file or directory in C:\Inetpub\wwwroot\cerb4\libs\devblocks\libs\smart y\Smarty.class.php on line 1258

Warning: Smarty::include() [function.include]: Failed opening 'C:\Inetpub\wwwroot\cerb4/libs/devblocks/tmp/templates_c\%%6F^6F6^6F6AB46F%%base.tpl.php.php' for inclusion (include_path='C:\Inetpub\wwwroot\cerb4/libs/devblocks/libs;C:\Inetpub\wwwroot\cerb4/libs/devblocks/libs/ZendFramework;.;C:\php5\pear') in C:\Inetpub\wwwroot\cerb4\libs\devblocks\libs\smart y\Smarty.class.php on line 1258

What's going on?

Thanks

Aaron :confused:

mylove4life
10-10-2007, 05:07 AM
Do you have Zen installed as well? I'm thinking you forgot that...

mkappel17
11-30-2007, 11:17 PM
Has any one found a solution to this? I am currently running into this problem and do not know what zen is.

jstanden
12-02-2007, 09:27 PM
Hey mkappel17,

Perhaps Alpha can post his fix to see if it helps you out.

The first things I'd check:

Make sure all your cerb4/* files are readable by the webserver user.
Make sure your include_path in the php.ini has the same case as your directories on the filesystem (e.g., "C:\Inetpub" vs. "c:\inetpub")If you're still having trouble, post again and we'll try some other things.

Thanks!

ncp
12-04-2007, 04:19 PM
I had this and fixed it by changing the permissions on the templates_c directory it specifies in the listed path - hope this helps!

Pigman
01-29-2008, 10:17 AM
Hi there,

I am having this problem too.

New zip installation on a W2003 box with IIS6.0. PHP Version 5.2.5, ISAPI.

The phpinfo.php works fine in the /install/ folder, however I am getting the exact same error as the original poster when I try to run the install.php

One thing I have noticed is that my URL gets rewritten as....

http://cerb4.mydomain.net.au/%5C/install/index.php

Is the %5C/ meant to be there? It doesnt appear when I view the phpinfo, the URL then looks like this...

http://cerb4.wizz.net.au/install/phpinfo.php


I have trawled this forum and the web and tried all the obvious things such as folder permissions etc (the previous suggestion didnt work for me).

Any ideas?

Hildy
01-29-2008, 03:48 PM
What's odd here is that %5C is an encoded backslash, so your url is getting rewritten as http://cerb4.mydomain.net.au/\/install/index.php ... It's possible that that's an IIS thing, but it's also possible that it's related to the url rewriting in Cerb. Try editing framework.config.php and changing the rewrite define todefine('DEVBLOCKS_REWRITE',false);to turn off all rewriting in cerb4.

Pigman
01-29-2008, 11:38 PM
Thanks for you suggestion.

I tried turning the rewrites off, but it hasnt made any difference.

Any other suggestions?

Also, does it matter that in my error message (as seen in the first post in this thread), the path changes from back slashes to forward slashes and then back again?

ie.

Smarty::include(C:\Inetpub\wwwroot\cerb4/libs/devblocks/tmp/templates_c\%%6F^6F6^6F6AB46F%%base.tpl.php.php)

Is this normal?


Thanks

Pigman
02-08-2008, 05:21 AM
Hi, any suggestions?

I really would like to get this working so we can migrate from v2.0 (and buy a new license!)

Hildy
02-08-2008, 07:06 PM
It's possible you're having issues with the value of the HTTP_HOST environment variable... The code that generates (most of) the urls is:$prefix = sprintf("%s://%s%s",
($this->_isSSL() ? 'https' : 'http'),
$_SERVER['HTTP_HOST'],
DEVBLOCKS_WEBPATH
); in _devblocksUrlManager::write(), in cerb4/libs/devblocks/api/Engine.php.

If you create the following file and run it in the browser, what do you get back? (View Source, please, just to make sure there's nothing hidden there, too...)<?php
$host=$_SERVER['HTTP_HOST'];
echo("<pre>".$host."</pre>");
?>

Pigman
02-09-2008, 12:46 AM
Here is the source of the host http output...

<pre>cerb4.mydomain.net.au</pre>

My real domain has been edited, but the output matches where the application lives.

Looks normal to me.

jstanden
02-09-2008, 04:39 AM
I'll do another quick test on our IIS6 Q/A box and see if PHP 5.2.5 and the ZIP make any difference vs. 5.2.4 and using TortoiseSVN to check out the project. I'll also do another ISAPI/CGI test.

Are there any other ISAPI filters active, like one of the IIS ISAPI rewriters?

I'll let you know what I find in a few minutes.

Thanks!

jstanden
02-09-2008, 05:20 AM
Try editing framework.config.php and changing the rewrite define todefine('DEVBLOCKS_REWRITE',false);to turn off all rewriting in cerb4.

You don't have to edit that constant anymore. It'll auto-detect whether or not the .htaccess file exists (it doesn't exist if it hasn't been copied from the .htaccess-dist example.)

jstanden
02-09-2008, 05:22 AM
I couldn't reproduce this with PHP 5.2.5 + ISAPI and the ZIP.

But one other thing I should probably try is not using the /cerb4 subdirectory and installing into the top-level directory for a subdomain like you are.

I'll give that another go this evening.

Pigman
02-09-2008, 06:22 AM
I dont have any other ISAPI filters active in this site.

The other point to note is that my server is running dual versions of PHP. I have a PHP4 application pool for my legacy systems, and a new PHP5 application pool for Cerberus4.

I dont know if that could cause any problems.

Thanks,


Dave

Pigman
02-18-2008, 03:03 AM
Sorry to keep bumping this, but I'm a position where I cant continue to use v2.0 of Cerberus due to a bug that couldnt be fixed by the developers (sporadic incoming email blackhole), so I am very keen to try and get this working so we can upgrade.

Any further thoughts? I can offer RDP access to the box if it helps?

Thanks,


David

Pigman
02-19-2008, 06:16 AM
Can the above post be split out into a new thread please? This thread is focused on one specfic bug and I dont want it to be derailed!

Pigman
02-22-2008, 08:57 AM
Stop derailing my thread please with your cross-posting please.

Anyone have any suggestions for my above problem?

jstanden
02-22-2008, 10:17 PM
Hey Dave,

I split off those other posts for you.

RDP access would definitely help. I haven't had any luck reproducing this on our IIS6 Q/A machine. With the ability to look around in your environment we could likely figure this out for you in an afternoon.

Send a message in to support(AT)webgroupmedia.com that you'd like to provide Remote Desktop access to help find an IIS issue. I'll make myself available to help out.

Thanks! (and I apologize for my delayed reply)

Pigman
02-23-2008, 04:23 AM
Thanks Jeff. Email sent!

Hildy
02-25-2008, 08:09 PM
Okay, Pigman, we got the email and it's been assigned to Jeff.