Archived topic
Is GP Library site "Shop" PHP8 ready
11 replies · Started by Radek on August 17, 2021
Hi, I installed clean WP 5.8, then GP theme, then GPP plugin, then activate all GPP parts, then go to site library and install "Shop" with samples import. Installation stuck at importing sample content and maintenance mail arrived to my administrator email. After entering recovery mode, GPP and Woocommerce plugins was paused. Details at Private information section. Versions: WordPress verze 5.8
Aktuální šablona: GeneratePress (verze 3.0.4)
Aktuální plugin: WooCommerce (verze 5.5.2)
Verze PHP 8.0.1
So maybe PHP8 error ? Or any other idea ?
Thanx Radek
Hi there,
what happens if you install Woocommerce before installing the site ?
Didn't try. I move at my hosting to new server (old one has PHP 7.3 max), they set PHP 8 automaticly for me. After moving this site was broken, but its only test site for me, so I installed again from zero and use Woocommerce instalation by Shop site from library.
I ran a test to see if i could replicate the issue.
My steps were:
a) Clean install of WP
b) Install only GP Theme and GP Premium
c) Enable ONLY the Site Library Module
d) Imported SHOP site.
And that worked OK.
Can you try from a clean install and those steps ?
OK I'll try, but what is Your server configuration ?
This is the config:
Web server nginx/1.16.0
PHP version 8.0.0 (Supports 64bit values)
PHP SAPI fpm-fcgi
PHP max input variables 4000
PHP time limit 1200
PHP memory limit 256M
Max input time 600
Upload max filesize 300M
PHP post max size 1000M
cURL version 7.54.0 LibreSSL/2.6.5
Is SUHOSIN installed? No
I also tested on Apache with same server settings.
installing options, WP Show post, activating plugins, importing content and stuck. Then recovery mail recieved with info:
WordPress verze 5.8
Aktuální šablona: GeneratePress (verze 3.0.4)
Aktuální plugin: WooCommerce (verze 5.6.0)
Verze PHP 8.0.1
Podrobnosti chyby
=================
Na řádku č. 37 v souboru /data/web/virtuals/282201/virtual/www/subdom/obchod/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php došlo k chybě typu E_ERROR. Chybová zpráva: Uncaught Error: Call to undefined function putenv() in /data/web/virtuals/282201/virtual/www/subdom/obchod/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images-request.php:37
Stack trace:
#0 /data/web/virtuals/282201/virtual/www/subdom/obchod/wp-content/plugins/woocommerce/includes/class-wc-regenerate-images.php(49): WC_Regenerate_Images_Request->__construct()
#1 /data/web/virtuals/282201/virtual/www/subdom/obchod/wp-includes/class-wp-hook.php(303): WC_Regenerate_Images::init('')
#2 /data/web/virtuals/282201/virtual/www/subdom/obchod/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
#3 /data/web/virtuals/282201/virtual/www/subdom/obchod/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#4 /data/web/virtuals/282201/virtual/www/subdom/obchod/wp-settings.php(578): do_action('init')
#5 /data/web/virtuals/282201/virtual/www/subdom/obchod/wp-config.php(96): require_once('/data/web/virtu...')
#6 /data/web/virtuals/282201/virtual/www/subdom/obchod/wp-load.php(50): require_once('/data/web/virtu...')
#7 /data/web/virtuals/282201/virtual/www/subdom/obchod/wp-admin/admin-ajax.php(22): require_once('/data/web/virtu...')
#8 {main}
thrown
my server conf:
Architektura serveru Linux 5.4.0-73-generic x86_64
Web server Apache
Verze PHP 8.0.1 (Podporuje 64bitové hodnoty)
PHP SAPI fpm-fcgi
PHP max input variables 10000
PHP time limit 90
PHP memory limit 256M
PHP Max. Input Time 30
Max. velikost nahrávaného souboru 128M
PHP post max size 128M
Verze cURL 7.29.0 NSS/3.36
Je nainstalován SUHOSIN? Ne
Not sure if its related but i would increase PHP time limit and PHP Max. Input Time
Those are very short, and import processes may require a much longer time allowance.
PHP time limit is only option I can edit at my hosting, max limit is 300. Input time can't modify. I'll try with 300...
Looks like Woocommerce is not PHP 8 ready. The same error on clean WP install right after WC activation. Sorry for Your time.
Thanks for letting us know !