Extension sort-by-date causes Undefined property

  • Posts: 584
  • Thank you received: 22
  • Hikaserial Subscription Hikashop Multisite
1 year 6 months ago #345898

-- url of the page with the problem -- : britse-streepjes.nl/
-- HikaShop version -- : 4.6.2
-- Joomla version -- : 4.2.3
-- PHP version -- : 8.0



Steps to reproduce the issue
Set Server error reporting to maximum at global configuration, then:
system->extension manager-> click on date arrow

Expected result
sorts date

Actual result
While the date is sorted this error below occurs numerous times

Warning: Undefined property: stdClass::$creationDate in ../libraries/vendor/joomla/utilities/src/ArrayHelper.php on line 602
Warning: Undefined property: stdClass::$creationDate in .../libraries/vendor/joomla/utilities/src/ArrayHelper.php on line 601



See also: issues.joomla.org/tracker/joomla-cms/38970

Could this extensions causes this issue?







etc. etc.


Kind regards,
Lumiga
Last edit: 1 year 6 months ago by Lumiga.

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

  • Posts: 584
  • Thank you received: 22
  • Hikaserial Subscription Hikashop Multisite
1 year 6 months ago #345899

I discovered that these warnings are caused by Hikashop!

I used a test website without these warnings and without Hikashop.

And after installing Hikashop we do indeed see these warnings.


Kind regards,
Lumiga

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

  • Posts: 81597
  • Thank you received: 13080
  • MODERATOR
1 year 6 months ago #345912

Hi,

Thank you for your report of the issue.
Indeed, it comes from issues.joomla.org/tracker/joomla-cms/38970
The issue is a combination of factors:
- until recently, it was totally ok to not provide that information in the XML
- Joomla doesn't have a check to make sure the the data is present in the XML before using it
- The warning only appears on PHP8 and above. Before, no error was displayed and thus it was not an issue

I've made a patch on our end to provide that information during the installation process (it's now available in the HikaShop install package on our website). This will remove the warnings for the plugins embedded with HikaShop. However, it will only work on new installations. When HikaShop is already installed, and the plugins already added to Joomla, HikaShop won't install the plugins and thus you won't see a change.

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

  • Posts: 584
  • Thank you received: 22
  • Hikaserial Subscription Hikashop Multisite
1 year 6 months ago #346078

Hi Nicolas,

Is there a way to do this manually in the database?
If it's possible, will you please give us a step by step guide for one plugin.
So we can do the others by ourselves on the same way.

Kind regards,
Lumiga


Kind regards,
Lumiga

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

  • Posts: 81597
  • Thank you received: 13080
  • MODERATOR
1 year 6 months ago #346085

Hi,

Well, the simplest would be to uninstall HikaShop and uninstall all the plugins / modules included in HikaShop if it's not already done by the uninstall process.
Once that's done, install again HikaShop with the new install package with the patch I made and it will add back all the plugins and modules with the data in the database to avoid the error.
Normally, you shouldn't loose any data when doing so since the hikashop tables in the database won't be touched by all this. However, you will loose the settings of your plugins/modules so you'll have to reconfigure them.
I would recommend to try it on a copy of the website first, just to make sure that there are no surprises since no one did this yet.
Adding the missing data in the database manually is complex so I don't recommend trying it. You'll waste your time.

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

  • Posts: 23
  • Thank you received: 3
4 months 4 days ago #357869

Hi, I found this as just did the sort by date and got the warnings.
Now i can't get out of it. Every time I go to System / Manage / Extensions I get the page of errors.
How do I get back to Manage Extensions with a different sort please?

SOLVED - For the benefit of others, you just scroll right to the bottom. Normal view is below the warnings
Bob

Last edit: 4 months 4 days ago by aspirationimages.
The following user(s) said Thank You: nicolas

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

Time to create page: 0.098 seconds
Powered by Kunena Forum