Feng Forum

Support => Feng Office 3 => : marsian February 09, 2015, 05:10:14 AM

: FO 3.0.6: Error 500 and other bugs
: marsian February 09, 2015, 05:10:14 AM
Hi there,

We discovered two bugs within the current 3.0.6 build that started to occur after we uploaded two files (1 PPTX and one XLSX) to the Project:

1) Documents pane on the Overview page:
Fatal error: Call to undefined function lcfirst()
If you don't run FO in Debug mode it will Crash the overview page with Error 500, if you enable debug mode the page at least works and just the "Documents" Widget throws this line.

2) Recurring bug entries in log php:
Session "default" started at 2015-02-08T18:14:14+0000
#1 ERROR: Error: Illegal offset type in isset or empty in Environment/classes/dataaccess/DataObject.class.php on line 374 (error code: 2 )
#2 ERROR: Error: Illegal offset type in isset or empty in Environment/classes/dataaccess/DataObject.class.php on line 374 (error code: 2 )
#3 ERROR: Error: Undefined index:  logo in application/views/notifier/General.php on line 8 (error code: 8 )
(read a slash for every blank)

#1 and #2 has the following line, but mit PHP knowledge is not good enough to fix it:
if(isset($this->column_values[$column_name])) return $this->column_values[$column_name];

Any ideas?

Thanks,


PS: Honestly, if the code tags will cause the forum's URL stopping mechanism to start working and won't let you post a line of code, why aren't you removing it at all? Took me 25 minutes to fiddle around with it until i ttried it with the Quote Feature??  :o
: Re: FO 3.0.6: Error 500 and other bugs
: marsian February 12, 2015, 02:12:05 PM
Update:

Unfortunately the error for #1 is still there, even after the 3.0.7 upgrade :(

The other two did not happen yet, let's see if they're fixed.

Any idea on what to look for in regards to #1?

Thanks,
: Re: FO 3.0.6: Error 500 and other bugs
: steveg February 16, 2015, 01:10:25 PM
Hi there,

We discovered two bugs within the current 3.0.6 build that started to occur after we uploaded two files (1 PPTX and one XLSX) to the Project:

1) Documents pane on the Overview page:
Fatal error: Call to undefined function lcfirst()
If you don't run FO in Debug mode it will Crash the overview page with Error 500, if you enable debug mode the page at least works and just the "Documents" Widget throws this line.


What version of php?  You need at least php 5.3 for lcfirst() to work, which is what appears to be the issue.  You really should be operating at least 5.4 for security's sake.
: Re: FO 3.0.6: Error 500 and other bugs
: marsian February 17, 2015, 12:36:37 PM
Thank you for that hint, we'll check that :)
: Re: FO 3.0.6: Error 500 and other bugs
: marsian February 18, 2015, 11:45:00 AM
Update: doing the upgrade fixed it, thank you :)
: Re: FO 3.0.6: Error 500 and other bugs
: steveg February 18, 2015, 11:54:19 AM
Update: doing the upgrade fixed it, thank you :)

No problems - glad it's working for you!
: Re: FO 3.0.6: Error 500 and other bugs
: ToddForsberg February 18, 2015, 08:12:17 PM
I also got the 500 error when trying to create a "tag"
: Re: FO 3.0.6: Error 500 and other bugs
: steveg February 18, 2015, 10:31:00 PM
I also got the 500 error when trying to create a "tag"

Can you let us know what the server logs say for this 500 error?
: Re: FO 3.0.6: Error 500 and other bugs
: ToddForsberg February 19, 2015, 12:36:56 PM
Where can I find the server log?
: Re: FO 3.0.6: Error 500 and other bugs
: ToddForsberg February 19, 2015, 01:01:26 PM
Also, In chrome console window I get this error (see attachment) on page refresh:


: Re: FO 3.0.6: Error 500 and other bugs
: steveg February 19, 2015, 01:03:30 PM
Where can I find the server log?

