evolution-cms / evolution

Welcome to the new evolution of MODX Evolution!
GNU General Public License v3.0
260 stars 95 forks source link

Update 3.1.8 doesn't work: Symfony error #2048

Closed sirfranz closed 2 years ago

sirfranz commented 2 years ago

Hi there,

when I try to update to 3.1.8 I get this error:

https://www.this-domain-is-hidden.de/install/index.php?action=install Declaration of Symfony\Component\Translation\TranslatorInterface::getLocale() must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::getLocale(): string File: /var/www/web301/html/core/vendor/symfony/translation/TranslatorInterface.php Line: 69 Source: Parser / Declaration of Symfony\Component\Translation\TranslatorInterface::getLocale() must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::getLocale(): string - Idle (unknown) #1. EvolutionCMS\ExceptionHandler->handleShutdown(), on line #2. EvolutionCMS\ExceptionHandler->fatalExceptionFromError(array $var1, 0), core/src/ExceptionHandler.php on line 50

sirfranz commented 2 years ago

Here are more details:

  1. This problem occures on installation-step 4 (after accepting the GNU GPL).
  2. And it only occurs if an admin is logged in.
  3. After deleting all cookies: the frontend is working.
  4. But if I login as admin the error occures agin. So I can not login as admin.

The error at login is: Fatal error: Declaration of Symfony\Component\Translation\TranslatorInterface::getLocale() must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::getLocale(): string in /var/www/web301/html/core/vendor/symfony/translation/TranslatorInterface.php on line 69
<!DOCTYPE html>Evolution CMS Content Manager »

             <link rel="stylesheet" type="text/css" href="http://www..de/manager/media/style/default/style.css" />
             <style type="text/css">body { padding:10px; } td {font:inherit;}</style>
             </head><body>
             <b>Declaration of Symfony\Component\Translation\TranslatorInterface::getLocale() must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::getLocale(): string</b><br />

« Evolution CMS Parse Error »

Declaration of Symfony\Component\Translation\TranslatorInterface::getLocale() must be compatible with Symfony\Contracts\Translation\LocaleAwareInterface::getLocale(): string

Error information
File /var/www/web301/html/core/vendor/symfony/translation/TranslatorInterface.php
Line 69

Basic info
REQUEST_URI http://www..de/manager/?a=0
Referer http://www..de/manager/
User Agent you do not have to know
IP you do not have to know
Current time 2022-01-06 15:07:09

Benchmarks
MySQL 0.0000 s (0 Requests)
PHP 0.1367 s
Total 0.1367 s
Memory 7.60269165039 mb

Backtrace
EvolutionCMS\ExceptionHandler->handleShutdown()
on line
EvolutionCMS\ExceptionHandler->fatalExceptionFromError(array $var1, 0)
core/src/ExceptionHandler.php on line 50
fourroses666 commented 2 years ago

I wonder how you updated. I don't seem to have that issue after updating from 3.1.7 and with the manager Update button.

sirfranz commented 2 years ago

I have used the manager update-button, too.

Which manager-language do you use?

fourroses666 commented 2 years ago

Netherlands / NL.

fourroses666 commented 2 years ago

Hey I have the same issue now on an other server..

fourroses666 commented 2 years ago

On front I see Error and also when trying to log in. Manager loginpage is visible. Stuck at: https://my--site.nl/install/index.php?action=install /install/ is still reachable.

sirfranz commented 2 years ago

Could this be a plugin problem?

fourroses666 commented 2 years ago

I can try on a very clean version I have without many plugins.

fourroses666 commented 2 years ago

I have talked with a developer about this and he sees the issue. Tomorrow it will be fixed. Don't know whats the issue thow.

Strangely it worked on a site I updated yesterday on a different host.

sirfranz commented 2 years ago

Many thanks!

Dmi3yy commented 2 years ago

Try install fresh 3.1.8 on php 7.4. all ok Install fresh 3.1.7 and after update to 3.1.8 (by click abate button) all ok

Can you write more info about server

