Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in Feng office 3.7.2.16 and 3.7.0.5 #23

Open
jameswill opened this issue Jul 24, 2019 · 7 comments
Open

Issue in Feng office 3.7.2.16 and 3.7.0.5 #23

jameswill opened this issue Jul 24, 2019 · 7 comments

Comments

@jameswill
Copy link

jameswill commented Jul 24, 2019

HI,

I have manually installed feng office 3.7.2.16 on one of my test servers with PHP 7.1 and Mysql 5.6

When I login into admin panel, I can not see any modules or any setting page.

feng office

When I checked into cache/log.php I found following error.

Session "default" started at 2019-07-23T18:03:05+0000
#1 ERROR: Error: Undefined index: dimensions in '{Path}/{to}/{fengoffice}/application/layouts/website.php' on line 560 (error code: 8)
#2 ERROR: Error: Invalid argument supplied for foreach() in ''{Path}/{to}/{fengoffice}/application/layouts/website.php' on line 560 (error code: 2)
Time since start: 0.31480884552002 seconds

I am also getting same issue on feng office 3.7.0.5 Can anyone let me know what is causing this issue ?

@jameswill
Copy link
Author

Hi,

Just wanted to add another log that I found in log.php

#1 ERROR: Error: Only variables should be passed by reference in '{Path}/{to}/{fengoffice}/application/models/contacts/Contact.class.php' on line 998 (error code: 8)

@sr3user
Copy link

sr3user commented Sep 11, 2019

The same issue. Clean installation of community edition of fengoffice 3.7.2.16. Shared hosting. PHP 7. No issues during installation, installed the 3 plugins included with community edition. After login, shows the header and nothing else. Errors in the cache/log.php vary, including:

Session "default" started at 2019-09-11T02:15:42+0000
#1 ERROR: Error: Only variables should be passed by reference in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/models/contacts/Contact.class.php' on line 998 (error code: 8)
#2 ERROR: Error: Only variables should be passed by reference in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/models/contacts/Contact.class.php' on line 999 (error code: 8)
#3 ERROR: Error: Only variables should be passed by reference in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/models/contacts/Contact.class.php' on line 998 (error code: 8)
#4 ERROR: Error: Only variables should be passed by reference in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/models/contacts/Contact.class.php' on line 999 (error code: 8)
Time since start: 0.11424589157104 seconds

Session "default" started at 2019-09-11T02:15:47+0000
#1 ERROR: Error: Undefined index: dimensions in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 560 (error code: 8)
#2 ERROR: Error: Invalid argument supplied for foreach() in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 560 (error code: 2)
#3 ERROR: Error: count(): Parameter must be an array or an object that implements Countable in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 625 (error code: 2)
#4 ERROR: Error: count(): Parameter must be an array or an object that implements Countable in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 625 (error code: 2)
Time since start: 0.16448307037354 seconds

Session "default" started at 2019-09-11T02:15:57+0000
#1 ERROR: Error: Undefined index: dimensions in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 560 (error code: 8)
#2 ERROR: Error: Invalid argument supplied for foreach() in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 560 (error code: 2)
#3 ERROR: Error: count(): Parameter must be an array or an object that implements Countable in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 625 (error code: 2)
#4 ERROR: Error: count(): Parameter must be an array or an object that implements Countable in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 625 (error code: 2)
Time since start: 0.14129209518433 seconds

Session "default" started at 2019-09-11T02:24:52+0000
#1 ERROR: Error: Undefined index: dimensions in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 560 (error code: 8)
#2 ERROR: Error: Invalid argument supplied for foreach() in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 560 (error code: 2)
#3 ERROR: Error: count(): Parameter must be an array or an object that implements Countable in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 625 (error code: 2)
#4 ERROR: Error: count(): Parameter must be an array or an object that implements Countable in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 625 (error code: 2)
Time since start: 0.1850860118866 seconds

