Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: “Missing argument 2 for Publisher_channel_categories::category_subtree()”

Status Resolved
Add-on / Version Publisher 2.6.3
Severity
EE Version 3.5.11

Matthias Ballmann

Aug 29, 2017

hi brian,

trying to give out a bunch of categories with activated publisher plugin results in a long list of these errors:

Warning
Missing argument 2 for Publisher_channel_categories::category_subtree(), called in user/addons/publisher/legacy/libraries/Publisher_channel_categories.php on line 1152 and defined
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 1198 show details
Severity: E_WARNING

Notice
Undefined variable: active_cat
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 1219 show details
Severity: E_NOTICE

Warning
Missing argument 2 for Publisher_channel_categories::category_subtree(), called in user/addons/publisher/legacy/libraries/Publisher_channel_categories.php on line 1363 and defined
user/addons/publisher/legacy/libraries/Publisher_channel_categories.php, line 1198 show details
Severity: E_WARNING

(…)

attached you’ll find a screenshot and the saved html-page with all the errors.
the code from my template is:

{exp:channel:categories category_group="3" style="linear"}
<li>{exp:publisher:translate_category cat_id="{category_id}" return="cat_name"}</li>
{/exp:channel:categories}


regards,
matthias

#1

BoldMinded (Brian)

I’m pretty sure this is an easy fix. I’ll take a look in a couple of hours. Did you mean to close this ticket? I had to reopen it.

#2

BoldMinded (Brian)

Comment has been marked private.

#3

Matthias Ballmann

hi brian,

I closed the ticket because I realized that I might have used the wrong code. therefor I wouldn’t bother you with another ticket.

now I use another code but it’s good to see this one is fixed. thank you!

but: I’ve got another question that might be related to this. the errors are different but also lots of it and also with categories.

I uploaded two new files (one screenshot and one html-output). this happens every time when I edit phrases (not with categories) within publisher.

#4

Matthias Ballmann

mmh, I cannot edit this ticket – I get an error:

“Error The following tag has a syntax error:

{exp:publisher:translate_category}

Please correct the syntax in your template.”

shall I open a new ticket? the error messages start like this:

Notice Undefined variable: isAuto user/addons/publisher/Controllers/Manage/Phrases.php, line 317 show details Severity: E_NOTICE

Notice Undefined variable: isAuto user/addons/publisher/Controllers/Manage/Phrases.php, line 317 show details Severity: E_NOTICE

#5

BoldMinded (Brian)

Don’t open new ticket, I’ll post a new build in a few minutes.

#6

BoldMinded (Brian)

Comment has been marked private.

#7

Matthias Ballmann

installed it and the errors are gone! thank you for the fast repair.

#8

BoldMinded (Brian)

you’re welcome!

Login to reply