fourroses666 commented 2 years ago
Notice: Undefined index: installmode in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 35
Notice: Undefined index: databasehost in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 39
Notice: Undefined index: database_type in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 40
Notice: Undefined index: database_collation in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 43
Notice: Undefined index: database_connection_charset in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 45
Notice: Undefined index: database_connection_method in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 46
Notice: Undefined index: database_name in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 47
Notice: Undefined index: cmsadmin in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 48
Notice: Undefined index: cmsadminemail in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 49
Notice: Undefined index: cmspassword in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 50
Notice: Undefined index: managerlanguage in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 51
Notice: Undefined index: database_type in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 79
Notice: Undefined index: databasehost in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 79
Notice: Undefined index: database_name in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 79
Notice: Undefined index: database_name in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 857
Notice: Undefined index: database_name in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 857
Notice: Undefined variable: output in /home/xxx/domains/xxx.nl/public_html/install/src/controllers/install.php on line 858

mislukt! could not find driver
fourroses666 commented 2 years ago

ps. Did a downgrade with the installer to 3.1.7 and the site works again.

sirfranz commented 2 years ago

Try install fresh 3.1.8 on php 7.4. all ok Install fresh 3.1.7 and after update to 3.1.8 (by click abate button) all ok

Can you write more info about server

Many thanks. Here are some of my server-data (3.1.7 working; 3.1.8 does not work):

EVO-Version 3.1.7 Veröffentlichungsdatum Oct 06, 2021 (evo published date) PHP Version 7.4.3 Zugriffsberechtigung Aktiviert (access privileg atctive) Server-Zeit 16:48:32 (server time) Ortszeit 16:48:32 (locale time) Server-Zeitverschiebung 0 h (server time shift) Datenbank-Name xxxx (db name) Datenbank-Server localhost (db hoset) Datenbank-Version 5.7.25 (db version = mysql version) Datenbank-Zeichensatz latin1 (charset) Datenbank-Kollations-Zeichensatz latin1_german1ci (collation) Tabellen-Präfix modx (table prefix) MODX_BASE_PATH /var/www/xyz/html/ MODX_BASE_URL / MODX_MANAGER_URL https://www.xyz.de/manager/ MODX_MANAGER_PATH /var/www/xyz/html/manager/ MODX_SITE_URL https://www.xyz.de/

System | Linux alfa3202 4.9.44-040944-generic #201708161731 SMP Wed Aug 16 21:34:20 UTC 2017 x86_64 -- | -- Build Date | Feb 25 2020 17:21:29 Server API | CGI/FastCGI Virtual Directory Support | disabled Configuration File (php.ini) Path | /etc/php7.4/cgi Loaded Configuration File | /etc/apache2/confixx_phpini/xyz/1/php.ini Scan this dir for additional .ini files | /etc/php7.4/cgi/conf.d Additional .ini files parsed | /etc/php7.4/cgi/conf.d/alfa.ini, /etc/php7.4/cgi/conf.d/ext.ini, /etc/php7.4/cgi/conf.d/loader.ini, /etc/php7.4/cgi/conf.d/timezone.ini PHP API | 20190902 PHP Extension | 20190902 Zend Extension | 320190902 Zend Extension Build | API320190902,NTS PHP Extension Build | API20190902,NTS Debug Build | no Thread Safety | disabled Zend Signal Handling | enabled Zend Memory Manager | enabled Zend Multibyte Support | provided by mbstring IPv6 Support | enabled DTrace Support | disabled Registered PHP Streams | php, file, glob, data, http, ftp, compress.bzip2, https, ftps, compress.zlib, phar, zip Registered Stream Socket Transports | tcp, udp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2 Registered Stream Filters | string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, bzip2.*, convert.iconv.*, zlib.*

Core