ssh into your server - usually it is in the /var/log directory  although that can vary depending on your software - what is your operating system?
: Re: FO 3.0.6: Error 500 and other bugs
: ToddForsberg February 19, 2015, 01:08:43 PM
I am using Arvixe Hosting.  I think it is Windows Server 2012 R2.
: Re: FO 3.0.6: Error 500 and other bugs
: marsian February 19, 2015, 03:42:38 PM
If you have FTP Access you can go to /Cache/log.php , it will also contain the error Messages.
: Re: FO 3.0.6: Error 500 and other bugs
: steveg February 19, 2015, 03:56:19 PM
If you have FTP Access you can go to /Cache/log.php , it will also contain the error Messages.

True - but some 500 server errors will not show up there.
: Re: FO 3.0.6: Error 500 and other bugs
: steveg February 19, 2015, 03:56:59 PM
I am using Arvixe Hosting.  I think it is Windows Server 2012 R2.

Ah sorry - can't help you.  I am only familiar with Linux based OS.
: Re: FO 3.0.6: Error 500 and other bugs
: bendraper1 February 21, 2015, 07:08:48 AM
I have the same problem of being unable to add tags in 3.0.6 (and the 3.0.7 upgrade hasn't been rolled out to my servers yet).

The error log when I try to access the tag through the admin settings, and then from the sidebar (add tag), respectively, are below:
Session "default" started at 2015-02-21T10:02:44+0000
#1 ERROR: Error: Invalid argument supplied for foreach() in '/home/lawchar/public_html/application/views/more/section1.php' on line 46 (error code: 2)
#2 ERROR: Error: Undefined index: task in '/home/lawchar/public_html/application/views/more/section1.php' on line 81 (error code: 8)
#3 ERROR: Error: Undefined variable: add_first_obj_onclick in '/home/lawchar/public_html/application/views/more/section1.php' on line 104 (error code: 8)
Time since start: 0.17320895195 seconds
-------------------------------------------------------------------------------

Session "default" started at 2015-02-21T10:03:04+0000
#1 ERROR: Error: Cannot modify header information - headers already sent by (output started at /home/lawchar/public_html/application/functions.php:1937) in '/home/lawchar/public_html/application/layouts/json.php' on line 1 (error code: 2)
Time since start: 0.397472143173 seconds
-------------------------------------------------------------------------------

Session "default" started at 2015-02-21T10:03:31+0000
#1 ERROR: Error: Undefined variable: selected_members in '/home/lawchar/public_html/application/views/member/add.php' on line 209 (error code: 8)
Time since start: 0.287874221802 seconds
-------------------------------------------------------------------------------

I'm not entirely sure what the middle error is, I literally go straight from the tags in the admin menu (which then gives the 500 error) to the tags in the sidebar. This brings up the "add new tag" page, but when you hit "add tag" the 500 error appears again.

Hope that this helps get to the bottom of the problem.

Server stats are:
Apache version   2.2.26
PHP version   5.3.29
MySQL version   5.5.40-cll
Architecture   x86_64
Operating system   linux
: Re: FO 3.0.6: Error 500 and other bugs
: bendraper1 February 24, 2015, 05:33:34 AM
So I've upgraded to 3.0.7 and the 500 error when trying to use tags remains.

Error logs below. Any thoughts would be appreciated.

Incidentally the error code  8) in the previous post, is error code 8
Session "default" started at 2015-02-24T08:21:29+0000
#1 ERROR: Error: Undefined variable: selected_members in '/home/lawchar/public_html/application/views/member/add.php' on line 209 (error code: 8 )
Time since start: 0.231528043747 seconds
-------------------------------------------------------------------------------

Session "default" started at 2015-02-24T08:24:50+0000
#1 ERROR: Error: unlink(/home/lawchar/public_html/cache/d72d96b36077435b5f67689af9e4edfd7d260c9f) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in '/home/lawchar/public_html/application/models/contacts/Contact.class.php' on line 1492 (error code: 2 )
Time since start: 0.855053901672 seconds
-------------------------------------------------------------------------------

