Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/09/2008, 22:13
Avatar de [NiRVaNa]
[NiRVaNa]
 
Fecha de Ingreso: abril-2004
Ubicación: Someplace In The Middle Of Nowhere!
Mensajes: 325
Antigüedad: 20 años, 1 mes
Puntos: 6
Problema al ejecutar Agata Report en Win XP

Buenas Gente del foro... Antes que nada, aclaro que recurro a ustedes ya que estuve buscando en google y aca en el foro acerca de como levantar la aplicacion de agata y puedo hacerlo.

EN principio les comento que:
* Tengo la version 7 del agata.
* Tengo instalado Apache 2.2 y Php 5 (porque lei que agata ya trae incorporado el php-gtk)
* Tengo la instalacion del SO (WinXP 32bits) en el disco D (Agata se ejecuta desde el C)
* Instale todos los pre-requisitos que se necesitan citados en la pagina de codigolivre...

Ahora bien, descomprimi el zip de agata en el disco C, y al ejecutar no pasó absolutamente nada... entre a ver el archivo "agata.php" y vi que hacia referencia a "C:\Temp y C:\Windows\Temp" al pensar que era esto el problema (porque el windows lo tengo instalado en en el disco D, apunte dichas referencias hacia el disco D y tampoco nada...
Tambien PARE todos los servicios de Apache que estaban corriendo en ese momento y nada..
Al ejecutar el "a.bat" desde la linea de comando sale esto...
Código PHP:
+-----------------------------------------------------------------+
| AGATA Report                                                    |
| Copyleft (l) 2001-2006 Solis Lajeado/RS - Brasil                |
+-----------------------------------------------------------------+
| Licensed under GPL: www.fsf.org for further details             |
|                                                                 |
| Site: http://www.agata.org.br                                   |
+-----------------------------------------------------------------+
| Abstract: A Database reporting tool written in PHP-GTK          |
|                                                                 |
| Started in  August, 10, 2001                                    |
| Author: Pablo Dall'Oglio ([email protected][email protected])   |
+-----------------------------------------------------------------+

Starting Agata Report...

<?
define
('OS'strtoupper(substr(PHP_OS03)));

if (
OS == 'WIN')
{
    
define("bar"'\\');
    if (
is_dir('D:\\temp'))
    {
        
define("temp"'D:\\temp');
    }
    else
    {
        
define("temp"'D:\\windows\\temp');
    }
    
dl('php_gtk.dll');
    
setlocale(LC_ALL'english');
    
Gtk::rc_parse('themes/AceIce/gtk/gtkrc');
}
else
{
    
define("bar"'/');
    
define("temp"'/tmp');
    
dl('php_gtk.so');
    
setlocale(LC_ALL'pt_BR');
}
include_once 
'include/util.inc';
include_once 
'include/define.inc';
include_once 
'classes/util/Trans.class';
include_once 
'classes/core/Project.class';
include_once 
'classes/core/Report.class';
include_once 
'classes/core/Dictionary.class';
include_once 
'classes/core/Label.class';
include_once 
'classes/core/Layout.class';
include_once 
'classes/core/AgataError.class';
include_once 
'classes/core/AgataQuery.class';
include_once 
'classes/core/AgataDataSet.class';
include_once 
'classes/core/AgataConnection.class';
include_once 
'classes/core/AgataCore.class';
include_once 
'classes/core/AgataConfig.class';
include_once 
'classes/core/AgataInterface.class';

class 
App
{
    function 
App()
    {
        include 
'include/setup.inc';
    
$aLanguages = array('en''pt''es''de''fr''it''se');
        
$aThemes array_merge('No theme'GetSimpleDirArray('themes'truenull));

        
$this->StartWindow = &new Gtkwindow(GTK_WINDOW_POPUP);
        
$this->StartWindow->set_border_width(0);
        
$this->StartWindow->set_position(GTK_WIN_POS_CENTER);
        
$this->StartWindow->connect_object('destroy', array('Gtk''Main_quit'));
        
$this->StartWindow->realize();
        
        
$PixStart Gdk::pixmap_create_from_xpm($this->StartWindow->windownull'interface/start_new.xpm');
        
$Start = new GtkPixmap($PixStart[0], $PixStart[1]);
        
        
$fixed = &new GtkFixed;
        
$this->StartWindow->add($fixed);
        
$fixed->put($Start00);
        
        
        
$this->Languages = &new GtkCombo();
        
$this->Languages->set_usize(120,40);
        
$EntryA $this->Languages->entry;
        
$EntryA->set_editable(false);
        
$this->Languages->set_border_width(4);
        
$this->Languages->set_popdown_strings($aLanguages);
        if (
$Language)
        {
            
$EntryA->set_text($Language);
        }
        
$fixed->put($this->Languages348170);
        
        
$this->Themes = &new GtkCombo();
        
$this->Themes->set_usize(120,40);
        
$EntryB $this->Themes->entry;
        
$EntryB->set_editable(false);
        
$this->Themes->set_border_width(4);
        
$this->Themes->set_popdown_strings($aThemes);
        if (
$Theme)
        {
            
$EntryB->set_text($Theme);
        }
        
$fixed->put($this->Themes348220);
        
        
$button = new GtkButton('   OK   ');
        
$button->connect_object('clicked', array($this'Start'));
        
$fixed->put($button416260);
        
        
$button2 = new GtkButton(' ' _a('Close') .  ' ');
        
$button2->connect_object('clicked', array(Gtk'main_quit'));
        
$fixed->put($button2334260);
        
        
$this->StartWindow->show_all();
    }
    
    
    function 
Start()
    {
        
$agataConfig AgataConfig::ReadConfig();
        
$this->StartWindow->hide();
        
$entry1 $this->Languages->entry;
        
$entry2 $this->Themes->entry;
        
$Theme $entry2->get_text();
        
$Language $entry1->get_text();
        
$agataConfig AgataConfig::FixConfig($agataConfig);

        
AgataConfig::WriteSetup($Theme$Language);
        
Trans::SetLanguage($Language);
        
Gtk::rc_parse("themes/$Theme/gtk/gtkrc");
        new 
AgataInterface($agataConfig);
    }
}

$myapp = &new App;
Gtk::main();
?>
Ahora bien... (se esta haciendo un poco largo el post, pero quiero ser lo mas explicativo posible, ya que necesito "reportear" de urgencia) cambie el "<?" por "<?php" y al ejecutarlo empezo a hacer mas cosas que antes... parecia que iba a terminar pero al final me lanzo un ERROR FATAL de PHP que no encontraba una funcion...
Código:
PHP Fatal error:  Call to undefined function:  getsimpledirarray() in C:\agata\a
gata.php on line 64
y la linea de codigo correspondiente al error es esta:
Código PHP:
$aThemes array_merge('No theme'GetSimpleDirArray('themes'truenull)); 
Por favor, espero que alguien pueda ayudarme con esto. Muchas Gracias...