Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with new research area #18

Open
righ3llo opened this issue Feb 7, 2018 · 1 comment
Open

Problem with new research area #18

righ3llo opened this issue Feb 7, 2018 · 1 comment
Assignees

Comments

@righ3llo
Copy link

righ3llo commented Feb 7, 2018

Too few arguments to function JResearchAdminModelResearchArea::save(), 0 passed in C:\xampp\htdocs\mysite\administrator\components\com_jresearch\controllers\researchareas.php on line 82 and exactly 1 expected

I have this error when I try to create a new research area or when I want to modify the Uncategorized Research Area that exists by default.

Apache/2.4.26 (Win32) OpenSSL/1.0.2l PHP/7.1.7

@lgalarra
Copy link
Collaborator

Hi,

I suspect PHP 7 may be stricter when it comes to passing arguments to functions. It is safe to replace the referred line with:

if ($model->save($form)){

instead of

if ($model->save()){

Please, let me know the outcome.

Cheers,
Luis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants