Problems with Joomla 3.9.8 PHP 7.2 and J!Research 3.2.0

98 views
Skip to first unread message

Andrea Marchionni

unread,
Jul 11, 2019, 9:12:06 AM7/11/19
to J!Research Support
Hi guys,

I have troubles with the system in the object (J! 3.9.8, PHP 7.2, Jresearch 3.2.0)

Initially, I saw some problems with the file toolbar.jresearch.html.php, but I resolved easy with your former message and a visit on your GitHub. Thus, I upgrade the reported files that you suggested (src/admin/controllers/researchareas.php , src/admin/toolbar.jresearch.html.php , src/languages/site/en-GB.com_jresearch.financiers.ini , src/languages/site/en-GB.com_jresearch.projects.ini , src/languages/site/en-GB.com_jresearch.researchareas.ini , src/languages/site/en-GB.com_jresearch.staff.ini , src/site/models/projects/projects.php)


Now the main page of components ok, but some other problems still remain.

When I try to add a new user (not Joomla user) or modify and save an existing unit staff I receive the following message and jresearch does not save the item.

*******************
Too few arguments to function JResearchAdminModelMember::save(), 0 passed in /home/virtual/iccom/www/administrator/components/com_jresearch/controllers/staff.php on line 266 and exactly 1 expected
*****************

Then I activated the maximum level of error report to obtain more information from all sections.

In the "Member position" section it is reported the following warning message: «Warning: Declaration of JResearchAdminModelMember_position::save() should be compatible with Joomla\CMS\MVC\Model\AdminModel::save($data) in /home/virtual/iccom/www/administrator/components/com_jresearch/models/member_positions/member_position.php on line 18».
However, the plugins save new items but it is impossible to delete any items with the error message "Too few arguments to function JResearchAdminModelMember_position::delete(), 0 passed in /home/virtual/iccom/www/administrator/components/com_jresearch/controllers/member_positions.php on line 138 and exactly 1 expected".

In the "Publication" section it is reported the warning message: «Warning: count(): Parameter must be an array or an object that implements Countable in /home/virtual/iccom/www/administrator/components/com_jresearch/views/publications/tmpl/default.php on line 58». However, it seems to works fine (save the new item and delete it).

In the "Projects" area it is reported the warning message: « Warning: Declaration of JResearchAdminModelProject::save() should be compatible with Joomla\CMS\MVC\Model\AdminModel::save($data) in /home/virtual/iccom/www/administrator/components/com_jresearch/models/projects/project.php on line 18». However Jresearch saves fine but it is impossible to delete any items with the following error " Too few arguments to function JResearchAdminModelProject::delete(), 0 passed in /home/virtual/iccom/www/administrator/components/com_jresearch/controllers/projects.php on line 165 and exactly 1 expected ".

In the "Research areas" section it is showed only an error message "Invalid control class: JResearchAdminResearchareasController ".

In the "Staff" section it is impossible to add new item with the error "Too few arguments to function JResearchAdminModelMember::save(), 0 passed in /home/virtual/iccom/www/administrator/components/com_jresearch/controllers/staff.php on line 266 and exactly 1 expected " or delete items with the error " Too few arguments to function JResearchAdminModelMember::delete(), 0 passed in /home/virtual/iccom/www/administrator/components/com_jresearch/controllers/staff.php on line 190 and exactly 1 expected". However, it can import joomla user.

I hope that this report can be useful to fix the bugs.

Let me update about your work.

Best regards,
Andrea Marchionni

Andrea Marchionni

unread,
Jul 11, 2019, 9:26:00 AM7/11/19
to J!Research Support
Dear all,

I have read just now this message

And I think that it can work with my reported troubles.

I tried with the "Staff" section and it save now but it still do not remove items.

I'll try to do something, also to open an issue on github.

Have a nice day,
Andrea Marchionni
Reply all
Reply to author
Forward
0 new messages