Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Component error notice

More
10 years 6 months ago #245 by jk1
Component error notice was created by jk1
Hi,
I just updated spambotcheck to the latest version on one of my local test sites, after I noticed that a new version is available in the Joomla backend.

It's on Joomla 2.5.14 and php 5.3.1. Clicking on the spambotcheck component throws an error:

( ! ) Notice: Undefined index: 1 in ...\administrator\components\com_spambotcheck\models\users.php on line 436
Call Stack
# Time Memory Function Location
1 0.0007 331744 {main}( ) ..\index.php:0
2 0.2387 6010768 JAdministrator->dispatch( ) ..\index.php:46
3 0.2519 6405976 JComponentHelper::renderComponent( ) ..\application.php:153
4 0.2803 6422688 JComponentHelper::executeComponent( ) ..\helper.php:351
5 0.2815 6484552 require_once( '...\administrator\components\com_spambotcheck\spambotcheck.php' ) ..\helper.php:383
6 0.3083 6852528 JController->execute( ) ..\spambotcheck.php:44
7 0.3084 6852576 SpambotcheckController->display( ) ..\controller.php:761
8 0.3122 6915416 JController->display( ) ..\controller.php:50
9 0.3354 7753400 SpambotcheckViewUsers->display( ) ..\controller.php:722
10 0.3355 7753512 JView->get( ) ..\view.html.php:42
11 0.3355 7753632 SpambotcheckModelUsers->getItems( ) ..\view.php:386

( ! ) Notice: Trying to get property of non-object in ...\administrator\components\com_spambotcheck\models\users.php on line 436

More
10 years 6 months ago #246 by Administrator AV
Replied by Administrator AV on topic Re:Component error notice
Hi jk1,

thanks so much for that information. I just noticed, that I hadn't all "developer" messages enabled in php.ini on my develop system.

I will make an update, that will fix the error as soon as possilbe.
You can fix it yourself.

Open administrator/components/com_spambotcheck/models/users.php

Replace the content of line 436 which is

$item->group_count = $userGroups[$item->id]->group_count;

with

$item->group_count = $userGroups[$item->user_id]->group_count;

That should fix it.
Kind regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

More
10 years 6 months ago #249 by jk1
Replied by jk1 on topic Re:Component error notice
Yes, it does fix that typo :)

More
10 years 6 months ago #256 by Administrator AV
Replied by Administrator AV on topic Aw: Re:Component error notice
Hi jk1,

I found some more warnings and made a new update. Did you see it in extensions->updates?

Does it work properly now?

Regards,
Aicha

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum