By webmasterab on Saturday, 08 October 2022
Replies 7
Likes 0
Views 645
Votes 0
When I want to delete older events I get this message Call to a member function ev_id() on null.
Have version JEvents v3.6.42 Stable

I can delete repeats.

How can I solve this.

I came across a github solution from 2018 but that doesn't seem to apply anymore, right?
https://www.jevents.net/discussions/call-to-a-member-function-get-on-null
https://github.com/JEvents/JEvents/pull/420/files

Joomla 3.10.11
It concerns the removal of old event.
I now solve it by deleting it directly in the database.
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
The events that give this message when deleting do have the status -1.

If I then select to show everything from the trash, I see them.

If I remove them from there it works fine.
Only the row that belongs to it is NOT removed from the details table.

So something is going wrong somewhere.
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
If I select multiple events I don't get the notification and it is neatly deleted and moved to the trash
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
When I clicked 1 event and redirected it to the trash I got this error.

If I selected more than one, it went well.
Then all information was properly removed from the database.

If I selected 1 then I got the error, but it was put in the trash.
If I then removed it from there with only this one selected, the line in the details table was not removed.

A PHP Exception occurred on your site. Here you can find the stack trace:

Exception Type: Error
File: /plugins/actionlog/jevents/jevents.php
Line: 56
Message: Call to a member function ev_id() on null

#0 /libraries/joomla/event/event.php(70): PlgActionlogJEvents->onPublishEvent(Array, -1)
#1 libraries/joomla/event/dispatcher.php(160): JEvent->update(Array)
#2 /libraries/src/Application/BaseApplication.php(108): JEventDispatcher->trigger('onpublishevent', Array)
#3 /administrator/components/com_jevents/controllers/icalevent.php(1371): Joomla\CMS\Application\BaseApplication->triggerEvent('onPublishEvent', Array)
#4 /libraries/src/MVC/Controller/BaseController.php(702): AdminIcaleventController->delete()
#5 /administrator/components/com_jevents/jevents.php(268): Joomla\CMS\MVC\Controller\BaseController->execute('delete')
#6 /libraries/src/Component/ComponentHelper.php(402): require_once('...')
#7 /libraries/src/Component/ComponentHelper.php(377): Joomla\CMS\Component\ComponentHelper::executeComponent('...')
#8 /libraries/src/Application/AdministratorApplication.php(101): Joomla\CMS\Component\ComponentHelper::renderComponent('com_jevents')
#9 /libraries/src/Application/AdministratorApplication.php(159): Joomla\CMS\Application\AdministratorApplication->dispatch()
#10 /libraries/src/Application/CMSApplication.php(225): Joomla\CMS\Application\AdministratorApplication->doExecute()
#11 /administrator/index.php(51): Joomla\CMS\Application\CMSApplication->execute()
#12 {main}
Request information
GET variables
Array
(
)
POST variables
Array
(
[filter] => Array
(
[search] =>
[catid] =>
[showpast] => 1
[icsFile] =>
[created_by] =>
[state] =>
[access] =>
)

[list] => Array
(
[fullordering] =>
[limit] => 15
)

[cid] => Array
(
[0] => 431
)

[limitstart] => 0
[option] => com_jevents
[task] => icalevent.delete
[boxchecked] => 1
[filter_order] => starttime
[filter_order_Dir] => asc
[................] => 1
)
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you describe step by step from the start what you are doing to create this problem - I am unable to recreate the issue.
·
2 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
It's been a while now but it's still relevant.

Made a video showing it.

Joomla 4.2.9 and latest version Jevents

https://1drv.ms/u/s!As29KpYL8sLu-wwjZsgYeaxznnJd?e=lCnAWc

It happens on events that are older.

If I enter a new one and delete it, I don't get the message.
·
1 year ago
·
0 Likes
·
0 Votes
·
0 Comments
·
It looks as though there is an issue with some of your old events.

This version has a trap for this situation so that the error it no longer triggered
·
1 year ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post