Author Topic: Solved -> Installation Problem in 1.4.2 , 1.5 and 1.5.2  (Read 3791 times)

Dinesh H

  • Newbie
  • *
  • Posts: 7
    • View Profile
Solved -> Installation Problem in 1.4.2 , 1.5 and 1.5.2
« on: August 20, 2009, 08:37:04 am »
Hi!

My Server Version Details :
Apache 2.0
PHP version 5.2.4
MySQL version 5.0.22
IE - 7.0.5730
FireFox 3.5.2

I am trying to install openGoo on Linux platform on Apache. Installation goes smoothly and it displays 'Success'  and the URL for creating initial admin account and company name. But clicking URL does not display anything in 1.5 version, 1.5.2 version and in 1.4.2 version it displays 'Internal server error'. I checked the httpd error log and it displays :

PHP Fatal error:  Uncaught exception 'OwnerCompanyDnxError' with message 'Owner company is not defined' in /var/www/html/opengoo/application/models/CompanyWebsite.class.php:64\nStack trace:\n#0 /var/www/html/opengoo/application/models/CompanyWebsite.class.php(45): CompanyWebsite->initCompany()\n#1 /var/www/html/opengoo/application/models/CompanyWebsite.class.php(49): CompanyWebsite->init()\n#2 /var/www/html/opengoo/application/application.php(20): CompanyWebsite::init()\n#3 /var/www/html/opengoo/init.php(139): require_once('/var/www/html/o...')\n#4 /var/www/html/opengoo/index.php(9): require('/var/www/html/o...')\n#5 {main}\n  thrown in /var/www/html/opengoo/application/models/CompanyWebsite.class.php on line 64

In 1.5.2  the following message displayed :

#1 FATAL: exception 'OwnerCompanyDnxError' with message 'Owner company is not defined' in /var/www/html/opengoo/application/models/CompanyWebsite.class.php:64
    Stack trace:
    #0 /var/www/html/opengoo/application/models/CompanyWebsite.class.php(45): CompanyWebsite->initCompany()
    #1 /var/www/html/opengoo/application/models/CompanyWebsite.class.php(49): CompanyWebsite->init()
    #2 /var/www/html/opengoo/application/application.php(20): CompanyWebsite::init()
    #3 /var/www/html/opengoo/init.php(138): require_once('/var/www/html/o...')
    #4 /var/www/html/opengoo/index.php(9): require('/var/www/html/o...')
    #5 {main}
Time since start: 0.0021889209747314 seconds

It does not display the admin account set up and company information page in 1.4.2 , 1.5 and 1.5.2 version.

What could be wrong? Please help... I am eager to see the openGoo...

Thanks in advance.
« Last Edit: August 22, 2009, 03:18:45 am by Dinesh H »

Dinesh H

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Installation Problem in 1.4.2 , 1.5 and 1.5.2
« Reply #1 on: August 22, 2009, 03:14:57 am »
Finally, the problem is isolated and I could resolve the problem. Below is the process I followed, which may be helpful for others..

My server details:

Apache 2.2.3
PHP version 5.2.4
MySQL version 5.0.22

Client: IE 7.0.5730

1.  Tried to run the index.php through CLI and noticed the it is working fine.
         Command used : php index.php
2.  Modified the following files to see what is going wrong:
      a. application.php  b.  CompanyWebsite.class.php
      c. OwnerCompanyDnxError.class.php
3. It is identified the exception was not handled by php through browser.
4. Confirmed that php exception handling problem by executing small php file check_exception.php (the file is attached) from browser.
5. Checked the installed php packages by executing : rpm -qa |grep php command and noticed some modules of php 5.1.* were installed.
6. Removed the php 5.1. related components.
7. Re-executed the check_exception.php from browser and voila, the problem is resolved.
8. Re-installed opengoo 1.5.2 and every thing went smoothly and I could create  Company, admin accounts etc. Now all things are working fine.

The basic problem for was due to conflicting php installation. If you see the blank page after successful installation,  I suggest please check whether exception is handled properly because that only will take you to further steps.

Request for the development team:

In the installation process, please add a routine to check exception handling is working fine and throw message about the same. This will help lot of users, as I can see from forum that lot many queries are pending for the blank page problem after successful installation.

It looks Great peace of software, let me explore....

Thanks and regards.

-Dinesh H

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Solved -> Installation Problem in 1.4.2 , 1.5 and 1.5.2
« Reply #2 on: August 24, 2009, 04:29:27 pm »
You have to set "DEBUG" as true in 'config/config.php' to see the exception in the browser. Maybe we should explain that in the readme file?

Dinesh H

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Solved -> Installation Problem in 1.4.2 , 1.5 and 1.5.2
« Reply #3 on: August 27, 2009, 08:38:48 am »
Hi!

Setting DEBUG as true in config.php will throw the error as below which is deceptive and will not convey what  is the problem:

#1 FATAL: exception 'OwnerCompanyDnxError' with message 'Owner company is not defined' in /var/www/html/opengoo/application/models/CompanyWebsite.class.php:64

As per the logic in CompanyWebsite.class.php, if the OwnerCompany is not existing it should take you to the OwnerCompany creation page based on the exception thrown.  Due to conflict or error of PHP installation, this exception is not caught and page displays blank page and keeps quite.

I feel, during installation steps, we should check whether PHP exception handling is working by small script and instead of showing 'Success Message' , we can point to some meaningful error message.

Hope I am thinking in correct line.

Regards.
-Dinesh H.


Double A Ron

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Solved -> Installation Problem in 1.4.2 , 1.5 and 1.5.2
« Reply #4 on: August 28, 2009, 04:41:49 am »
Dinesh, thank you very much for the post and the script.

I apparently caught an exception and thus the main overview is blank: "0.2 Caught exception: Division by zero. Hello World"

Quick question: If opengoo worked fine before the upgrade, is it possible to downgrade back to the working version?

Dinesh H

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Solved -> Installation Problem in 1.4.2 , 1.5 and 1.5.2
« Reply #5 on: August 28, 2009, 08:45:30 am »
Hi, Mr. Ron.

I am not able to answer your question regarding down grading to lower version, as I have not gone thru that process. But my strong feeling is, you may not be able to that, again it depends on which version to which version you have upgraded.  Any expert on this site can answer your question.

You told, the script has caught the exception and shown the message, which means there is no problem with exception handling. You may have to analyse what else could be the problem.

-Dinesh