Class Not Found Error

Ask your questions regarding TimeTrex installation here.
Locked
garry
Posts: 5
Joined: Mon Dec 11, 2006 7:38 am

Class Not Found Error

Post by garry » Mon Dec 11, 2006 7:49 am

I am having problems with the windows install. I did not want to go the apache mysql route because I prefer PostgreSQL. So, I downloaded php 5.1.6, installed the ISAPI plugin to IIS, changed the directory permissions.

I do the setup URL, and I get an error from the Smarty.class about a missing class (I forget the full message, it happened on Saturday).

My theory is that I have something screwed up in PHP. I tried modifying php.ini. However, when I did that it would make it to a blank license page. So I reverted it back without the php.ini.

It would be helpful if you documented a full windows out of the box installation.

BTW, it only took me 15minutes to set it up on my MacBook Pro (My Client prefers windows).

TIA
Garry

shaunw
Posts: 7360
Joined: Tue Sep 19, 2006 2:22 pm

Re: Class Not Found Error

Post by shaunw » Mon Dec 11, 2006 10:02 am

garry wrote:I am having problems with the windows install. I did not want to go the apache mysql route because I prefer PostgreSQL. So, I downloaded php 5.1.6, installed the ISAPI plugin to IIS, changed the directory permissions.

I do the setup URL, and I get an error from the Smarty.class about a missing class (I forget the full message, it happened on Saturday).

My theory is that I have something screwed up in PHP. I tried modifying php.ini. However, when I did that it would make it to a blank license page. So I reverted it back without the php.ini.

It would be helpful if you documented a full windows out of the box installation.

BTW, it only took me 15minutes to set it up on my MacBook Pro (My Client prefers windows).

TIA
Garry
We can try to give you a hand with this, but first please have a look at:

http://forums.timetrex.com/viewtopic.php?t=89

garry
Posts: 5
Joined: Mon Dec 11, 2006 7:38 am

More Information

Post by garry » Mon Dec 11, 2006 11:54 am

1. Clearly state what is happening, or what isn't happening that you feel should. If there are any error messages include the FULL EXACT error message.

Warning: Smarty::include(c:\Inetpub\wwwroot\timetrex\classes\modules\core\..\..\..\templates_c\\%%7D^7DD^7DDF92DF%%License.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in c:\Inetpub\wwwroot\timetrex\classes\smarty\libs\Smarty.class.php on line 1258

Warning: Smarty::include() [function.include]: Failed opening 'c:\Inetpub\wwwroot\timetrex\classes\modules\core\..\..\..\templates_c\\%%7D^7DD^7DDF92DF%%License.tpl.php' for inclusion (include_path='c:\Inetpub\wwwroot\timetrex\classes\modules\core\..\..\..\classes\modules\core;c:\Inetpub\wwwroot\timetrex\classes\modules\core\..\..\..\classes\modules\company;c:\Inetpub\wwwroot\timetrex\classes\modules\core\..\..\..\classes\modules\users;c:\Inetpub\wwwroot\timetrex\classes\modules\core\..\..\..\classes\modules\punch;c:\Inetpub\wwwroot\timetrex\classes\modules\core\..\..\..\classes\modules\schedule;c:\Inetpub\wwwroot\timetrex\classes\modules\core\..\..\..\classes\modules\department;c:\Inetpub\wwwroot\timetrex\classes\modules\core\..\..\..\classes\modules\help;c:\Inetpub\wwwroot\timetrex\classes\modules\core\..\..\..\classes\modules\client;c:\Inetpub\wwwroot\timetrex\classes\modules\core\..\..\..\classes\modules\document;c:\Inetpub\wwwroot\timetrex\classes\modules\core\..\..\..\classes\modul in c:\Inetpub\wwwroot\timetrex\classes\smarty\libs\Smarty.class.php on line 1258

2. Clearly state the EXACT steps you took before the issue occurred, or steps to reproduce the issue.

--- installed php and ran install script

3. What version of TimeTrex you are running.

---I am using the v1.3.1 of timetrex.

4. What version of PHP you are using.

--- 5.1.6 downloaded from PHP.net

5. What operating system you are running.

--- Windows 2003 SP1 with all of the latest securtity fixes

6. What web server you are using.

--- IIS 6.0

7. Have you configured PHP to log errors to a file, and what errors are showing up in this file?
("error_log = <filename>" in PHP.INI)

8. In your TimeTrex.ini.php file, set the following under the [debug] section:
enable = TRUE
enable_display = TRUE
buffer_output = TRUE
enable_log = TRUE
verbosity = 11

shaunw
Posts: 7360
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw » Mon Dec 11, 2006 1:13 pm

The problem has to do with a missing directory or permission issues, not that TimeTrex can't find Smarty.

Ensure this directory exists and that your web server has write permissions to it:

c:\Inetpub\wwwroot\timetrex\classes\modules\core\..\..\..\templates_c\


This FAQ entry may help you as well:
http://forums.timetrex.com/viewtopic.php?t=66

garry
Posts: 5
Joined: Mon Dec 11, 2006 7:38 am

Ok Now it is stuck on the License page

Post by garry » Mon Dec 11, 2006 3:31 pm

It is showing stuff, but it will not allow me past that. Could it be that I don't have the Postgres Libraries in the path?

shaunw
Posts: 7360
Joined: Tue Sep 19, 2006 2:22 pm

Re: Ok Now it is stuck on the License page

Post by shaunw » Mon Dec 11, 2006 4:17 pm

garry wrote:It is showing stuff, but it will not allow me past that. Could it be that I don't have the Postgres Libraries in the path?
Please be more specific. What is it showing? What can't you get "past"?

garry
Posts: 5
Joined: Mon Dec 11, 2006 7:38 am

Post by garry » Mon Dec 11, 2006 6:52 pm

It is showing the License Screen now. I click in the accept field then submit, and then it goes back to the license field.

Thanks
Garry

garry
Posts: 5
Joined: Mon Dec 11, 2006 7:38 am

Next Problem

Post by garry » Mon Dec 11, 2006 7:03 pm

I found the other thread where it was supposed to redirect to the next page (Requirements.php), so here are the results.

PHP Version: OK (v5.1.6)
Database Engine: Invalid
PHP BCMATH Enabled: OK
PHP SOAP Enabled: Warning: Not Installed. (SOAP extension must be enabled)
PEAR: Warning: Not Installed. (try running: "go-pear.bat")
Writable TimeTrex-Debug Configuration File (timetrex.ini.php): OK
Writable Cache Directory: OK
Writable Storage Directory: OK
Writable Log Directory: Warning: Not writable (c:\timetrex\log)
PHP Safe Mode Turned Off: OK
PHP Memory Limit: OK

How do I get it to recognize postgres?
I will research on how to install pear.

Thanks
Garry

shaunw
Posts: 7360
Joined: Tue Sep 19, 2006 2:22 pm

Re: Next Problem

Post by shaunw » Mon Dec 11, 2006 7:32 pm

garry wrote:I found the other thread where it was supposed to redirect to the next page (Requirements.php), so here are the results.

PHP Version: OK (v5.1.6)
Database Engine: Invalid
PHP BCMATH Enabled: OK
PHP SOAP Enabled: Warning: Not Installed. (SOAP extension must be enabled)
PEAR: Warning: Not Installed. (try running: "go-pear.bat")
Writable TimeTrex-Debug Configuration File (timetrex.ini.php): OK
Writable Cache Directory: OK
Writable Storage Directory: OK
Writable Log Directory: Warning: Not writable (c:\timetrex\log)
PHP Safe Mode Turned Off: OK
PHP Memory Limit: OK

How do I get it to recognize postgres?
I will research on how to install pear.

Thanks
Garry
You need to install and enable the PostgreSQL extension. How to do that really depends on how you installed PHP in the first place. Usually its just a matter of adding a "extension = pgsql.so" to you're php.ini file.

Locked