Author Topic: FengOffice 3.1.3 - again blank screen  (Read 2856 times)

Andrejko

  • Freshman
  • *
  • Posts: 10
    • View Profile
FengOffice 3.1.3 - again blank screen
« on: April 29, 2015, 04:34:59 am »
Previously upgraded and modified with jacobs code core_dimensions_hooks:
I have created a workaround for this bug that works in version 3.1.2
I do not know of any possible side-effects it may have but at least I can edit users.

The problem appears on line 373 of /plugins/core_dimensions/hooks/core_dimensions_hooks.php

Feng is apparently trying to get the parent member of a company and is coming up empty handled, throwing an unhanded error.


In the core_dimensions_hooks.php file

Replace this if block:
Quote
if ($object->getCompanyId() > 0) {
                                $pmember = Members::findOne(array('conditions' => '`object_id` = '.$object->getCompanyId(). ' AND `object_type_id` = '.$company_ot->getId(). ' AND `dimension_id` = '.$person_dim->getId()));
                                $member->setParentMemberId($pmember->getId());
                                $member->setDepth($pmember->getDepth() + 1);
                        }else{
                                //Is first level
                                $member->setDepth(1);
                                $member->setParentMemberId(0);
                        }

With this if block:
Quote
if ($object->getCompanyId() > 0) {
                                $pmember = Members::findOne(array('conditions' => '`object_id` = '.$object->getCompanyId(). ' AND `object_type_id` = '.$company_ot->getId(). ' AND `dimension_id` = '.$person_dim->getId()));

                                if($pmember) //Do not use pmember if null for any reason / hack by jacob on the fengoffice forum
                                {
                                $member->setParentMemberId($pmember->getId());
                                $member->setDepth($pmember->getDepth() + 1);
                                } else {
                                $member->setDepth(1);
                                $member->setParentMemberId(0);
                                }
                        }else{
                                //Is first level
                                $member->setDepth(1);
                                $member->setParentMemberId(0);
                        }
now upgraded to 3.1.3 still error:
Fatal error: Cannot redeclare core_dimensions_after_edit_profile() (previously declared in /...../plugins/core_dimensions/hooks/core_dimensions_hooks-150408.php:4) in /...../plugins/core_dimensions/hooks/core_dimensions_hooks.php on line 13

and in cache/log.php is:
-------------------------------------------------------------------------------

Session "default" started at 2015-04-09T10:29:04+0000
#1 ERROR: Error: Undefined variable: end_cond in '/...../application/models/sharing_table/SharingTables.class.php' on line 69 (error code: 8 )
Time since start: 0.93439483642578 seconds
-------------------------------------------------------------------------------
WHAT I should do?

Thanks in advance


P.S.: Have deleted config.php, installed onto a new clean database and the result is a really blank page (source code of that page is blank), after switching the debug mode on in config.php - again the same Fatal error on page ...
« Last Edit: April 29, 2015, 06:04:53 am by Andrejko »

Andrejko

  • Freshman
  • *
  • Posts: 10
    • View Profile
Re: FengOffice 3.1.3 - again blank screen
« Reply #1 on: May 12, 2015, 06:07:32 pm »
Successfully WRONG- upgraded to 3.1.4.3 - but still blank screen - what a success story of a not functioning great product ...

steveg

  • Full Member
  • ***
  • Posts: 167
    • View Profile
Re: FengOffice 3.1.3 - again blank screen
« Reply #2 on: May 13, 2015, 12:00:54 pm »
Successfully WRONG- upgraded to 3.1.4.3 - but still blank screen - what a success story of a not functioning great product ...

What are your server specs and php settings?  This is most likely an issue with a dependency that is not installed on your server...

FO works really well - all versions work! 

Can you share with us your server error logs - not the FO logs...  that will help to determine the issue.

Andrejko

  • Freshman
  • *
  • Posts: 10
    • View Profile
Re: FengOffice 3.1.3 - again blank screen
« Reply #3 on: May 19, 2015, 01:38:56 pm »
Server
Apache Version    2.4.12
PHP Version    5.4.40
MySQL Version    5.6.23
Architecture    x86_64
Operating System    linux
Perl Version    5.8.8
Kernel Version    2.6.18-498.el5.lve0.8.

PHP
I do not know which settings you need to know, therefore some of them (local,master):
max_execution_time   300   300
max_file_uploads   20   20
max_input_nesting_level   64   64
max_input_time   -1   -1
max_input_vars   1000   1000
memory_limit   128M   128M

It is installed in shared environment and therefore I can send you only FO logs:
and anyway it write in the log file nothing new - even I try to stat fengoffice now 2015-05-19
the last post in the log was as:
-------------------------------------------------------------------------------

Session "default" started at 2015-04-09T10:29:04+0000
#1 ERROR: Error: Undefined variable: end_cond in '/..../application/models/sharing_table/SharingTables.class.php' on line 69 (error code: 8)
Time since start: 0.93439483642578 seconds
-------------------------------------------------------------------------------

P.S.: FO upgraded to 3.1.5.1.
« Last Edit: May 19, 2015, 01:40:39 pm by Andrejko »

Andrejko

  • Freshman
  • *
  • Posts: 10
    • View Profile
Re: FengOffice 3.1.3 - again blank screen
« Reply #4 on: July 16, 2015, 03:07:35 pm »
Upgrade to 3.2.1 - still blank screen - congratulation to FENGOFFICE "great" project

Andrejko

  • Freshman
  • *
  • Posts: 10
    • View Profile
Re: FengOffice 3.1.3 - again blank screen
« Reply #5 on: July 16, 2015, 03:10:17 pm »
Upgrade to 3.2.1 - still blank screen - congratulation to FENGOFFICE "great" project

I forgot - it was upgraded through Softaculous ....

conrado

  • Administrator
  • Hero Member
  • *****
  • Posts: 998
  • Conrado
    • View Profile
    • Feng Office
    • Email
Re: FengOffice 3.1.3 - again blank screen
« Reply #6 on: July 27, 2015, 07:51:47 pm »
Hi Andrejko.

Try it on our servers:
http://www.fengoffice.com/web/trial.php

You'll see we are not bluffing. It really does work. It has been working for me for years. ;)

You can decide if it is the solution for you and then resolve any issues with your local installation.

I hope that helps.
Get Official Support for your Feng Office. Support the development team. Sign up for a Free Trial here.

Andrejko

  • Freshman
  • *
  • Posts: 10
    • View Profile
Re: FengOffice 3.1.3 - again blank screen
« Reply #7 on: August 23, 2015, 06:07:18 am »
Hi conrado,

it is not a solution to say you are not ill, because I am not (e.g. It should be good, because at our side it is functioning).

Through softaculous upgraded to 3.2.3 and still blank screen (the source code for the index.php is blank).
« Last Edit: August 23, 2015, 06:09:37 am by Andrejko »

ALEXsei

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: FengOffice 3.1.3 - again blank screen
« Reply #8 on: August 23, 2015, 09:12:59 pm »
I also have a white screen

Apparently, this is the eternal problem FO

Flintex

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: FengOffice 3.1.3 - again blank screen
« Reply #9 on: October 03, 2015, 08:31:23 am »
This trouble occurs after a failed upgrade from lastest version. Go back to oldest version and repeat upgrade with all permission on website directory

 

anything
anything