Page 1 of 1

"0 - Too few arguments..." error for category view pages

Posted: 14 Oct 2020, 19:27
by NeigerDesign
This error shows up on every menu item that is supposed to show a single category view with a list of files. I'm not sure when this error started to come up, so it's hard to say what changed.

I've tried removing my custom page layouts from the template, I've tried re-installing Phoca Download, I've tried creating new menu items, I've accessed the page as a public user and as an admin, and I've cleared every cache I can think of.

Any suggestions to clear up this error?

Re: "0 - Too few arguments..." error for category view pages

Posted: 15 Oct 2020, 16:55
by lindenburg
I do have the same problem after upgrading my yootheme template. I use version 3.2.0.

Re: "0 - Too few arguments..." error for category view pages

Posted: 15 Oct 2020, 18:39
by Jan
Hi, can you paste full error message? E.g. with enabling debug mode, etc. This message: "Too few arguments to function PhocaDownloadModelCategory::getPagination(), 0 passed in /home/axsmfygc/public_html/libraries/src/MVC/View/HtmlView.php on line 425 and exactly 2 expected" does not say where the error comes.

Jan

Re: "0 - Too few arguments..." error for category view pages

Posted: 16 Oct 2020, 00:26
by NeigerDesign
Jan wrote: 15 Oct 2020, 18:39 Hi, can you paste full error message? E.g. with enabling debug mode, etc. This message: "Too few arguments to function PhocaDownloadModelCategory::getPagination(), 0 passed in /home/axsmfygc/public_html/libraries/src/MVC/View/HtmlView.php on line 425 and exactly 2 expected" does not say where the error comes.

Jan
Here is a screenshot with DeBugging on: https://imgur.com/a/NWi5Wbf

Re: "0 - Too few arguments..." error for category view pages

Posted: 16 Oct 2020, 15:26
by agaudin
Hello
same problem here, both on Phocadownload or PhocaGallery - example :
https://upbm.org/publications/tous-les- ... blications

It could have happened after YooTheme upgrade.

Do you have any idea on how to fix it ?

Best regards
Antoine

Re: "0 - Too few arguments..." error for category view pages

Posted: 16 Oct 2020, 16:42
by agaudin
[EDIT] : last upgrade onight from YooTheme fixed it. Topic closed.

Re: "0 - Too few arguments..." error for category view pages

Posted: 16 Oct 2020, 19:08
by christine
Hi agaudin,

Thank you for your information!
@all: for changes check: https://yootheme.com/support/yootheme-pro/changelog

Kind regards
Christine