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

Phoca Download - download manager
NeigerDesign
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 14 Oct 2020, 19:17

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

Post by NeigerDesign » 14 Oct 2020, 19:27

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?

Tags:

lindenburg
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 20 Nov 2015, 20:16

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

Post by lindenburg » 15 Oct 2020, 16:55

I do have the same problem after upgrading my yootheme template. I use version 3.2.0.

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 43740
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan » 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
If you find Phoca extensions useful, please support the project

NeigerDesign
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 14 Oct 2020, 19:17

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

Post by NeigerDesign » 16 Oct 2020, 00:26

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

agaudin
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Oct 2020, 15:23

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

Post by agaudin » 16 Oct 2020, 15:26

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

agaudin
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 16 Oct 2020, 15:23

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

Post by agaudin » 16 Oct 2020, 16:42

[EDIT] : last upgrade onight from YooTheme fixed it. Topic closed.

christine
Phoca Hero
Phoca Hero
Posts: 2161
Joined: 28 Nov 2010, 17:20

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

Post by christine » 16 Oct 2020, 19:08

Hi agaudin,

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

Kind regards
Christine

Post Reply