install_unattended.php.txt errors and custom problems and ...

1 view
Skip to first unread message

simplegroupware_google_group

unread,
Sep 6, 2010, 8:57:36 AM9/6/10
to Simple Groupware
Hi,

A) when i try to install version 0.642 via
/usr/bin/php -d register_argc_argv=1 -q /var/www/html/machines/src/ext/
install_unattended.php.txt http://127.0.0.1/machines/src/index.php fr
root $pass mysql 127.0.0.1 sgmachines sgmachines $pass2

>Everything seems ok :
>Building translations ...
>
>Running setup ...
>
>Simple Groupware 0.642
>Processing schema updates ...
>Processing schema ...
>blank.xml reload schemabookmarks.xml reload schemabrands.xml reload schemacalendar.xml reload >schemacategories.xml reload schemachat.xml reload schemacms.xml reload schemacode.xml reload >schemacompanies.xml reload schemacontactactivities.xml reload schemacontactgroups.xml reload >schemacontacts.xml reload schemacostcenter.xml reload schemadepartments.xml reload >schemadevicetypes.xml reload schemadistributors.xml reload schemaemails.xml reload >schemaexpenses.xml reload schemafaq.xml reload schemafiles.xml reload schemaforum.xml reload >schemagallery.xml reload schemagraphviz.xml reload schemahelpdesk.xml reload schemahtmldocs.xml >reload schemainventories.xml reload schemalocations.xml reload schemanews.xml reload schemanotes.xml >reload schemaoffices.xml reload schemaoffline.xml reload schemapasswords.xml reload schemaportal.xml >reload schemapositions.xml reload schemaprojects.xml reload schemaresources.xml reload >schemaspreadsheets.xml reload schemastatuses.xml reload schematasks.xml reload schematemplates.xml >reload schematimesheets.xml reload schemawiki.xml reload schemadhcp_service.xml reload >schemadhcp_shared_network.xml reload schemadhcp_subnet.xml reload schemadhcp_pool.xml reload >schemadhcp_group.xml reload schemadhcp_host.xml reload schemadhcp_class.xml reload >schemadhcp_subclass.xml reload schemadhcp_options.xml reload schemachat2.xml reload >schemaevents.xml reload schemaexperiment.xml reload schemagroups.xml reload schemahosts.xml reload >schemaidentities.xml reload schemanosql_admin.xml reload schemanosql_backups.xml reload >schemanosql_bookmarks.xml reload schemanosql_calendar_contacts.xml reload >schemanosql_calendar_users.xml reload schemanosql_cifs.xml reload schemanosql_csv_calendar.xml >reload schemanosql_csv_contacts.xml reload schemanosql_fs.xml reload schemanosql_icalendar.xml reload >schemanosql_imap.xml reload schemanosql_index.xml reload schemanosql_ldap.xml reload >schemanosql_ldif_contacts.xml reload schemanosql_modules.xml reload schemanosql_phpinclude.xml >reload schemanosql_pmwiki.xml reload schemanosql_pop3.xml reload schemanosql_processes.xml reload >schemanosql_rights.xml reload schemanosql_rights_edit.xml reload schemanosql_rss.xml reload >schemanosql_schema.xml reload schemanosql_self_registration.xml reload schemanosql_smtp.xml reload >schemanosql_status.xml reload schemanosql_structure.xml reload schemanosql_tables.xml reload >schemanosql_tablesizes.xml reload schemanosql_variables.xml reload schemanosql_vcard.xml reload >schemanosql_xml.xml reload schemasearch.xml reload schemasession.xml reload schemastats.xml reload >schematree.xml reload schemausers.xml reload schema
>Processing sessions ...
>Processing trigger::calcappointment ...
>Processing tasks duration ...
>Processing folder structure ...
>Processing default groups ...
>Processing config.php ...
>
>C O N T I N U E
>
>Powered by Simple Groupware, Copyright (C) 2002-2010 by Thomas Bley.
>
>Finished.


but when i connect i ve always a popup complaining about "error reload
schema"
???

B) i try to put a "custom/modules/core/folders.xml" at the root of
simplegroupware install (in my example before it is at /var/www/html/
machines/) but when i do the install (no matter if it is on command
line or on web ui ) thos modifications are not taken into account :
where is my mistake ?

C) the extension is an excellent idea, but we need to have the full
description of the sgsml language "before" :-}

D) is there a way to have a button in the ui that allow a callback ?
(i mean when i display a table i would have a button that allows me to
launch a process (in php) on the whole table not to modify the data in
the SQL, but to export and post-process the exported datas)

Many thanks in advance




Thomas

unread,
Sep 7, 2010, 7:34:49 AM9/7/10
to Simple Groupware
Hello,

A) looks like you've activated the debug mode, see "<sgs-dir>/
simple_store/config.php":
define('DEBUG',true);

should be:
define('DEBUG',false);

B) This works for me with 0.642.
To use folders.xml, you need to set "install demo folders" in the
setup and the table simple_sys_tree needs to be empty.
To use folders_minimal.xml, you may not set "install demo folders" in
the setup.

C) That's in progress:
http://www.simple-groupware.de/cms/SgsMLReference

D) You can add a button with this code in sgsML:
<viewbutton views="all" name="my_button" displayname="Do sth"
onclick="locate('my_file.php');" right="read" />

instead of locate(), you can also use ajax:
ajax('myclass_ajax::my_function', [parameters], function(result) {
// do sth
});

bye
Thomas

On Sep 6, 2:57 pm, simplegroupware_google_group

