[Skip to main content](#vessel-content)

#   Hikashop Userpoints Module + PHP8.0 - error

##

- **[StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")**
- [![StudioPrzyLesie's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile") Topic Author
- [ Offline](/forum/user/31654-studioprzylesie)

Less More

- Posts: 196
- Thank you received: 15
-
-

4 years 3 months ago [\#344376](#344376) by [StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")  *[Hikashop Userpoints Module + PHP8.0 - error](/forum/25-install-update/904953-hikashop-userpoints-module-php8-0-error#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")* was created by *[StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDk1My1oaWthc2hvcC11c2VycG9pbnRzLW1vZHVsZS1waHA4LTAtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

4 years 3 months ago [\#344392](#344392) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop Userpoints Module + PHP8.0 - error](/forum/25-install-update/904953-hikashop-userpoints-module-php8-0-error#344392 "-- 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDk1My1oaWthc2hvcC11c2VycG9pbnRzLW1vZHVsZS1waHA4LTAtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")**
- [![StudioPrzyLesie's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile") Topic Author
- [ Offline](/forum/user/31654-studioprzylesie)

Less More

- Posts: 196
- Thank you received: 15
-
-

4 years 3 months ago [\#344403](#344403) by [StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")  Replied by *[StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")* on topic *[Hikashop Userpoints Module + PHP8.0 - error](/forum/25-install-update/904953-hikashop-userpoints-module-php8-0-error#344403 "-- 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")*

Hi Nicolas,
I activated debug setting and display error max.
Unfortunately, there are no additional messages ![:(](/media/kunena/emoticons/22.png ":(")
Website address in the application.
Tomek

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDk1My1oaWthc2hvcC11c2VycG9pbnRzLW1vZHVsZS1waHA4LTAtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

4 years 3 months ago [\#344407](#344407) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop Userpoints Module + PHP8.0 - error](/forum/25-install-update/904953-hikashop-userpoints-module-php8-0-error#344407 "-- 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDk1My1oaWthc2hvcC11c2VycG9pbnRzLW1vZHVsZS1waHA4LTAtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")**
- [![StudioPrzyLesie's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile") Topic Author
- [ Offline](/forum/user/31654-studioprzylesie)

Less More

- Posts: 196
- Thank you received: 15
-
-

4 years 3 months ago [\#344412](#344412) by [StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")  Replied by *[StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")* on topic *[Hikashop Userpoints Module + PHP8.0 - error](/forum/25-install-update/904953-hikashop-userpoints-module-php8-0-error#344412 "-- 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDk1My1oaWthc2hvcC11c2VycG9pbnRzLW1vZHVsZS1waHA4LTAtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

4 years 3 months ago [\#344419](#344419) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop Userpoints Module + PHP8.0 - error](/forum/25-install-update/904953-hikashop-userpoints-module-php8-0-error#344419 "-- 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")*

Hi,

That module is not a module we provide.
It's a module from Joomill:
[ www.joomill-extensions.com/downloads/use...-module-for-hikashop](https://www.joomill-extensions.com/downloads/user-points-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: Code:

&lt;?php echo @$module-&gt;params['moduleclass_sfx']; ?&gt;

in the file modules/mod_hikashop_userpoints/mod_hikashop_userpoints.php
It should be replaced by: Code:

&lt;?php echo (!empty($module-&gt;params) &amp;&amp; is_array($module-&gt;params) ? @$module-&gt;params['moduleclass_sfx'] : ''); ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDk1My1oaWthc2hvcC11c2VycG9pbnRzLW1vZHVsZS1waHA4LTAtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")**
- [![StudioPrzyLesie's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile") Topic Author
- [ Offline](/forum/user/31654-studioprzylesie)

Less More

- Posts: 196
- Thank you received: 15
-
-

4 years 3 months ago [\#344429](#344429) by [StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")  Replied by *[StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")* on topic *[Hikashop Userpoints Module + PHP8.0 - error](/forum/25-install-update/904953-hikashop-userpoints-module-php8-0-error#344429 "-- 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")*

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 ![:(](/media/kunena/emoticons/22.png ":(")

Tomek

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDk1My1oaWthc2hvcC11c2VycG9pbnRzLW1vZHVsZS1waHA4LTAtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

4 years 3 months ago [\#344432](#344432) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop Userpoints Module + PHP8.0 - error](/forum/25-install-update/904953-hikashop-userpoints-module-php8-0-error#344432 "-- 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")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDk1My1oaWthc2hvcC11c2VycG9pbnRzLW1vZHVsZS1waHA4LTAtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")**
- [![StudioPrzyLesie's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile") Topic Author
- [ Offline](/forum/user/31654-studioprzylesie)

Less More

- Posts: 196
- Thank you received: 15
-
-

4 years 3 months ago [\#344442](#344442) by [StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")  Replied by *[StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")* on topic *[Hikashop Userpoints Module + PHP8.0 - error](/forum/25-install-update/904953-hikashop-userpoints-module-php8-0-error#344442 "-- 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")*

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 ![:(](/media/kunena/emoticons/22.png ":(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDk1My1oaWthc2hvcC11c2VycG9pbnRzLW1vZHVsZS1waHA4LTAtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

4 years 3 months ago [\#344443](#344443) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop Userpoints Module + PHP8.0 - error](/forum/25-install-update/904953-hikashop-userpoints-module-php8-0-error#344443 "-- 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")*

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](https://www.hikashop.com/support/contact-us.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDk1My1oaWthc2hvcC11c2VycG9pbnRzLW1vZHVsZS1waHA4LTAtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")**
- [![StudioPrzyLesie's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile") Topic Author
- [ Offline](/forum/user/31654-studioprzylesie)

Less More

- Posts: 196
- Thank you received: 15
-
-

4 years 3 months ago [\#344446](#344446) by [StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")  Replied by *[StudioPrzyLesie](/forum/user/31654-studioprzylesie "View StudioPrzyLesie's Profile")* on topic *[Hikashop Userpoints Module + PHP8.0 - error](/forum/25-install-update/904953-hikashop-userpoints-module-php8-0-error#344446 "-- 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")*

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 ![:)](/media/kunena/emoticons/3.png ":)")

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDk1My1oaWthc2hvcC11c2VycG9pbnRzLW1vZHVsZS1waHA4LTAtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.062 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
