Menu

#25 stock at second page after choosing language in /setup.php

v1.0_(example)
open
nobody
None
5
2015-02-05
2015-02-04
H.Safe
No

Hello
There seems to be a problem that I can not get through while in the initial setup. This is not actually my first install and have successfully deployed earlier. However, am stuck at the begining and there is not much of a hint I can think of.
I installed the requirements based on the manual(php, apache and mysql) all from the base repo of centos 6.5. I have double-checked also if the php is ok and required mods are installed per the instructions.
(PHP 5.3.3,mysql-.1.73-3.el6_5.x86_64,Apache/2.2.15)
I did the chmod 666 on the config.php and put the main webcollab-3.40 dir under the /var/www/html/ with apache:apache -R owner. I also created the webcollab user in mysql and imported the tables successfully from the schema_mysql_innodb.sql. I can now get to the mysql by that user and can see the tables as well:
Database changed
mysql> show tables;
+------------------+
| Tables_in_col |
+------------------+
| config |
| contacts |
| contacts_tasks |
| files |
| forum |
| login_attempt |
| logins |
| maillist |
| seen |
| site_name |
| taskgroups |
| tasks |
| tokens |
| usergroups |
| usergroups_users |
| users |
+------------------+
Now browsing to the http;//myserver/webcollab/setup.php; I initially see the page for set up with the: login language English page to beging the installation then I press ok to move to next step to get the data populated by then face blank page,

checking the errors I can see this which is beyond me and can not think of how to resolve it and appreciate yor help:

[Wed Feb 04 17:11:55 2015] [error] [client 192.168.2.177] PHP Fatal error: Cannot redeclare error() in /var/www/html/webcollab/includes/common.php on line 319, referer: http://192.168.2.73/webcollab/setup.php

What is the above error and why is it created? the only difference of this server and another one is that this server hosts an owncloud under the same dir in /var/www/html and it is working. Can you please help???

Discussion

  • H.Safe

    H.Safe - 2015-02-04

    Oh forgot to mention that with a simple script on the root dir I tested the php and mysql communication which was successful as well...

     
  • Andrew Simpson

    Andrew Simpson - 2015-02-05

    Interesting. After a bit of code tracing, it would appear that the problem occurs when [webcollab]/includes/common.php is loaded in the code. You could - I think - probably verify this by trying to use update.php or index.php and seeing the same error.

    The error message complains that error() is declared twice. This could only happen if common.php was loaded twice. You can verify by 'grep' that common.php is always loaded with 'require_once' or 'include_once'. I have just checked this to be sure. Also, all the the other functions in common.php like safe_data() and warning() would be giving the same errors.

    So the problem is purely and only with error().

    At this point I downloaded Owncloud and found that Owncloud has a function error() too. I can only guess that Owncloud is running with WebCollab and the two error() functions are colliding. Or, that WebCollab is running under Owncloud - with the same result.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.