Session "default" started at 2015-02-24T08:25:06+0000
#1 ERROR: Error: Undefined variable: all_perm_deleted in '/home/lawchar/public_html/application/helpers/permissions.php' on line 982 (error code: 8 )
#2 ERROR: Error: Undefined variable: all_perm_deleted in '/home/lawchar/public_html/application/helpers/permissions.php' on line 1073 (error code: 8 )
#3 ERROR: Error: Invalid argument supplied for foreach() in '/home/lawchar/public_html/application/helpers/permissions.php' on line 1073 (error code: 2 )
Time since start: 0.398950099945 seconds
-------------------------------------------------------------------------------

Session "default" started at 2015-02-24T08:25:16+0000
#1 ERROR: Error: Undefined variable: image in '/home/lawchar/public_html/application/views/contact/card.php' on line 22 (error code: 8 )
Time since start: 0.507541179657 seconds
-------------------------------------------------------------------------------

Session "default" started at 2015-02-24T08:27:19+0000
#1 ERROR: Error: Undefined variable: selected_members in '/home/lawchar/public_html/application/views/member/add.php' on line 209 (error code: 8 )
Time since start: 0.214333057404 seconds
-------------------------------------------------------------------------------
: Re: FO 3.0.6: Error 500 and other bugs
: franponce87 March 19, 2015, 04:56:04 PM
So I've upgraded to 3.0.7 and the 500 error when trying to use tags remains.

Error logs below. Any thoughts would be appreciated.

Incidentally the error code  8) in the previous post, is error code 8
Session "default" started at 2015-02-24T08:21:29+0000
#1 ERROR: Error: Undefined variable: selected_members in '/home/lawchar/public_html/application/views/member/add.php' on line 209 (error code: 8 )
Time since start: 0.231528043747 seconds
-------------------------------------------------------------------------------

Session "default" started at 2015-02-24T08:24:50+0000
#1 ERROR: Error: unlink(/home/lawchar/public_html/cache/d72d96b36077435b5f67689af9e4edfd7d260c9f) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in '/home/lawchar/public_html/application/models/contacts/Contact.class.php' on line 1492 (error code: 2 )
Time since start: 0.855053901672 seconds
-------------------------------------------------------------------------------

Session "default" started at 2015-02-24T08:25:06+0000
#1 ERROR: Error: Undefined variable: all_perm_deleted in '/home/lawchar/public_html/application/helpers/permissions.php' on line 982 (error code: 8 )
#2 ERROR: Error: Undefined variable: all_perm_deleted in '/home/lawchar/public_html/application/helpers/permissions.php' on line 1073 (error code: 8 )
#3 ERROR: Error: Invalid argument supplied for foreach() in '/home/lawchar/public_html/application/helpers/permissions.php' on line 1073 (error code: 2 )
Time since start: 0.398950099945 seconds
-------------------------------------------------------------------------------

Session "default" started at 2015-02-24T08:25:16+0000
#1 ERROR: Error: Undefined variable: image in '/home/lawchar/public_html/application/views/contact/card.php' on line 22 (error code: 8 )
Time since start: 0.507541179657 seconds
-------------------------------------------------------------------------------

Session "default" started at 2015-02-24T08:27:19+0000
#1 ERROR: Error: Undefined variable: selected_members in '/home/lawchar/public_html/application/views/member/add.php' on line 209 (error code: 8 )
Time since start: 0.214333057404 seconds
-------------------------------------------------------------------------------

Could you please confirm whether the issue is still happening in the latest version available? Because we have not been able to reproduce it.

As for Error 500, no matter which OS you are running, they are logged within the Apache error log.
In Debian by default this can be found in /var/log/apache2/error.log
But, as it has already been mentioned, the location of the file depends a lot on the OS you are using.

Best,
Francisco