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: Dependency Injection Error

Status Resolved
Add-on / Version Publisher 2.8.2
Severity
EE Version 3.5.6

Gregory Maher

Jun 04, 2018

Hi Brian,
We have an ExpressionEngine 3.5.12 site that we just upgraded Publisher on to version 2.8.2. However, on one of our templates we’re getting an error as shown below. We’ve isolated the error to the Channel Categories tag as follows:
{exp:channel:categories channel="xyz" style="linear" show="not 182|183" cache="yes" refresh="360"}

Any ExpressionEngine tags inside of the exp:channel:categories tag throw the error. EllisLab suggested it might be due to a conflict with some code that’s not present until ExpressionEngine 4. I was under the impression that 2.8.2 was good for 3 or 4.

Let me know what you think and we’ll plan accordingly.

Thanks!

Greg

Error here:
Exception Caught
Dependency Injection: Unregistered service “ee:Variables/Parser”
ee/EllisLab/ExpressionEngine/Service/Dependency/InjectionContainer.php:184

Stack Trace: hide details
#0 ee/EllisLab/ExpressionEngine/Boot/boot.php(132): EllisLab\ExpressionEngine\Service\Dependency\InjectionContainer->make(‘Variables/Parse…’)
#1 user/addons/publisher/legacy/libraries/Publisher_channel_categories.php(1406): ee(‘Variables/Parse…’)
#2 [internal function]: Publisher_channel_categories->{closure}(’!—ra:00000000…’)
#3 user/addons/publisher/legacy/libraries/Publisher_channel_categories.php(1408): array_map(Object(Closure), Array)
#4 user/addons/publisher/legacy/libraries/Publisher_channel_categories.php(1361): Publisher_channel_categories->cacheCategoryFieldModels()
#5 user/addons/publisher/legacy/libraries/Publisher_channel_categories.php(184): Publisher_channel_categories->generateCategoryFieldSQL(‘9’)
#6 user/addons/publisher/ext.publisher.php(868): Publisher_channel_categories->categories()
#7 ee/legacy/libraries/Extensions.php(243): Publisher_ext->channel_module_categories_start()
#8 ee/legacy/libraries/Extensions.php(138): EE_Extensions->call_class(‘Publisher_ext’, ‘channel_module_…’, Array, Array)
#9 ee/EllisLab/Addons/channel/mod.channel.php(2675): EE_Extensions->call(‘channel_module_…’)
#10 ee/legacy/libraries/Template.php(1713): Channel->categories()
#11 ee/legacy/libraries/Template.php(1350): EE_Template->process_tags()
#12 ee/legacy/libraries/Template.php(554): EE_Template->tags()
#13 ee/legacy/libraries/Template.php(240): EE_Template->parse(’{!—ra:0000000…’, false, 1, false)
#14 ee/legacy/libraries/Template.php(171): EE_Template->fetch_and_parse(’‘, Array, false)
#15 ee/legacy/libraries/Core.php(682): EE_Template->run_template_engine(’‘, ‘’)
#16 ee/legacy/controllers/ee.php(68): EE_Core->generate_page()
#17 [internal function]: EE->index()
#18 ee/EllisLab/ExpressionEngine/Core/Core.php(189): call_user_func_array(Array, Array)
#19 ee/EllisLab/ExpressionEngine/Core/Core.php(94): EllisLab\ExpressionEngine\Core\Core->runController(Array)
#20 ee/EllisLab/ExpressionEngine/Boot/boot.php(151): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))
#21 httpdocs/index.php(177): require_once(’...’)
#21 httpdocs/index.php(177): require_once(’...’)

#1

BoldMinded (Brian)

Greg, I just got back from a road trip, so it’ll be a couple days before I can look into this.

#2

BoldMinded (Brian)

Greg, can you provide more information about the template code you’re using? Looks like this is happening in a categories tag pair.

#3

Gregory Maher

Comment has been marked private.

#4

BoldMinded (Brian)

Comment has been marked private.

#5

Gregory Maher

That was fast! I will try first-thing in the AM.

Thanks, Brian!

Greg

#6

BoldMinded (Brian)

Greg, did the new build work?

#7

Kevin Chatel

Hi Brian. I think I’m having a similar issue! Same version of Publisher. We are testing the process of removing transcribe and installed publisher on a test build that already had many entries in the site.

Here is the similar error.

Dependency Injection: Unregistered service "ee:Variables/Parser"

ee/EllisLab/ExpressionEngine/Service/Dependency/InjectionContainer.php:184
Stack Trace: hide details

    #0 ee/EllisLab/ExpressionEngine/Boot/boot.php(132): EllisLab\ExpressionEngine\Service\Dependency\InjectionContainer->make('Variables/Parse...')
    #1 user/addons/publisher/legacy/libraries/Publisher_channel_categories.php(1406): ee('Variables/Parse...')
    #2 [internal function]: Publisher_channel_categories->{closure}('category_url_ti...')
    #3 user/addons/publisher/legacy/libraries/Publisher_channel_categories.php(1408): array_map(Object(Closure), Array)
    #4 user/addons/publisher/legacy/libraries/Publisher_channel_categories.php(1361): Publisher_channel_categories->cacheCategoryFieldModels()
    #5 user/addons/publisher/legacy/libraries/Publisher_channel_categories.php(184): Publisher_channel_categories->generateCategoryFieldSQL('14','9','6','5'...')
    #6 user/addons/publisher/ext.publisher.php(868): Publisher_channel_categories->categories()
    #7 ee/legacy/libraries/Extensions.php(243): Publisher_ext->channel_module_categories_start()
    #8 ee/legacy/libraries/Extensions.php(138): EE_Extensions->call_class('Publisher_ext', 'channel_module_...', Array, Array)
    #9 ee/EllisLab/Addons/channel/mod.channel.php(2675): EE_Extensions->call('channel_module_...')
    #10 ee/legacy/libraries/Template.php(1713): Channel->categories()
    #11 ee/legacy/libraries/Template.php(1350): EE_Template->process_tags()
    #12 ee/legacy/libraries/Template.php(554): EE_Template->tags()
    #13 ee/legacy/libraries/Template.php(240): EE_Template->parse('{!-- ra:0000000...', false, 1, false)
    #14 ee/legacy/libraries/Template.php(171): EE_Template->fetch_and_parse('templates', Array, false)
    #15 ee/legacy/libraries/Core.php(682): EE_Template->run_template_engine('templates', 'education-listi...')
    #16 ee/legacy/controllers/ee.php(68): EE_Core->generate_page()
    #17 [internal function]: EE->index()
    #18 ee/EllisLab/ExpressionEngine/Core/Core.php(189): call_user_func_array(Array, Array)
    #19 ee/EllisLab/ExpressionEngine/Core/Core.php(94): EllisLab\ExpressionEngine\Core\Core->runController(Array)
    #20 ee/EllisLab/ExpressionEngine/Boot/boot.php(151): EllisLab\ExpressionEngine\Core\Core->run(Object(EllisLab\ExpressionEngine\Core\Request))
    #21 index.php(175): require_once('...')
    #21 index.php(175): require_once('...')
#8

Kevin Chatel

Also here is the code that is erroring out the page.

{exp:channel:categories category_group="19" style="linear"}
                        <div class="filterLink"><a href="#" class="filter">{category_name}</a></div>
                    {/exp:channel:categories}
#9

BoldMinded (Brian)

Kevin, create a new ticket and reference this one. You can’t see the private comment that has the build version b/c you didn’t create this ticket.

#10

BoldMinded (Brian)

Comment has been marked private.

Login to reply