Recent Posts

Pages: 1 ... 7 8 [9] 10
81
The handling of dates has been changed, the old way to store a "empty" date does not work anymore. Try to adjust the dates in this record to something that means sense and see if you can move on.
I am pretty sure this has been fixed in one of the later VM versions.

Jörgen @ Kreativ Fotografi
82
Virtuemart Development and bug reports / Editor Customfield: without editor
« Last post by Maurizio67 on September 24, 2022, 23:19:30 pm »
Hello,
I see several topics on this issue but I'm still facing the same problem (so I guess it's not yet resolved).
I need to use a Customfield with a rich structure, so I think the Editor type should fit... but the editor is not appearing.
The version used is: VirtueMart 4.0.7 10701 (with J4.2.2)

Any suggestion about this?

Thanks in advance
Maurizio

83
Virtuemart Development and bug reports / Re: Pagination broken in new admin template
« Last post by HenrikS on September 24, 2022, 20:33:00 pm »
I tried with 4.0.7 10701 ... same issue ... still not fixed
84
Installation, Migration & Upgrade / Re: Edit of payment and shipment methods impossible
« Last post by RobertG on September 24, 2022, 17:35:06 pm »
Sorry.
The two sites are using Joomla! 4.2.2, VM 4.0.7 10699 and PHP 7.4 or 8.0
Updating to VM 4.0.7 10701 solve the problem on both.
Thanks!
85
I think pay/ship edit is fixed in com_virtuemart.4.0.7.10701.zip RC/Beta. http://dev.virtuemart.net/projects/virtuemart/files
86
Installation, Migration & Upgrade / Edit of payment and shipment methods impossible
« Last post by RobertG on September 24, 2022, 17:09:22 pm »
Hi,

On a J3 site migrated to J4 and on a test site (new installation + Virtuemart 4.0.7 and samples), I can't make changes to these methods. I get a 500 error. Tested on PHP 7.4 and 8.0
In the console I get this error line 1399 of "/libraries/src/Form/Form.php" and the concerned URL is (on the new test site)
Quote
https://vm.*************.fr/administrator/index.php?option=com_virtuemart&view=paymentmethod&task=edit&cid[]=1
Same error in French and English en-GB

Could you help me?
Thanks!
87
Virtuemart Development and bug reports / Re: Pagination broken in new admin template
« Last post by tomis on September 24, 2022, 16:00:25 pm »
Virtuemart 4.0.6 + Joomla 4.2.2

There is already a fix ?
88
Brand new Joomla 4.2.2 with VirtueMart 4.0.6 10690.
No components, nothing.
Just images and products.

Updating Vendor gives error:

Code: [Select]
vmError: vmTable store updateObject Incorrect datetime value: '0' for column `rtahxtuuum`.`ho1w6_virtuemart_userinfos`.`locked_on` at row 1 UPDATE `ho1w6_virtuemart_userinfos` SET `virtuemart_user_id`='453',`address_type`='BT',`address_type_name`='',`company`='Sample Company',`title`='Mr',`last_name`='John',`first_name`='Doe',`middle_name`='',`phone_1`='555-555-555',`phone_2`='',`fax`='',`address_1`='PO Box 123',`address_2`='',`city`='Seattle',`virtuemart_state_id`='48',`virtuemart_country_id`='223',`zip`='98101',`agreed`='0',`tos`='0',`customer_note`='',`modified_on`='2022-09-24 13:52:58',`modified_by`='453',`locked_on`='0',`locked_by`='0' WHERE `virtuemart_userinfo_id` = '1'
89
Before:
Code: [Select]
if ($start !== null &&  $limitstart!== null ) {
if(vmrouterHelper::$debug) vmdebug('Pagination limits $start !== null &&  $limitstart!== null',$start,$limitstart);
//$segments[] = self::lang('results') .',1-'.$start ;
} else if ( $start>0 ) {
//For the urls leading to the paginated pages
// using general limit if $limit is not set
if ($limit === null) $limit= vmrouterHelper::$limit ;
$segments[] = self::lang('results') .','. ($start+1).'-'.($start+$limit);
}

