Shop / e-Commerce Integration

Getting an error when I publish a course to HikaShop

  • Eric vanBok
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 year 8 months ago #1 by Eric vanBok
I am getting an error when I publish a new course into HikaShop. If I go to Joomdle->Shop and publish the new course, I get this error:

An error has occurred.
0 count(): Argument #1 ($value) must be of type Countable|array, null given

However the course looks to be set up properly in HikaShop. Or at least it appears to work. Any ideas what the issue might be or how to fix it?

Joomla 5.0.3
Joomdle 2.2.3
HikaShop 5.0.3
Moodle 4.1.6 (Build: 20231009)
PHP 8.1.27

Please Log in or Create an account to join the conversation.

More
1 year 8 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Getting an error when I publish a course to HikaShop
Thanks for the bug report, it is a warning caused by an uninitialized variable.

I will release a new version soon. If you want to fix it before, you just need to edit file plugins/joomdleshop/joomdleshophikashop/joomdleshophikashop.php and add this in line 155:
$element->images = array ();

Please Log in or Create an account to join the conversation.

  • Eric vanBok
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 year 3 months ago #3 by Eric vanBok
Just an FYI that this error still exists. I am creating a new Joomla/Joomdle/Moodle instance and ran into it again using the latest downloads from your website. Might want to ensure that the fix gets added to the plugin.

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Getting an error when I publish a course to HikaShop
Thanks for the reminder, I forgot about this one.
I have published it now for download, although you won't see it pop up in updates yet, because I am having some issues with that and I cannot work on it right now.

Please Log in or Create an account to join the conversation.

More
10 months 3 days ago #5 by Wynand Louw
On this topic when I want to publish or unpublish a course I get the following error:

An error has occurred.
0 Call to undefined method Joomla\Database\Mysqli\MysqliDriver::query()

Joomla 5.2.2 and moodle 4.5.2

Please Log in or Create an account to join the conversation.

More
10 months 3 days ago #6 by Wynand Louw
I downloaded the new plugin and that seems to have resolved the matter

Please Log in or Create an account to join the conversation.