On the first step of G2 import I get this error after entering
/gallery2/embed.php
Error [ 0 ]: Non-static method GalleryDataCache::put() cannot be called statically
DOCROOT/var/modules/g2_import/37cea4e45532b49a20d1ce685aa93655/embed.php[ 33 ]
28 * @version $Revision: 17657 $
29 */
30
31/* Define G2_EMBED = 1 to remember to generate correct URLs and return the HTML, etc. */
32require_once('/gallery2/modules/core/classes/GalleryDataCache.class');
33GalleryDataCache::put('G2_EMBED', 1, true);
34require(dirname(__FILE__) . '/main.php');
35require('/gallery2/modules/core/classes/GalleryEmbed.class');
36
37GalleryEmbed::getEmbedPathByHttpRequest();
38?>
Platform information
Host name: c933e00289ee
Operating system: Linux 6.11.0-21-generic
Apache: Apache/2.4.48 (Ubuntu)
PHP: 8.0.8
MySQL: 10.11.11-MariaDB-ubu2204
Server load: 0.67 0.85 0.84
Graphics toolkit: imagemagick
Gallery stats
Version: 3.0+ (branch master, build 434)
Albums: 1
Photos: 4
I installed a fresh G2 instance with 1 album and a couple of pictures to test with. I added
gallery3:
volumes:
- /raid/g2app:/gallery2
to docker-compose.yml
The Gallery3 G2 import page says: For best results, update your Gallery 2 install to version 2.3.1 .
My G2 is version is 2.3.2.
My g2 setup:
jcschauer@smoke:/raid/docker-projects/gallery2$ cat docker-compose.yaml
services:
web:
image: nginx:latest
ports:
- "10000:8000"
volumes:
- ./docker/nginx.conf:/etc/nginx/conf.d/nginx.conf
- /raid/g2app:/app #.:/app
links:
- php
php:
ports:
- "11000:9000"
build:
context: .
dockerfile: docker/PHP.Dockerfile
target: php_${PHP_TARGET:-base}
environment:
PHP_IDE_CONFIG: "serverName=docker"
volumes:
- .:/app
- /raid/gallery2-data:/gallery2-data #./gallery2-data:/gallery2-data
- ./docker/php.ini:/usr/local/etc/php/conf.d/custom.ini
- ./docker/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
links:
- mysql
mysql:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: 'secret'
MYSQL_USER: 'gallery'
MYSQL_PASSWORD: 'secret'
MYSQL_DATABASE: 'gallery2'
volumes:
- ./mysqldata:/var/lib/mysql
ports:
- "13306:3306"
On the first step of G2 import I get this error after entering
/gallery2/embed.php
Error [ 0 ]: Non-static method GalleryDataCache::put() cannot be called statically
Platform information
Gallery stats
I installed a fresh G2 instance with 1 album and a couple of pictures to test with. I added
gallery3:
volumes:
- /raid/g2app:/gallery2
to docker-compose.yml
The Gallery3 G2 import page says: For best results, update your Gallery 2 install to version 2.3.1 .
My G2 is version is 2.3.2.
My g2 setup:
jcschauer@smoke:/raid/docker-projects/gallery2$ cat docker-compose.yaml
services:
web:
image: nginx:latest
ports:
- "10000:8000"
volumes:
- ./docker/nginx.conf:/etc/nginx/conf.d/nginx.conf
- /raid/g2app:/app #.:/app
links:
- php
php:
ports:
- "11000:9000"
build:
context: .
dockerfile: docker/PHP.Dockerfile
target: php_${PHP_TARGET:-base}
environment:
PHP_IDE_CONFIG: "serverName=docker"
volumes:
- .:/app
- /raid/gallery2-data:/gallery2-data #./gallery2-data:/gallery2-data
- ./docker/php.ini:/usr/local/etc/php/conf.d/custom.ini
- ./docker/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
links:
- mysql
mysql:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: 'secret'
MYSQL_USER: 'gallery'
MYSQL_PASSWORD: 'secret'
MYSQL_DATABASE: 'gallery2'
volumes:
- ./mysqldata:/var/lib/mysql
ports:
- "13306:3306"