After:
Code: [Select]
if ($start !== null &&  $limitstart!== null ) {
if(vmrouterHelper::$debug) vmdebug('Pagination limits $start !== null &&  $limitstart!== null',$start,$limitstart);
//$segments[] = self::lang('results') .',1-'.$start ;
//} else if ( $start>0 ) {
} else if ( $limitstart > 0 ) {
//For the urls leading to the paginated pages
// using general limit if $limit is not set
if ($limit === null) $limit= vmrouterHelper::$limit ;
//$segments[] = self::lang('results') .','. ($start+1).'-'.($start+$limit);
$segments[] = self::lang('results') .','. ($limitstart + 1).'-'.($limitstart + $limit);
}

Also for some reason the $limit here is not the same as the one found in vmpagination.php. It breaks the order of the results.

Quick fix:
/administrator/components/com_virtuemart/helpers/vmpagination.php

Before:
Code: [Select]
$data->pages[$i]->link = JRoute::_($params . '&' . $this->prefix . 'limitstart=' . $offset);
After:
Code: [Select]
$data->pages[$i]->link = JRoute::_($params . '&' . $this->prefix . 'limitstart=' . $offset .'&limit='.$this->limit);
Virtuemart 4.0.6. + Joomla 4.2.2

The pagination fix works partially. Back to page 1 not working. Any fix?
90
General Questions / Re: Coupons doesn't work with php 8.0.23
« Last post by DadoO on September 24, 2022, 12:33:47 pm »
I have extract the php error logs


Code: [Select]

Premier test de création d'un nouveau coupon


[24-Sep-2022 09:58:45 UTC] PHP Warning:  Undefined array key "virtuemart_shopper_ids" in C:\localwebsite\administrator\components\com_virtuemart\models\coupon.php on line 63
[24-Sep-2022 09:58:45 UTC] PHP Stack trace:
[24-Sep-2022 09:58:45 UTC] PHP   1. {main}() C:\localwebsite\administrator\index.php:0
[24-Sep-2022 09:58:45 UTC] PHP   2. Joomla\CMS\Application\CMSApplication->execute() C:\localwebsite\administrator\index.php:51
[24-Sep-2022 09:58:45 UTC] PHP   3. Joomla\CMS\Application\AdministratorApplication->doExecute() C:\localwebsite\libraries\src\Application\CMSApplication.php:225
[24-Sep-2022 09:58:45 UTC] PHP   4. Joomla\CMS\Application\AdministratorApplication->dispatch($component = *uninitialized*) C:\localwebsite\libraries\src\Application\AdministratorApplication.php:159
[24-Sep-2022 09:58:45 UTC] PHP   5. Joomla\CMS\Component\ComponentHelper::renderComponent($option = 'com_virtuemart', $params = *uninitialized*) C:\localwebsite\libraries\src\Application\AdministratorApplication.php:101
[24-Sep-2022 09:58:45 UTC] PHP   6. Joomla\CMS\Component\ComponentHelper::executeComponent($path = 'C:\\wamp64\\www\\rp2021\\administrator/components/com_virtuemart/virtuemart.php') C:\localwebsite\libraries\src\Component\ComponentHelper.php:377
[24-Sep-2022 09:58:45 UTC] PHP   7. require_once() C:\localwebsite\libraries\src\Component\ComponentHelper.php:402
[24-Sep-2022 09:58:45 UTC] PHP   8. Joomla\CMS\MVC\Controller\BaseController->execute($task = 'save') C:\localwebsite\administrator\components\com_virtuemart\virtuemart.php:75
[24-Sep-2022 09:58:45 UTC] PHP   9. VmController->save($data = *uninitialized*) C:\localwebsite\libraries\src\MVC\Controller\BaseController.php:702
[24-Sep-2022 09:58:45 UTC] PHP  10. VirtueMartModelCoupon->store($data = ['coupon_code' => 'RpTestCoupon', 'published' => '1', 'coupon_value' => '10', 'percent_or_total' => 'percent', 'coupon_type' => 'gift', 'coupon_value_valid' => '12', 'coupon_value_max' => '0', 'virtuemart_coupon_max_attempt_per_user' => '0', 'coupon_start_date' => '2022-09-24', 'coupon_expiry_date' => '2023-03-24 09:58:21', 'virtuemart_coupon_id' => '0', 'filter_order' => 'virtuemart_coupon_id', 'filter_order_Dir' => 'DESC', 'task' => 'save', 'option' => 'com_virtuemart', 'boxchecked' => '0', 'controller' => 'coupon', 'view' => 'coupon', '0585088c318fe2991a273d312eb92ffb' => '1']) C:\localwebsite\administrator\components\com_virtuemart\helpers\vmcontroller.php:172


