View "sermon".Attempt to assign property "statisticTotal" on bool #36
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: christian/Joomla-Sermon-Distributor#36
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello,
I have installed Server distributor from https://extensions.joomla.org/extension/living/religion/sermon-distributor/
A problem occurs in the frontend, for displaying a sermon of a preacher.
Activating "joomla console debug, says :
Investigating in the file sermon.php, the problem comes from the lines #130 and #131:
there is a field "not_required" wich is not in the table "#__sermondistributor_sermon" structure
Proposed modification:
If the table's "__sermondistributor_sermon" field "not_required" comes from older version and it is not used anymore, remove the field "a.not_required" in file /components/com_sermondistributor/models/sermon.php,update the lines #130 and #131.
Also, because this component seems to be created from "JCB" component, (via import JCB packages), should modify the "dynamic gets" sermon, in the field "selection" removing the field "not_required"
Hope this helps,sorry for my poor english, I never use git before, hope to learn how this works ;-)
On which version of Joomla did you install SD? and which version of SD?
Hello Llewellyn,
the joomla version : 3.10.12
the sd version : 2.1.1
php version : 8.1
mysql version : 8.0.36
tested on Ubuntu 22.04.3 LTS
The component was dowloaded from Joomla :
(I just recheck, and download it again from https://extensions.joomla.org/extension/sermon-distributor/, unzip the package, and unzip christian__Joomla-Sermon-Distributor__master,
The bug may be in file pkg-sermondistributor-master/pkg-sermondistributor/src/christian__Joomla-Sermon-Distributor__master/joomla-sermon-distributor/site/models/sermon.php, lines #130 and #131, because of the table "'#__sermondistributor_sermon" does not have "not_required" column
I suspect that this crashes the sql query line 160, and then the catch line 202 gives a value for $data equal to "false" (line 212)
Then the line 220, $data being equal to false, necessarily the script crashes
I hope this helps.
But is it resolved now?
It works on my joomla installation because I removed the "not_required" field, but on the "original" code (on https://extensions.joomla.org/extension/sermon-distributor/) , the problem persists.
Sorry, I realize now that I shouldn't have closed the ticket, this tool is new to me, thanks for your patience ;-)
You are very welcome :)
I have now updated the master branch... if you can test it and let me know that will be wonderful.
Wonderful! It is working like a charm!
Have a nice day and thank you for your works ;-)