On the site http://labeng.ru/ an error popped up. Website on MODX. I just transferred all the files from another hosting and changed the login, password, and database in config.ini.php. What could be the problem? In the .htaccess file deleted php_value name strings type value php_flag name on | off

Contains a file before editing. What can be superfluous here?

# For full documentation and other suggested options, please see # http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions # including for unexpected logouts in multi-server/cloud environments # and especially for the first three commented out rules #php_flag register_globals Off #AddDefaultCharset utf-8 #php_value date.timezone Europe/Moscow Options +FollowSymlinks RewriteEngine On RewriteBase / # Fix Apache internal dummy connections from breaking [(site_url)] cache RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC] RewriteRule .* - [F,L] # Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin #RewriteCond %{HTTP_HOST} . #RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] #RewriteRule (.*) http://www.example.com/$1 [R=301,L] # Exclude /assets and /manager directories and images from rewrite rules RewriteRule ^(manager|assets)/*$ - [L] RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L] # For Friendly URLs RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] # Reduce server overhead by enabling output compression if supported. #php_flag zlib.output_compression On #php_value zlib.output_compression_level 5 
  • Created a test.html file in the root. And it is also a mistake. Does this mean the problem is with .htaccess? - Frontender
  • > In the .htaccess file, I deleted php_value name strings php_flag name on | off It’s because of the errors in .htaccess that the 500 error most often occurs. Try commenting out the Options directive. Or change Options + FollowSymLinks to Options + SymLinksIfOwnerMatch - Deonis
  • There is no such. - Frontender
  • Added the original text file. That there may be superfluous. And yet, the hosting was Russian, now American. Is there nothing like that in this? - Frontender
  • one
    Guess what? Logs look. - KaZaca

1 answer 1

Such a problem may be if mysql is running in strict mode. Then in the installation log (located in the /core/cache/logs/install.config..log directory) errors appear

  INSERT INTO `modx_system_settings` (`key`, `value`, `xtype`, `namespace`, `area`) VALUES ('upload_maxsize', '104857600', 'textfield', 'core', 'system') Array ( [0] => HY000 [1] => 1364 [2] => Field 'editedon' doesn't have a default value ). 

This means that the necessary data was not written to the "modx_system_setting" table and it is empty.

To solve, you can edit the file /etc/mysql/my.cnf as described here http://itif.ru/oshibka-field-xxx-doesnt-have-a-default-value/

Then you need to reinstall modx