Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - tverdouw

Pages: [1]
1
Feng Office 2 / Re: Can't change user permissions
« on: March 19, 2014, 04:59:28 am »
A friend of my found a temporary fix for the module permissions.
It looks like Feng office is acting different on several operating systems.
He found this line:

Code: [Select]
if (substr(php_uname(), 0, 7) == "Windows" || (defined('DONT_SAVE_PERMISSIONS_IN_BACKGROUND') && DONT_SAVE_PERMISSIONS_IN_BACKGROUND)){
It's to difficult for me to explain because I'm not a coder, but maybe he will give a reply later.

Anyway, to get a temporary fix you could do this:

on application/helpers/permissions.php at line 1252

change
Code: [Select]
save_user_permissions_background($user, $pg_id, $is_guest)to
Code: [Select]
save_user_permissions_background($user, $pg_id, $is_guest = false)

And on top of the same file add this piece of code:

Code: [Select]
define('DONT_SAVE_PERMISSIONS_IN_BACKGROUND', true);

This will force the code to behave like if it's in windows environment.

@Fransisco, can you confirm that we can work with this tempory solution until the problem is realy solved?

Thanks!
Tim

2
Feng Office 2 / Re: Can't change user permissions
« on: March 18, 2014, 04:56:52 pm »
Sounds good Francisco!!
Does this also solves the module permissions problem?

3
Feng Office 2 / Re: Can't change user permissions
« on: March 18, 2014, 06:05:58 am »
Hi Francisco,

The log.php does not give me an error on this case.
A friend of my have installed feng office on his local machine and that worked fine.
Also he imported my database, and on his machine my database runs fine without the problem (all is saved well).
Do you have any other ideas? I have tried several webhostings and with all I bump into the same user permission problem. 
Can this be reported as a bug?

2d problem (less important to me) that only excists on a hosted server is the groups.
I have added a group, but I am unable to edit the group (it gives a error 500 Internal server error)
Again when doing this on a local installation everything works fine also after importing my database.
This problem generated a log file in the log.php

Session "default" started at 2014-03-18T08:52:57+0000
#1 ERROR: Error: Missing argument 3 for save_user_permissions_background(), called in /home/timprodu/public_html/crm/application/controllers/GroupController.class.php on line 99 and defined in '/home/timprodu/public_html/crm/application/helpers/permissions.php' on line 1207 (error code: 2)
#2 ERROR: Error: Undefined variable: is_guest in '/home/timprodu/public_html/crm/application/helpers/permissions.php' on line 1268 (error code: 8)
Time since start: 0.45739316940308 seconds
-------------------------------------------------------------------------------

(sorry, i was not authorised to apply the code tag)

4
Feng Office 2 / Re: Can't change user permissions
« on: March 17, 2014, 02:53:57 pm »
Thanks for the quick response Francisco,

I will take a look at it this evening.
I haven't made any user groups yet? Do I need to do that first?

Many thanks,
Tim

5
Feng Office 2 / Re: Can't change user permissions
« on: March 17, 2014, 12:41:54 pm »
Hi Francisco,

I realy appreciate your answer!
I have installed a new installation with version 2.5.1.2 but the problem still excists.

I have noticed that the problem does not excist with a installation of version 2.5
Every newer version has this problem.

Please try it on a softaculous demo account and you will see that it is a general problem:
softaculous.com/demos/Feng_Office

I hope to hear from you soon.

Thanks!
Tim

6
Feng Office 2 / Re: new installed 2.5.1.1 Cant add email account
« on: March 15, 2014, 03:53:33 pm »
Thank you so much Ehu!
Much appreciated!

7
Feng Office 2 / Re: Can't change user permissions
« on: March 13, 2014, 05:50:56 pm »
Could someone please help?

8
Feng Office 2 / Re: new installed 2.5.1.1 Cant add email account
« on: March 13, 2014, 05:47:33 pm »
Hi Ehu,

Sounds great!
Can you specify what line you have added to the database? (maybe send a screenshot?)

Thanks!

9
Feng Office 2 / Can't change user permissions
« on: March 12, 2014, 07:54:33 am »
When I try to change user permissions the changes are not saved.
Please see the video where I show you.

youtu.be/SvaaztuTZ5w

Someone please help, as this is one of the most important options to work with a team.

10
Feng Office 2 / Re: new installed 2.5.1.1 Cant add email account
« on: March 12, 2014, 07:50:31 am »
I bumb into the exact same problem with the same error message when trying to add a gmail account.
Does anyone know how to fix this?

Pages: [1]