Buenos dias:
Estoy instalando en produccion la version de preinscripcion 3.12.0 en Guarani 3.18.1 y cuando corro el comando:
./preinscripcion user_admin
Me da este error:
[Symfony\Component\Debug\Exception\FatalThrowableError]
Parse error: syntax error, unexpected ‘,’
Y no hace nada.
Ya habia probado y instaldo la versino 3.11.0 de preinscripcion y no tuve problemas, pero con la 3.12 surgio esto. Me falta algo que ver?
Saludos
¿se actualizaron las dependencias de Composer?
Revisa de no tener cambios en los archivos composer.json y composer.lock, luego correr el comando composer install.
Hola Leonel:
Gracias por responder. Te cuento, cuando corro:
composer install --prefer-dist --no-dev --optimize-autoloader
Me dice, muchas cosas raras. Esta la version 7.3.23 de php. Asi que esta lo que pide preinscripcion. No se cual es el problema.
Nothing to install or update
Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead.
Package zendframework/zendframework1 is abandoned, you should avoid using it. Use zendframework/zendframework instead.
Generating optimized autoload files
Deprecation Notice: Class siu\util\consola\comandos\limpiar_cache located in ./src/siu/util/consola/limpiar_cache.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Zend_Tool_Framework_Provider_DocblockManifestInterface located in ./vendor/zendframework/zendframework1/library/Zend/Tool/Framework/Provider/DocblockManifestable.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Zend_Gdata_Analytics_Goal located in ./vendor/zendframework/zendframework1/library/Zend/Gdata/Analytics/Extension/Goal.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Zend_Application_Resource_UserAgent located in ./vendor/zendframework/zendframework1/library/Zend/Application/Resource/Useragent.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Zend_Validate_Barcode_IntelligentMail located in ./vendor/zendframework/zendframework1/library/Zend/Validate/Barcode/Intelligentmail.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Power_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/powerBestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/bestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Exponential_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/exponentialBestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Logarithmic_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/logarithmicBestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Polynomial_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/polynomialBestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Linear_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/linearBestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Tal cual como decís, ejecute composer install --prefer-dist --no-dev --optimize-autoloader y dice:
- Installing siu/chulupi-framework (v2.3.1): Cloning d8dfbf291c from cache
Package zendframework/zendframework1 is abandoned, you should avoid using it. Use zendframework/zendframework instead.
Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead.
Generating optimized autoload files
Deprecation Notice: Class siu\util\consola\comandos\limpiar_cache located in ./src/siu/util/consola/limpiar_cache.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Zend_Gdata_Analytics_Goal located in ./vendor/zendframework/zendframework1/library/Zend/Gdata/Analytics/Extension/Goal.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Zend_Application_Resource_UserAgent located in ./vendor/zendframework/zendframework1/library/Zend/Application/Resource/Useragent.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Zend_Validate_Barcode_IntelligentMail located in ./vendor/zendframework/zendframework1/library/Zend/Validate/Barcode/Intelligentmail.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Zend_Tool_Framework_Provider_DocblockManifestInterface located in ./vendor/zendframework/zendframework1/library/Zend/Tool/Framework/Provider/DocblockManifestable.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Logarithmic_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/logarithmicBestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Linear_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/linearBestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Exponential_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/exponentialBestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/bestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Power_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/powerBestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class PHPExcel_Polynomial_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/polynomialBestFitClass.php does not comply with psr-0 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///usr/local/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
> siu\Install::postUpdate
La mayoría son Deprecation Notice, igualmente descarga las librerías y no da error, lo vamos a revisar.
¿te funciona ahora el comando bin/preinscripcion user_admin?
Si probas ejecutando composer install --prefer-dist --no-dev ya no muestra esos Deprecation Notice.
Buenos dias:
Vuelvo a correr todo y sigue igual. El svn status no trae nada. Nada se modifico.
El colab es https://colab.siu.edu.ar/svn/guarani3/nodos/unpata/preinscripcion/trunk/3.12.0
Otra cosa, ejecute el comando de la siguiente manera:
root@guaranitest:/usr/local/proyectos/preinscripcion/3.12.0/bin# . preinscripcion user_admin
dirname: opción inválida – ‘b’
Pruebe ‘dirname --help’ para más información.
Could not open input file: /root/…/src/siu/util/consola/run.php
Aca da otro tipo de error.
Lo de abajo es el error que da cuando copio y pego lo que esta en la pagina.
root@guaranitest:/usr/local/proyectos/preinscripcion/3.12.0# composer install --prefer-dist --no-dev
Do not run Composer as root/super user! See How do I install untrusted packages safely? Is it safe to run Composer as superuser or root? - Composer for details
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead.
Package zendframework/zendframework1 is abandoned, you should avoid using it. Use zendframework/zendframework instead.
Generating autoload files
siu\Install::postUpdate
root@guaranitest:/usr/local/proyectos/preinscripcion/3.12.0# cd bin/
root@guaranitest:/usr/local/proyectos/preinscripcion/3.12.0/bin# ./preinscripcion user_admin
Hola Leonel:
Con lo ultimo que me pasaste descubri el error. En el archivo config.php, en la parte de configuracion del correo, en seguridad estaba:
seguridad =>, y tenia que estar seguridad=>‘’,
Ya funciona. Gracias por todo!!!