I still try to solve the problem.
Now I deleted all old galleries in the database. Than completly new install of gallery. At the installation I get the commend “mkdir already exists”.
When I make a new album and fill in some pictures I get following error in the modx system
[2023-03-21 21:13:18] (ERROR @ /var/www/vhosts/my_server/httpdocs/my_domain/core/vendor/james-heinrich/phpthumb/phpthumb.class.php : 1376) PHP warning: is_readable(): open_basedir restriction in effect. File(/assets/gallery/3/16.jpg) is not within the allowed path(s): (/var/www/vhosts/my_server/:/tmp/)
[2023-03-21 21:13:18] (ERROR @ /var/www/vhosts/my_server/httpdocs/my_domain/core/components/gallery/processors/web/phpthumb.class.php : 150) PHP warning: chmod(): No such file or directory
[2023-03-21 21:13:26] (ERROR @ /var/www/vhosts/my_server/httpdocs/my_domain/core/cache/includes/elements/modx/revolution/modplugin/4.include.cache.php : 21) PHP warning: Undefined array key “file”
[2023-03-21 21:13:26] (ERROR @ /var/www/vhosts/my_server/httpdocs/my_domain/core/cache/includes/elements/modx/revolution/modplugin/4.include.cache.php : 24) PHP warning: Trying to access array offset on value of type null
[2023-03-21 21:13:26] (ERROR @ /var/www/vhosts/my_server/httpdocs/my_domain/core/cache/includes/elements/modx/revolution/modplugin/4.include.cache.php : 28) PHP warning: Trying to access array offset on value of type null
[2023-03-21 21:13:27] (ERROR @ /var/www/vhosts/my_server/httpdocs/my_domain/core/vendor/james-heinrich/phpthumb/phpthumb.class.php : 1376) PHP warning: is_readable(): open_basedir restriction in effect. File(/assets/gallery/3/19.jpg) is not within the allowed path(s): (/var/www/vhosts/my_server/:/tmp/)
[2023-03-21 21:13:27] (ERROR @ /var/www/vhosts/my_server/httpdocs/my_domain/core/components/gallery/processors/web/phpthumb.class.php : 150) PHP warning: chmod(): No such file or directory
At the server I get following error:
AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Undefined constant “IMAGETYPE_AVIF” in /var/www/vhosts/my_server/httpdocs/my_domain/core/vendor/james-heinrich/phpthumb/phpthumb.class.php:3770\nStack trace:\n#0 /var/www/vhosts/my_server/httpdocs/my_domain/core/vendor/james-heinrich/phpthumb/phpthumb.class.php(3912): phpthumb->ImageCreateFromFilename()\n#1 /var/www/vhosts/my_server/httpdocs/my_domain/core/vendor/james-heinrich/phpthumb/phpthumb.class.php(419): phpthumb->SourceImageToGD()\n#2 /var/www/vhosts/my_server/httpdocs/my_domain/core/components/gallery/processors/web/phpthumb.class.php(174): phpthumb->GenerateThumbnail()\n#3 /var/www/vhosts/my_server/httpdocs/my_domain/core/src/Revolution/Processors/Processor.php(189): GalleryPhpthumbProcessor->process()\n#4 /var/www/vhosts/my_server/httpdocs/my_domain/core/src/Revolution/modX.php(1820)…’, referer: https://www.my_domain.eu/manager/?a=album/update&namespace=gallery&album=3
I hope anybody can help me. I have three different modx-cms on three different servers. At two installations I have no problems with gallery, (also one is still modx2.7). Only this installation makes trouble.
At the same server I made a new modx3.0.2 installation. Here I can see the thumbs and pictures in the manager. I cannot test, cause I get the same problem I had in the live installation and I posted here #6485
Thank you for help.