lb gmail

unread,
Sep 7, 2010, 8:20:31 AM9/7/10
to simple-g...@googlegroups.com
Thomas a �crit :

> Hello,
>
> A) looks like you've activated the debug mode, see "<sgs-dir>/
> simple_store/config.php":
> define('DEBUG',true);

not me!:-}
decompressing the tarball i ve got in src/core/setup.php
line 41 : define("DEBUG",true);
line 593 :
"MENU_AUTOHIDE"=>"false","TREE_AUTOHIDE"=>"false","DEBUG"=>(DEBUG?"true":"false"),


> should be:
> define('DEBUG',false);
>
> B) This works for me with 0.642.
> To use folders.xml, you need to set "install demo folders" in the
> setup and the table simple_sys_tree needs to be empty.
> To use folders_minimal.xml, you may not set "install demo folders" in
> the setup.

i m going to have a try

wonderfull !!!!


> D) You can add a button with this code in sgsML:
> <viewbutton views="all" name="my_button" displayname="Do sth"
> onclick="locate('my_file.php');" right="read" />
>

ok


> instead of locate(), you can also use ajax:
> ajax('myclass_ajax::my_function', [parameters], function(result) {
> // do sth
> });

well i don't understand well those last lines, is it in the xml files ?
in a php file ?


PS:
Since more than 2 years that i use your products in my lab, i ve always
been surprised (in the best sense) about the speed and the accuracy of
your answers!
Sometimes it worth to say that we're happy with something :-}


thb...@gmail.com

unread,
Sep 7, 2010, 8:40:45 AM9/7/10
to simple-g...@googlegroups.com
Hello,


> line 41 : define("DEBUG",true);

This goes through the translation in core/classes/setup.php:
$data = str_replace("define(\"DEBUG\",true);","define(\"DEBUG\",false);",$data);

So if you're not selecting "developer" as language in the setup, "debug" should be false.


> well i don't understand well those last lines, is it in the xml files ? in a php file ?

Yes in sgsML, e.g.:

<viewbutton views="all" name="my_button" displayname="Do sth" onclick="ajax('myclass_ajax::my_function', [parameters], function(result) {
// do sth
});" right="read" />

"myclass_ajax::my_function" will be called as PHP code.

bye
Thomas

On Sep 7, 2010 2:20pm, lb gmail <lauren...@gmail.com> wrote:
>  Thomas a écrit :
>
>
> Hello,
>
>
>
> A) looks like you've activated the debug mode, see "/

>
> simple_store/config.php":
>
> define('DEBUG',true);
>
>
>
>
> not me!:-}
>
> decompressing the tarball i ve got in src/core/setup.php
>
> line 41  :  define("DEBUG",true);
>
> line 593  :   "MENU_AUTOHIDE"=>"false","TREE_AUTOHIDE"=>"false","DEBUG"=>(DEBUG?"true":"false"),
>
>
>
>
>
>
> should be:
>
> define('DEBUG',false);
>
>
>
> B) This works for me with 0.642.
>
> To use folders.xml, you need to set "install demo folders" in the
>
> setup and the table simple_sys_tree needs to be empty.
>
> To use folders_minimal.xml, you may not set "install demo folders" in
>
> the setup.
>
>
>
>
> i m going to have a try
>
>
>
>
>
>
> C) That's in progress:
>
> http://www.simple-groupware.de/cms/SgsMLReference
>
>
>
>
> wonderfull !!!!
>
>
>
>
>
>
> D) You can add a button with this code in sgsML:
>
>
> onclick="locate('my_file.php');" right="read" />
>
>
>
>
> ok
>
>
>
>
>
>
> instead of locate(), you can also use ajax:
>
> ajax('myclass_ajax::my_function', [parameters], function(result) {
>
>   // do sth
>
> });
>
>
>
>
> well i don't understand well those last lines, is it in the xml files ? in a php file ?
>
>
>
>
>
> PS:
>
> Since more than 2 years that i use your products in my lab, i ve always been surprised (in the best sense) about the speed and the accuracy of your answers!
>
> Sometimes it worth to say that we're happy with something :-}
>
>
>
>
>
>
>
>
>
> --
>
> You received this message because you are subscribed to the Google Groups "Simple Groupware" group.
>
> To post to this group, send email to simple-g...@googlegroups.com.
>
> To unsubscribe from this group, send email to simple-groupwa...@googlegroups.com.
>
> For more options, visit this group at http://groups.google.com/group/simple-groupware?hl=en.
>
>
>
>

simplegroupware_google_group

unread,
Sep 7, 2010, 10:35:48 AM9/7/10
to Simple Groupware
I m sorry, i persist :-} (those damned frenchy ...)

-the debug is on if i setup with cli; not if i setup with the web
browser.

-there was a mistake in my cli command-line install :

/usr/bin/php -d register_argc_argv=1 -q /var/www/html/machines/src/ext/
install_unattended.php.txt
http://127.0.0.1/machines/src/index.php fr root $pass mysql 127.0.0.1
sgmachines sgmachines $pass2

i missed the 0/1 at the end of line for using folders.xml or
folders_minimal.xml

so with folders_minimal.xml it becomes :

/usr/bin/php -d register_argc_argv=1 -q /var/www/html/machines/src/ext/
install_unattended.php.txt
http://127.0.0.1/machines/src/index.php fr root $pass mysql 127.0.0.1
sgmachines sgmachines $pass2 0

and now the custom is well processed.
Reply all
Reply to author
Forward
0 new messages