It's not supported yet.EvolveWebHosting wrote: ↑Thu Dec 31, 2020 10:45 pmGood point. I'd be willing to bet PHP 8 is not supported yet. Changing the PHP version to anything different is not going to solve the issue. It's the config.php files that have the wrong path specified.sw!tch wrote: ↑Thu Dec 31, 2020 6:46 pmSince when is PHP 8.0 a recommend PHP version for Opencart 3.0.3.6? I suspect you will run into many other hidden issues aside for this under PHP 8. If it is related better stick with PHP 7.3.9 - 7.4 until full support is clarified.pprmkr wrote: ↑Thu Dec 31, 2020 5:18 pm- When on PHP 8.0, GD uses class object instead of resource ( https://php.watch/versions/8.0/gdimage )
-
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
This fixed it. Thank you so much!pprmkr wrote: ↑Thu Dec 31, 2020 5:18 pm- When GD not installed, OC fails to install.
- When paths are correct in config and images are present but no thumbs / resized images are created in cache, please check PHP version.
- When on PHP 8.0, GD uses class object instead of resource ( https://php.watch/versions/8.0/gdimage )
Edit system/library/image.php and on line 119 change:into:Code: Select all
if (is_resource($this->image)) {
Code: Select all
if (is_resource($this->image) || is_object($this->image)) {
Thank you, it worked!pprmkr wrote: ↑Thu Dec 31, 2020 5:18 pm- When GD not installed, OC fails to install.
- When paths are correct in config and images are present but no thumbs / resized images are created in cache, please check PHP version.
- When on PHP 8.0, GD uses class object instead of resource ( https://php.watch/versions/8.0/gdimage )
Edit system/library/image.php and on line 119 change:into:Code: Select all
if (is_resource($this->image)) {
Code: Select all
if (is_resource($this->image) || is_object($this->image)) {
Thank you @PprMkr your code...
This fixed my problem with adding product images to OC 3.0.3.6
Code: Select all
Edit system/library/image.php and on line 119 change:
Code: Select all
if (is_resource($this->image)) {
into:
Code: Select all
if (is_resource($this->image) || is_object($this->image)) {
Excellent, solvedpprmkr wrote: ↑Thu Dec 31, 2020 5:18 pm- When GD not installed, OC fails to install.
- When paths are correct in config and images are present but no thumbs / resized images are created in cache, please check PHP version.
- When on PHP 8.0, GD uses class object instead of resource ( https://php.watch/versions/8.0/gdimage )
Edit system/library/image.php and on line 119 change:into:Code: Select all
if (is_resource($this->image)) {
Code: Select all
if (is_resource($this->image) || is_object($this->image)) {
Only the Maintenance branch of OC3 supports PHP 8.EvolveWebHosting wrote: ↑Thu Dec 31, 2020 10:45 pmGood point. I'd be willing to bet PHP 8 is not supported yet. Changing the PHP version to anything different is not going to solve the issue. It's the config.php files that have the wrong path specified.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
WORK FOR ME! Thank you!pprmkr wrote: ↑Thu Dec 31, 2020 5:18 pm- When GD not installed, OC fails to install.
- When paths are correct in config and images are present but no thumbs / resized images are created in cache, please check PHP version.
- When on PHP 8.0, GD uses class object instead of resource ( https://php.watch/versions/8.0/gdimage )
Edit system/library/image.php and on line 119 change:into:Code: Select all
if (is_resource($this->image)) {
Code: Select all
if (is_resource($this->image) || is_object($this->image)) {
Who is online
Users browsing this forum: adycobra2003, OSWorX, paulfeakins and 418 guests