Koozali.org: home of the SME Server
Obsolete Releases => SME Server 8.x => Topic started by: linuxhelp on November 05, 2011, 07:25:17 PM
-
Hi@All
for test i use two Servers with SME 8.06 Testing enabled, php.5.3.3, groupoffice
on server 1 installed with 8.05,upgraded to 8.06+testing-repos groupffice works with php-5.3.3
on server 2 frest setup with 8.06+testing-repos,php-5.3.3 groupoffice site blank / "add_date" .. error dumped by php-debugger
php.ini is same..what can be wrong? same installed packages by rpm -qa > list.txt
on php-5.2.1 downgrade all is fine but i need php-5.3.3 for a application
i tried..
- rsync repos-files
- rebuild rpmdb
- rsync php.ini
don't know how to fix..
-
site blank / "add_date" .. error dumped by php-debugger
Please post the exact error message instead of paraphrasing as this is not very clear.
-
Permissions (chown -R www:www /home/e-smith/files/ibays/groupoffice)?
Innodb support (config show mysqld)?
Other database settings?
Other contribs (/sbin/e-smith/audittools/newrpms)?
Virtual domain or re-write settings?
LDAP settings?
.htaccess contents?
AllowOverride settings?
FollowSymLinks settings?
Existence of original ibay 'index.html'?
-
Hello@All THANKS FOR YOUR HELP and TIME!!!
sorry for my "stupid" question today i got access to the engine
Error Debug: by php.ini : "Fatal error: Cannot redeclare date_add() in /opt/groupoffice/html/functions.inc on line 102"
this is only shown on the fresh installed server 8.06 + php-5.3.3 i am confused about the old server upgraded from 7.51, to 8.05 no errors, now 8.06 no errors with Groupoffice and PHP 5.3.3. If i downgrade to php-5.2.1 Groupoffice runs pefect.
i tried to make a "installed package list" transfer to the new server and rerun yum with this list to get a identicial setup, but no help.
i try to find out the bug this week at night..
@ MMCARN
Permissions (chown -R www:www /home/e-smith/files/ibays/groupoffice)? no it used default /opt path (nothing changed) no ibay setup
Innodb support (config show mysqld)?
Other database settings? same like 7.5+8.05
Other contribs (/sbin/e-smith/audittools/newrpms)? basic setup only smeserver-awstats nothing else..
Virtual domain or re-write settings? default
LDAP settings? default
.htaccess contents? default
AllowOverride settings? default
FollowSymLinks settings? default
Existence of original ibay 'index.html'? not used
I try to solve it cause many people here uses groupoffice for free comunication at social groups (childrens garden+church+local sport groups) i make nonprofit support there, i support them to remove all M$ Software last year to save money what they can spent to social needs (kids) and reuse old free hardware PCs which i can get for free
-
Error Debug: by php.ini : "Fatal error: Cannot redeclare date_add() in /opt/groupoffice/html/functions.inc on line 102"
this is only shown on the fresh installed server 8.06 + php-5.3.3
This means that in the file /opt/groupoffice/html/functions.inc at line 102 the function date_add() is redefined. This means a second definition. Most likely this is some compatibility fix as date_add is a PHP internal function which should not be (re)defined.
You are most likely only seeing this as this function is implemented in PHP 5.3.0 and up (see http://php.net/manual/en/function.date-add.php), so that would explain why you did not have this with earlier releases of PHP.
You shoudl file a bug with GroupOffice as it seems they did not protect their compatibility functions properly or they are using a reserved function name for their own code base. Both should be fixed by them.
-
Can you check that both files are the same on both serves by running below commands on both servers?
md5sum /opt/groupoffice/html/functions.inc
As well as the output off:
rpm -qa groupoffice
-
You shoudl file a bug with GroupOffice as it seems they did not protect their compatibility functions properly or they are using a reserved function name for their own code base. Both should be fixed by them.
I did a quick Google with the following page as result: http://www.group-office.com/forum/viewtopic.php?t=6842
Leads me to believe you are running a too old version of groupoffice and need an upgrade for PHP 5.3 compatibility.
-
Hi@All,
thanks for your help and time, today i made update on both engines, after reconfigure same issues shown.
- then i remove old smeserver-groupoffice
- checked php -v, displays 5.3.3 with "--enablerepo-smeupdates-testing",
- create ibay groupoffice3 (cause System echos groupoffice is a system account)
- removed index.html at /ibay/groupoffice3/html
- download last groupoffice "3" free version and extract to /ibay/groupoffice/html
- created folders ( /ibay/groupoffice3/html/tmp /ibay/groupoffice3/html/protect / /ibay/groupoffice3/html/public )
- set rights to apache:apache and chmod 0755, run install http://server/groupoffice3/install/install.php
- REMOVE the "install folder" and control all permissions of the installed folders!
Success..
- the only thing is there is no user sync between SME and Groupoffice 3
- no succuessfull run of upgrade2to3.php, i changed path inside old copied config.php but no help..
..but works..
Happy again..
-
- set rights to apache:apache and chmod 0777, run install http://server/groupoffice3/install/install.php
That is a security no-no. You should never, ever chmod files to 777, most of the times 644 is enough, otherwise 755 should do the trick.
-
Hi,
sorry 0777 was wanted for install mode, i removed instal folder + 0777-> 0755 and changed it.
thanks for feedback.
-
hi linuxhelp
how do you downgrade to php 5.2.1 after the 5.3.3 upgrade?
I have same problem with groupoffice and weberp broken under php 5.3.3
Gary Douglas
-
Problem resolved by removing php5.3.3 and reinstalling php5.2.10 from rpms from sme8_6b cd