Second test en modifiant un coupon et en enregistrant ce dernier

[24-Sep-2022 10:03:26 UTC] PHP Warning:  Undefined array key "virtuemart_shopper_ids" in C:\localwebsite\administrator\components\com_virtuemart\models\coupon.php on line 63
[24-Sep-2022 10:03:26 UTC] PHP Stack trace:
[24-Sep-2022 10:03:26 UTC] PHP   1. {main}() C:\localwebsite\administrator\index.php:0
[24-Sep-2022 10:03:26 UTC] PHP   2. Joomla\CMS\Application\AdministratorApplication->execute() C:\localwebsite\administrator\index.php:51
[24-Sep-2022 10:03:26 UTC] PHP   3. Joomla\CMS\Application\AdministratorApplication->doExecute() C:\localwebsite\libraries\src\Application\CMSApplication.php:225
[24-Sep-2022 10:03:26 UTC] PHP   4. Joomla\CMS\Application\AdministratorApplication->dispatch($component = *uninitialized*) C:\localwebsite\libraries\src\Application\AdministratorApplication.php:159
[24-Sep-2022 10:03:26 UTC] PHP   5. Joomla\CMS\Component\ComponentHelper::renderComponent($option = 'com_virtuemart', $params = *uninitialized*) C:\localwebsite\libraries\src\Application\AdministratorApplication.php:101
[24-Sep-2022 10:03:26 UTC] PHP   6. Joomla\CMS\Component\ComponentHelper::executeComponent($path = 'C:\\wamp64\\www\\rp2021\\administrator/components/com_virtuemart/virtuemart.php') C:\localwebsite\libraries\src\Component\ComponentHelper.php:377
[24-Sep-2022 10:03:26 UTC] PHP   7. require_once() C:\localwebsite\libraries\src\Component\ComponentHelper.php:402
[24-Sep-2022 10:03:26 UTC] PHP   8. VirtuemartControllerCoupon->execute($task = 'save') C:\localwebsite\administrator\components\com_virtuemart\virtuemart.php:75
[24-Sep-2022 10:03:26 UTC] PHP   9. VirtuemartControllerCoupon->save($data = *uninitialized*) C:\localwebsite\libraries\src\MVC\Controller\BaseController.php:702
[24-Sep-2022 10:03:26 UTC] PHP  10. VirtueMartModelCoupon->store($data = ['coupon_code' => 'RPCH129979', 'published' => '1', 'coupon_value' => '15', 'percent_or_total' => 'percent', 'coupon_type' => 'gift', 'coupon_value_valid' => '12.00000', 'coupon_value_max' => '0.00000', 'virtuemart_coupon_max_attempt_per_user' => '0', 'coupon_start_date' => '2022-05-20 00:00:00', 'coupon_expiry_date' => '2022-11-20 12:33:24', 'virtuemart_coupon_id' => '3599', 'filter_order' => 'virtuemart_coupon_id', 'filter_order_Dir' => 'DESC', 'task' => 'save', 'option' => 'com_virtuemart', 'boxchecked' => '0', 'controller' => 'coupon', 'view' => 'coupon', '0585088c318fe2991a273d312eb92ffb' => '1']) C:\localwebsite\administrator\components\com_virtuemart\helpers\vmcontroller.php:172


Erreur Identique



Firstly I have created a new coupon, second test I have tried to change a value in an old coupon

Same Error

VM with php 8.09 --- 8.0.23 couldn't acces to the ID of the Shopper
But  for SURE, the Shopper exist, and all works fine with php 7.4.30

An idea

Thanks by advance
Pages: 1 ... 7 8 [9] 10