Hikashop Userpoints Module + PHP8.0 - error

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
2 years 2 months ago #344376

-- HikaShop version -- : 4.6.1
-- Joomla version -- : 4.2.2
-- PHP version -- : 8.0
-- Error-message(debug-mod must be tuned on) -- : CANNOT ACCESS OFFSET OF TYPE STRING ON STRING

Hello,
With the given configuration, i.e. J4.x and PHP 8.x, with the loyalty points module enabled, I have an error.
Please support me.

Best Regards
Tomek

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344392

Hi,

Please activate the debug setting of the Joomla configuration and reproduce the error.
You should have an error message with more information on the issue which will allow us to understand what's going on and where is the issue.

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

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
2 years 2 months ago #344403

Hi Nicolas,
I activated debug setting and display error max.
Unfortunately, there are no additional messages :(
Website address in the application.
Tomek

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344407

Hi,

Then rename the file templates/YOUR_TEMPLATE/error.php via FTP.
That's the file displaying the error page from your template. By renaming it, Joomla will fallback on the default error page and it should display the full debug when activated in the Joomla configuration.

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

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
2 years 2 months ago #344412

I changed.
Error:
1 () JROOT/modules/mod_hikashop_userpoints/tmpl/default.php:11
2 require() JROOT/modules/mod_hikashop_userpoints/mod_hikashop_userpoints.php:18

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344419

Hi,

That module is not a module we provide.
It's a module from Joomill:
www.joomill-extensions.com/downloads/use...-module-for-hikashop
So you need to report the error to Joomill so that they can fix the problem in the module.

The issue comes from the code:

<?php echo @$module->params['moduleclass_sfx']; ?>
in the file modules/mod_hikashop_userpoints/mod_hikashop_userpoints.php
It should be replaced by:
<?php echo (!empty($module->params) && is_array($module->params) ? @$module->params['moduleclass_sfx'] : ''); ?>

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

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
2 years 2 months ago #344429

Hi Nicolas,
thank you for the information.
The introduced fix did not help much, except that the page started showing, but the module itself does not display points and causes other problems with the template.
I will have to deal with other things :(

Tomek

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344432

Hi,

Looking at the code of the module, it will only display the points if the user is logged in.
Otherwise, it will display an empty div. Besides that, there is not much to it in the code of the module.
The fix only removes the error. It doesn't have any other effect.
The other problems with your template are not related to my fix.

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

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
2 years 2 months ago #344442

However, it does.
If the module is published - it does not display the page menu, the module itself does not display points. With the module turned off - the page displays correctly. And with php 7.4, even the module itself works fine. It's probably a detail - but I can't find it :(

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 2 months ago #344443

Hi,

The fact that "it does not display the page menu" is probably linked to some CSS in the template or something pushing the menu when the points module is displayed.
It's hard to say from here without being able to activate / deactivate the module and comparing the HTML/CSS in both cases.
But please understand that we're talking here about some display issue between your menu, template and a module, all of them not being developed / configured by us.
If you need us to look deeper into it, I can but that will have to cost extra. In that case, we can discuss the details via our contact form: www.hikashop.com/support/contact-us.html

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

  • Posts: 193
  • Thank you received: 15
  • Hikashop Business
2 years 2 months ago #344446

Nicolas,
I understand the situation very well and I am very grateful that you became interested in this topic. I understand - this is not a solution supported by you - that's why I appreciate your support all the more.
At the moment I can do without this module or find another simple solution.
Thank you very much for your time - I really appreciate it :)

The following user(s) said Thank You: nicolas

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

Time to create page: 0.064 seconds
Powered by Kunena Forum