VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Miron on October 26, 2021, 18:05:07 PM

Title: Cannot create products
Post by: Miron on October 26, 2021, 18:05:07 PM
Hello i am new at Joomla+VirtueMart environment and i have a small issue which i can't fix.
Whenever i press the option to create new product category at virtuemart extension, it loads the extension's menu with a wrong way, with an error at the bottom of the page(0 Undefined constant "IMG_GIF")
Also when i press the "Shop" option to set a currency (duo to a warning error at the home page "No Shop Currency defined!"), it also goes to the "bugged menu".
Can anyone help me fix this?

Joomla 3.9.28
VirtueMart  3.8.9
PHP: 8.0.11

First printscreen is the error which can't load the new product catergory option and the Shop option and the second is the "bugged menu".

Title: Re: Cannot create products
Post by: GJC Web Design on October 26, 2021, 22:01:56 PM
enable Joomla debug so you get a trace for the php error so it can be fixed
Title: Re: Cannot create products
Post by: Miron on October 26, 2021, 22:40:38 PM
Okay, i ran the debug system and those are the results at Database Queries.
Title: Re: Cannot create products
Post by: GJC Web Design on October 27, 2021, 12:01:52 PM
Has nothing to do with it .. your looking for the error trace

http://forum.virtuemart.net/index.php?topic=117042.0

Title: Re: Cannot create products
Post by: Miron on October 27, 2021, 17:10:50 PM
oh there it is i guess..
And how can i fix this?
Title: Re: Cannot create products
Post by: Milbo on October 28, 2021, 00:29:17 AM
Really a strange problem.
Title: Re: Cannot create products
Post by: Milbo on October 28, 2021, 00:31:35 AM
Quote from: Miron on October 27, 2021, 17:10:50 PM
oh there it is i guess..
And how can i fix this?

Maybe just use the new version https://dev.virtuemart.net/attachments/1291/com_virtuemart.3.8.9.10557_package_or_extract.zip

as I said "maybe"
Title: Re: Cannot create products
Post by: Jörgen on October 28, 2021, 09:29:42 AM
Maybe a PHP 8 related problem ? Check with php 7.

Jörgen
Title: Re: Cannot create products
Post by: Studio 42 on October 28, 2021, 10:37:47 AM
look at this solution https://forum.virtuemart.net/index.php?topic=95387.0
Certainly you have not active the GD library in PHP 8 settings
Title: Re: Cannot create products
Post by: Miron on October 29, 2021, 10:11:23 AM
i downloaded older version of xampp (i had the lastest (8.0.12 with PHP 8.0.12 and now the 7.4.25 / PHP 7.4.25) and i installed the com_virtuemart.3.8.9.10557_package_or_extract.zip
and the compination of those may fixed it. I thought php was not a problem but it seems it had a part of the bug. (maybe php 8 is made for joomla 4 i guess?)
for now everything works fine, i can create product and use shop option.
Title: Re: Cannot create products
Post by: Milbo on October 29, 2021, 11:21:12 AM
Quote from: Studio 42 on October 28, 2021, 10:37:47 AM
look at this solution https://forum.virtuemart.net/index.php?topic=95387.0
Certainly you have not active the GD library in PHP 8 settings

Good hint, I think there is the problem
Title: Re: Cannot create products
Post by: jenkinhill on October 29, 2021, 11:53:07 AM
The GD library can be set to work on XAMP PHP8 
https://write.corbpie.com/how-to-enable-gd-library-with-xampp-php-8-on-windows/