• Resolved nobo73

    (@nobo73)


    Hi, After updating 2.2.0, I have fatal error.
    I just roll back to 2.1.0 now, so I don’t know what was wrong.
    But, the site is in production now. I can’t test it here.

    Is there anything that I should check?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Confirmed error 500 with latest plugin.

    Logs show the following:

    AH01071: Got error 'PHP message: PHP Warning: Undefined property: WP_Term_Query::$is_admin in /var/www/vhosts/site.com/httpdocs/wp-content/plugins/content-control/inc/functions/compatibility.php on line 127; PHP message: PHP Fatal error: Uncaught Error: Call to undefined method WP_Term_Query::is_favicon() in /var/www/vhosts/site.com/httpdocs/wp-content/plugins/content-control/inc/functions/compatibility.php:128\nStack trace:\n#0 /var/www/vhosts/site.com/httpdocs/wp-content/plugins/content-control/inc/functions/developers.php(330): ContentControl\\is_frontend()\n#1 /var/www/vhosts/site.com/httpdocs/wp-content/plugins/content-control/classes/Controllers/Frontend/Restrictions/QueryTerms.php(97): ContentControl\\protection_is_disabled()\n#2 /var/www/vhosts/site.com/httpdocs/wp-includes/class-wp-hook.php(324): ContentControl\\Controllers\\Frontend\\Restrictions\\QueryTerms->restrict_query_terms()\n#3 /var/www/vhosts/site.com/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters()\n#4 /var/www/vhosts/site.com/httpdocs/wp-includes/taxonomy.php(1354): apply_filters()\n#5 /var/www/vhosts/site.com/httpdocs/wp-includes/taxonomy.php(2291): get_terms()\n#6 /var/www/vhosts/...'

    Disabled plugin for now. Please follow up when patched.

    Thread Starter nobo73

    (@nobo73)

    I put an error message here.

    Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/content-control/inc/functions/restrictions.php:159 Stack trace: #0 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/content-control/inc/functions/restrictions.php(159): in_array('nav_menu', NULL, true) #1 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/content-control/classes/Controllers/Frontend/Restrictions/QueryTerms.php(101): ContentControl\query_can_be_ignored(Object(WP_Term_Query)) #2 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-includes/class-wp-hook.php(324): ContentControl\Controllers\Frontend\Restrictions\QueryTerms->restrict_query_terms(Array, NULL, Array, Object(WP_Term_Query)) #3 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array) #4 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-includes/taxonomy.php(1354): apply_filters('get_terms', Array, NULL, Array, Object(WP_Term_Query)) #5 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/components/WordPressContent/EntityType/TermEntityType.php(108): get_terms(Array) #6 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/components/Entity/Helper/EntitiesHelper.php(13): SabaiApps\Directories\Component\WordPressContent\EntityType\TermEntityType->entityTypeEntitiesByIds(Array, NULL, NULL) #7 [internal function]: SabaiApps\Directories\Component\Entity\Helper\EntitiesHelper->help(Object(SabaiApps\Directories\Application), 'term', Array, Array, true) #8 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/framework/Application/AbstractApplication.php(175): call_user_func_array(Array, Array) #9 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/framework/Application/AbstractApplication.php(89): SabaiApps\Framework\Application\AbstractApplication->callHelper('Entity_Entities', Array) #10 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/components/Entity/FieldType/TermsFieldType.php(119): SabaiApps\Framework\Application\AbstractApplication->__call('Entity_Entities', Array) #11 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/components/Entity/Helper/FieldHelper.php(281): SabaiApps\Directories\Component\Entity\FieldType\TermsFieldType->fieldTypeOnLoad(Object(SabaiApps\Directories\Component\Entity\Model\Field), Array, Object(SabaiApps\Directories\Component\WordPressContent\EntityType\PostEntity), Array) #12 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/components/Entity/Helper/FieldHelper.php(210): SabaiApps\Directories\Component\Entity\Helper\FieldHelper->_loadEntityFields(Object(SabaiApps\Directories\Application), 'post', Array, true, NULL, true) #13 [internal function]: SabaiApps\Directories\Component\Entity\Helper\FieldHelper->load(Object(SabaiApps\Directories\Application), 'post', Array, false, true, NULL, true) #14 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/framework/Application/AbstractApplication.php(175): call_user_func_array(Array, Array) #15 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/framework/Application/AbstractApplication.php(89): SabaiApps\Framework\Application\AbstractApplication->callHelper('Entity_Field_lo...', Array) #16 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/components/Entity/Type/Query.php(82): SabaiApps\Framework\Application\AbstractApplication->__call('Entity_Field_lo...', Array) #17 [internal function]: SabaiApps\Directories\Component\Entity\Type\Query->fetch(39, 0, NULL, true, true) #18 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/framework/Paginator/CustomPaginator.php(39): call_user_func_array(Array, Array) #19 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/framework/Paginator/AbstractPaginator.php(81): SabaiApps\Framework\Paginator\CustomPaginator->_getElements(39, 0) #20 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/components/View/Controller/QueryEntities.php(180): SabaiApps\Framework\Paginator\AbstractPaginator->getElements() #21 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/components/View/Controller/ViewEntities.php(17): SabaiApps\Directories\Component\View\Controller\QueryEntities->_doExecute(Object(SabaiApps\Directories\Context)) #22 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/application/Controller.php(45): SabaiApps\Directories\Component\View\Controller\ViewEntities->_doExecute(Object(SabaiApps\Directories\Context)) #23 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/framework/Application/AbstractRoutingController.php(91): SabaiApps\Directories\Controller->execute(Object(SabaiApps\Directories\Context)) #24 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/framework/Application/AbstractRoutingController.php(86): SabaiApps\Framework\Application\AbstractRoutingController->_executeController(Object(SabaiApps\Directories\Context), Object(SabaiApps\Directories\Component\View\Controller\ViewEntities)) #25 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/framework/Application/AbstractRoutingController.php(26): SabaiApps\Framework\Application\AbstractRoutingController->_doExecute(Object(SabaiApps\Directories\Context), Object(SabaiApps\Directories\Route)) #26 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/framework/Application/AbstractApplication.php(99): SabaiApps\Framework\Application\AbstractRoutingController->execute(Object(SabaiApps\Directories\Context)) #27 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/framework/Application/AbstractHttpApplication.php(10): SabaiApps\Framework\Application\AbstractApplication->run(Object(SabaiApps\Directories\MainRoutingController), Object(SabaiApps\Directories\Context), '/pages') #28 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/application/Application.php(103): SabaiApps\Framework\Application\AbstractHttpApplication->run(Object(SabaiApps\Directories\MainRoutingController), Object(SabaiApps\Directories\Context), '/pages') #29 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/application/Platform/AbstractPlatform.php(582): SabaiApps\Directories\Application->run(Object(SabaiApps\Directories\MainRoutingController), Object(SabaiApps\Directories\Context), '/pages') #30 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/application/Platform/AbstractPlatform.php(523): SabaiApps\Directories\Platform\AbstractPlatform->_doRender('/pages', Array, Array) #31 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/application/Component/WordPress/Helper/ShortcodesHelper.php(92): SabaiApps\Directories\Platform\AbstractPlatform->render('/pages', Array, Array) #32 [internal function]: SabaiApps\Directories\Component\WordPress\Helper\ShortcodesHelper->doShortcode(Object(SabaiApps\Directories\Application), Array, '', 'drts-directory-...') #33 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/framework/Application/AbstractApplication.php(175): call_user_func_array(Array, Array) #34 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/directories/lib/framework/Application/AbstractApplication.php(89): SabaiApps\Framework\Application\AbstractApplication->callHelper('WordPress_Short...', Array) #35 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-includes/shortcodes.php(433): SabaiApps\Framework\Application\AbstractApplication->__call('WordPress_Short...', Array) #36 [internal function]: do_shortcode_tag(Array) #37 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(drts\\-...', 'do_shortcode_ta...', '\n<p>\xE5\x8D\x92\xE6\xA5\xAD\xE7\x94\x9F\xE3\x81...') #38 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-includes/class-wp-hook.php(324): do_shortcode('\n<p>\xE5\x8D\x92\xE6\xA5\xAD\xE7\x94\x9F\xE3\x81...') #39 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-includes/plugin.php(205): WP_Hook->apply_filters('\n<p>\xE5\x8D\x92\xE6\xA5\xAD\xE7\x94\x9F\xE3\x81...', Array) #40 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-includes/blocks/post-content.php(48): apply_filters('the_content', '<!-- wp:paragra...') #41 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-includes/class-wp-block.php(258): render_block_core_post_content(Array, '<!-- wp:paragra...', Object(WP_Block)) #42 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-includes/class-wp-block.php(244): WP_Block->render() #43 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-includes/blocks.php(1484): WP_Block->render() #44 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-includes/blocks.php(1522): render_block(Array) #45 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-includes/block-template.php(260): do_blocks('<!-- wp:templat...') #46 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-includes/template-canvas.php(12): get_the_block_template_html() #47 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-includes/template-loader.php(106): include('/home/minamisaw...') #48 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-blog-header.php(19): require_once('/home/minamisaw...') #49 /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/index.php(17): require('/home/minamisaw...') #50 {main} thrown in /home/minamisawa/jiyu-minamisawa.jp/public_html/staging.jiyu-minamisawa.jp/wp-content/plugins/content-control/inc/functions/restrictions.php on line 159.
    Plugin Author Daniel Iser

    (@danieliser)

    @nobo73, @robin-labadie – Confirmed, fix coming shortly.

    Yes, site got shutdown with white screen and 1 line error: There has been a critical error on your website.

    Plugin is disabled for now. Please notify us once the update is released. Thank you.

    • This reply was modified 8 months, 1 week ago by waytra.

    The latest version 2.2.0 is throwing error

    Fatal error: Uncaught Error: Call to undefined method WP_Term_Query::is_favicon() in public_html/documentation/wp-content/plugins/content-control/inc/functions/compatibility.php:128

    Please check.

    Plugin Author Daniel Iser

    (@danieliser)

    I wasn’t able to replicate it myself, but I’ve added some type checks there that should prevent that specific error/warning.

    @nobo73 – Same, patched with type check there.

    Plugin Author Daniel Iser

    (@danieliser)

    Fix pushed already, you should see 2.2.1 available as soon as github actions finish.

    That should have addressed all errors in this thread with type enforcement & checks.

    That said can anyone tell me how your triggering this error? Is it on specific urls or something?

    The only way this should occur typically is if the main query was for a taxonomy archive, which I didn’t know even existed.

    I’m marking this resolved, if you see anything new lets start a new thread to keep it clear what errors remain unsolved.

    Thread Starter nobo73

    (@nobo73)

    @danieliser
    Hi, It seems okay for now.
    Many thanks for your prompt support!

    Plugin Author Daniel Iser

    (@danieliser)

    @nobo73 – Much appreciate the quick reports of errors, better to fix them right away when less people have had them ??

    Glad to hear that resolved it.

    Hi, I sincerely appreciate the great reactivity.

    However, if that does fix the first error, it now creates a memory_limit error (I’ve doubled it, still does trigger the issue, when disabling the plugin the issue goes away).

    I’ve therefore opened a new thread as it’s a different issue, and added details that will hopefully let you reproduce the issue.

    https://www.ads-software.com/support/topic/critical-bug-memory_limit-reached-with-2-2-1/

    Thank you

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal error with 2.2.0’ is closed to new replies.