PHP Version 7.4.3
DirectiveLocal ValueMaster Value
allow_url_fopenOnOn
allow_url_includeOffOff
arg_separator.input&&
arg_separator.output&&
auto_append_fileno valueno value
auto_globals_jitOnOn
auto_prepend_fileno valueno value
browscapno valueno value
default_charsetUTF-8UTF-8
default_mimetypetext/htmltext/html
disable_classesno valueno value
disable_functionsno valueno value
display_errorsOnOn
display_startup_errorsOffOff
doc_rootno valueno value
docref_extno valueno value
docref_rootno valueno value
enable_dlOnOn
enable_post_data_readingOnOn
error_append_stringno valueno value
error_logno valueno value
error_prepend_stringno valueno value
error_reporting2251924567
expose_phpOffOff
extension_dir/opt/php/7.4.3/lib/php/20190902/opt/php/7.4.3/lib/php/20190902
file_uploadsOnOn
hard_timeout22
highlight.comment#FF8000#FF8000
highlight.default#0000BB#0000BB
highlight.html#000000#000000
highlight.keyword#007700#007700
highlight.string#DD0000#DD0000
html_errorsOnOn
ignore_repeated_errorsOffOff
ignore_repeated_sourceOffOff
ignore_user_abortOffOff
implicit_flushOffOff
include_path.:/opt/php/7.4.3/share/pear.:/opt/php/7.4.3/share/pear
input_encodingno valueno value
internal_encodingno valueno value
log_errorsOffOff
log_errors_max_len10241024
mail.add_x_headerOnOn
mail.force_extra_parametersno valueno value
mail.logno valueno value
max_execution_time3030
max_file_uploads2020
max_input_nesting_level6464
max_input_time6060
max_input_vars10001000
memory_limit128M128M
open_basedirno valueno value
output_bufferingno valueno value
output_encodingno valueno value
output_handlerno valueno value
post_max_size64M64M
precision1212
realpath_cache_size4096K4096K
realpath_cache_ttl120120
register_argc_argvOnOn
report_memleaksOnOn
report_zend_debugOnOn
request_orderno valueno value
sendmail_fromno valueno value
sendmail_path/usr/sbin/sendmail -t -i -f xyz@xyz.de/usr/sbin/sendmail -t -i -f xyz@xyz.de
serialize_precision100100
short_open_tagOnOn
SMTPlocalhostlocalhost
smtp_port2525
sys_temp_dirno valueno value
syslog.facilityLOG_USERLOG_USER
syslog.filterno-ctrlno-ctrl
syslog.identphpphp
track_errorsOffOff
unserialize_callback_funcno valueno value
upload_max_filesize64M64M
upload_tmp_dir/var/www/xyz/phptmp//var/www/xyz/phptmp/
user_dirno valueno value
user_ini.cache_ttl300300
user_ini.filename.user.ini.user.ini
variables_orderEGPCSEGPCS
xmlrpc_error_number00
xmlrpc_errorsOffOff
zend.assertions11
zend.detect_unicodeOnOn
zend.enable_gcOnOn
zend.exception_ignore_argsOffOff
zend.multibyteOffOff
zend.script_encodingno valueno value
zend.signal_checkOffOff
sirfranz commented 2 years ago

Try install fresh 3.1.8 on php 7.4. all ok Install fresh 3.1.7 and after update to 3.1.8 (by click abate button) all ok

Can you write more info about server

Do you need direct access? I can grant you access to an test installation, so you can see it live.

Dmi3yy commented 2 years ago

Try install fresh 3.1.8 on php 7.4. all ok Install fresh 3.1.7 and after update to 3.1.8 (by click abate button) all ok Can you write more info about server

Do you need direct access? I can grant you access to an test installation, so you can see it live.

Send plz to dmi3yy@gmail.com will test tomorrow

Dmi3yy commented 2 years ago

Try install fresh 3.1.8 on php 7.4. all ok Install fresh 3.1.7 and after update to 3.1.8 (by click abate button) all ok Can you write more info about server

Do you need direct access? I can grant you access to an test installation, so you can see it live.

Hi will try update see some problem with files in core folder.

Just delete folder core/vendor and upload from GitHub by hand and all work

this happens if the archive on the server is not unpacked correctly

sirfranz commented 2 years ago

Many Thanks to you! All works!