Exceptions
Exception
Symfony\Component\Debug\Exception\ ContextErrorException
// Avoid the array_slice if possible.
if ( $the_['accepted_args'] == 0 ) {
$value = call_user_func_array( $the_['function'], array() );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int)$the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
* @since 1.5.0
*
* @param array $posts The array of retrieved posts.
* @param WP_Query $this The WP_Query instance (passed by reference).
*/
$this->posts = apply_filters_ref_array( 'the_posts', array( $this->posts, &$this ) );
}
// Ensure that any posts added/modified via one of the filters above are
// of the type WP_Post and are filtered.
if ( $this->posts ) {
acf_get_field_id()
in
web/wp/wp-content/plugins/advanced-custom-fields-pro/api/api-field.php
(line950)
_acf_get_field_by_key()
in
web/wp/wp-content/plugins/advanced-custom-fields-pro/api/api-field.php
(line817)
acf_get_field()
in
web/wp/wp-content/plugins/advanced-custom-fields-pro/api/api-field.php
(line1036)
acf_maybe_get_field()
in
web/wp/wp-content/plugins/advanced-custom-fields-pro/api/api-template.php
(line326)
if( !array_key_exists("_{$k}", $meta) ) continue;
// get field
$field_key = $meta["_{$k}"][0];
$field = acf_maybe_get_field( $field_key );
// bail early if no field, or if the field's name is different to $k
// - solves problem where sub fields (and clone fields) are incorrectly allowed
if( !$field || $field['name'] !== $k ) continue;
get_field_objects()
in
web/wp/wp-content/plugins/advanced-custom-fields-pro/api/api-template.php
(line200)
$print = $request->query->get('print', false);
$pdf = $request->query->get('pdf', false);
$wp->initWp();
$p = get_post($id);
$f = get_fields($id);
$p->author = get_the_author_meta('display_name', $p->post_author);
$taxo_field = wp_get_post_terms($p->ID, 'field');
$taxo_keyword = wp_get_post_terms($p->ID, 'keyword');
if ($pdf) {
AppController->scenarioAction()
in
vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php
(line151)
$this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS, $event);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = \call_user_func_array($controller, $arguments);
// view
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
HttpKernel->handleRaw()
in
vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php
(line68)
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
HttpKernel->handle()
in
vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php
(line202)
Stack Trace
ContextErrorException |
---|
Symfony\Component\Debug\Exception\ContextErrorException:Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value givenat web/wp/wp-includes/class-wp-hook.php:286atWP_Hook->apply_filters() (web/wp/wp-includes/plugin.php:244)atapply_filters_ref_array() (web/wp/wp-includes/class-wp-query.php:2982)atWP_Query->get_posts() (web/wp/wp-includes/class-wp-query.php:3230)atWP_Query->query() (web/wp/wp-includes/post.php:1763)atget_posts() (web/wp/wp-content/plugins/advanced-custom-fields-pro/api/api-field.php:1108)atacf_get_field_id() (web/wp/wp-content/plugins/advanced-custom-fields-pro/api/api-field.php:950)at_acf_get_field_by_key() (web/wp/wp-content/plugins/advanced-custom-fields-pro/api/api-field.php:817)atacf_get_field() (web/wp/wp-content/plugins/advanced-custom-fields-pro/api/api-field.php:1036)atacf_maybe_get_field() (web/wp/wp-content/plugins/advanced-custom-fields-pro/api/api-template.php:326)atget_field_objects() (web/wp/wp-content/plugins/advanced-custom-fields-pro/api/api-template.php:200)atget_fields() (src/AppBundle/Controller/AppController.php:75)atAppBundle\Controller\AppController->scenarioAction() (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)atSymfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)atSymfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:202)atSymfony\Component\HttpKernel\Kernel->handle() (web/kmoapdev.php:31) |