Session "default" started at 2019-09-11T02:25:13+0000
#1 ERROR: Error: Undefined variable: image in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/views/contact/card.php' on line 25 (error code: 8)
#2 ERROR: Error: count(): Parameter must be an array or an object that implements Countable in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/models/object_members/ObjectMembers.class.php' on line 96 (error code: 2)
#3 ERROR: Error: Undefined index: dimensions in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 560 (error code: 8)
#4 ERROR: Error: Invalid argument supplied for foreach() in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 560 (error code: 2)
#5 ERROR: Error: count(): Parameter must be an array or an object that implements Countable in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 625 (error code: 2)
#6 ERROR: Error: count(): Parameter must be an array or an object that implements Countable in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 625 (error code: 2)
Time since start: 0.18209195137024 seconds

Session "default" started at 2019-09-11T03:15:34+0000
#1 ERROR: Error: Undefined index: dimensions in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 560 (error code: 8)
#2 ERROR: Error: Invalid argument supplied for foreach() in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 560 (error code: 2)
#3 ERROR: Error: count(): Parameter must be an array or an object that implements Countable in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 625 (error code: 2)
#4 ERROR: Error: count(): Parameter must be an array or an object that implements Countable in '/home2/{home_folder}/public_html/{domain_folder}/{subfolder}/application/layouts/website.php' on line 625 (error code: 2)
Time since start: 0.21082711219788 seconds

@jameswill
Copy link
Author

Hi,

Just wanted to follow up on this ?

@jameswill
Copy link
Author

jameswill commented Mar 24, 2020

Hi,

Again getting the same issue on feng office 3.8.1.24 version as well.

Is there anyone to solve this ?

feng office

@peternagelsa
Copy link

Hi James, I am not experiencing the exact same issue, but something similar. Mine relates to the email functionality. As soon as a press check email I am confronted with a similar screen as yours...I have to refresh my browser to get a 'normal' view. I am desperate to get this resolved. Let us keep in touch

Peter

@yannickpschroeder
Copy link

Some time has passed, but this issue still is open. Did you guys found a solution yet?

@yannickpschroeder
Copy link

HI,

I have manually installed feng office 3.7.2.16 on one of my test servers with PHP 7.1 and Mysql 5.6

When I login into admin panel, I can not see any modules or any setting page.

feng office

When I checked into cache/log.php I found following error.

Session "default" started at 2019-07-23T18:03:05+0000
#1 ERROR: Error: Undefined index: dimensions in '{Path}/{to}/{fengoffice}/application/layouts/website.php' on line 560 (error code: 8)
#2 ERROR: Error: Invalid argument supplied for foreach() in ''{Path}/{to}/{fengoffice}/application/layouts/website.php' on line 560 (error code: 2)
Time since start: 0.31480884552002 seconds

I am also getting same issue on feng office 3.7.0.5 Can anyone let me know what is causing this issue ?

These 2 Error messages I was able to fix with the solution of tedley:

On a fresh install I had the same issue. It appeared that the database did not get the initial population of data. I checked this hunch by going into the MySQL CLI and checking the dimensions table.

Code: [Select]

mysql -p
use fengoffice;
select count(id) from fo_dimensions;

The command returned:
"Empty set (0.01 sec)"

Running on an FC16 box, MySQL database, fengoffice_2.2.4.1.zip installed in /opt/fengoffice/ I fixed via the following:

First the initial data needs to be prepped out of the php format. The source for me was located at /opt/fengoffice/plugins/core_dimensions/install/sql/mysql_initial_data.php. The file contains references to the php variable $table_prefix, so the php stanza and table_prefix had to be replaced with whatever the actual table prefix was. In my case, I stuck with the default "fo_". To do this I used sed.

Code: [Select]

sed -e 's/..php\ echo\ $table_prefix\ ../fo_/g' /opt/fengoffice/plugins/core_dimensions/install/sql/mysql_initial_data.php > /tmp/fengoffice_mysql_initial_data.sql

I put the SQL in /tmp/ so MySQL could read it via a "SOURCE" command coming up.

Then "mysql -p" as either the fengoffice user, or in my case root.

Use the database so the data loads in the right spot.
mysql> use fengoffice;

Then load the initial data:
mysql> source /tmp/fengoffice_mysql_initial_data.sql;

After that ran, then the same check from the start
Code: [Select]

mysql -p
use fengoffice;
select count(id) from fo_dimensions;

Yields:
+-----------+
| count(id) |
+-----------+
| 1 |
+-----------+
1 row in set (0.00 sec)

And the page loads successfully.

Hope this helps someone else, season to taste!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants