Symfony Exception

ContextErrorException

HTTP500 Internal Server Error

Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given

Exception

Symfony\Component\Debug\Exception\ ContextErrorException

  1.                 // Avoid the array_slice if possible.
  2.                 if ( $the_['accepted_args'] == ) {
  3.                     $value call_user_func_array$the_['function'], array() );
  4.                 } elseif ( $the_['accepted_args'] >= $num_args ) {
  5.                     $value call_user_func_array$the_['function'], $args );
  6.                 } else {
  7.                     $value call_user_func_array$the_['function'], array_slice$args0, (int)$the_['accepted_args'] ) );
  8.                 }
  9.             }
  10.         } while ( false !== next$this->iterations$nesting_level ] ) );
WP_Hook->apply_filters() in web/wp/wp-includes/plugin.php (line244)
  1.     }
  2.     if ( !isset($wp_filter['all']) )
  3.         $wp_current_filter[] = $tag;
  4.     $filtered $wp_filter$tag ]->apply_filters$args[0], $args );
  5.     array_pop$wp_current_filter );
  6.     return $filtered;
  7. }
apply_filters_ref_array() in web/wp/wp-includes/class-wp-query.php (line2982)
  1.              * @since 1.5.0
  2.              *
  3.              * @param array    $posts The array of retrieved posts.
  4.              * @param WP_Query $this The WP_Query instance (passed by reference).
  5.              */
  6.             $this->posts apply_filters_ref_array'the_posts', array( $this->posts, &$this ) );
  7.         }
  8.         // Ensure that any posts added/modified via one of the filters above are
  9.         // of the type WP_Post and are filtered.
  10.         if ( $this->posts ) {
WP_Query->get_posts() in web/wp/wp-includes/class-wp-query.php (line3230)
  1.      * @return array List of posts.
  2.      */
  3.     public function query$query ) {
  4.         $this->init();
  5.         $this->query $this->query_vars wp_parse_args$query );
  6.         return $this->get_posts();
  7.     }
  8.     /**
  9.      * Retrieve queried object.
  10.      *
WP_Query->query() in web/wp/wp-includes/post.php (line1763)
  1.     $r['ignore_sticky_posts'] = true;
  2.     $r['no_found_rows'] = true;
  3.     $get_posts = new WP_Query;
  4.     return $get_posts->query($r);
  5. }
  6. //
  7. // Post meta functions
  1.     public function partnerAction($idWpService $wpRequest $request) {
  2.         $wp->initWp();
  3.         $ps get_posts(array(
  4.             "post_type" => "partner",
  5.             "author" => $id,
  6.             "posts_per_page" => 1
  7.         ));
  8.         $pid $ps[0]->ID;
  9.         $p get_post($pid);
  10.         $f get_fields($pid);
  11.         $mf get_fields(696);
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response = \call_user_func_array($controller$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in web/kmoapdev.php (line31)
  1. $kernel = new AppKernel('dev'true);
  2. if (PHP_VERSION_ID 70000) {
  3.     $kernel->loadClassCache();
  4. }
  5. $request Request::createFromGlobals();
  6. $response $kernel->handle($request);
  7. $response->send();
  8. $kernel->terminate($request$response);

Logs1

LevelChannel Message
INFO 20:00:11 request Matched route "app_partner".
INFO 20:00:11 security Populated the TokenStorage with an anonymous Token.
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\ResolveControllerNameSubscriber::onKernelRequest".
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Bundle\AsseticBundle\EventListener\RequestListener::onKernelRequest".
DEBUG 20:00:11 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
DEBUG 20:00:11 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector::onKernelController".
DEBUG 20:00:11 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
DEBUG 20:00:11 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
DEBUG 20:00:11 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
DEBUG 20:00:11 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
DEBUG 20:00:11 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelControllerArguments".
DEBUG 20:00:11 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\IsGrantedListener::onKernelControllerArguments".
DEBUG 20:00:11 php Notice: Undefined index: wp-path
INFO 20:00:11 php Deprecated: Function get_magic_quotes_gpc() is deprecated
INFO 20:00:11 php Deprecated: Function get_magic_quotes_gpc() is deprecated
INFO 20:00:11 php Deprecated: Function get_magic_quotes_gpc() is deprecated
CRITICAL 20:00:11 request Uncaught PHP Exception Symfony\Component\Debug\Exception\ContextErrorException: "Warning: Parameter 2 to qtranxf_postsFilter() expected to be a reference, value given" at /var/www/kmo.org.pl/public_html/web/wp/wp-includes/class-wp-hook.php line 286
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\ResolveControllerNameSubscriber::onKernelRequest".
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
DEBUG 20:00:11 event Notified event "kernel.request" to listener "Symfony\Bundle\AsseticBundle\EventListener\RequestListener::onKernelRequest".
DEBUG 20:00:11 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
DEBUG 20:00:11 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector::onKernelController".
DEBUG 20:00:11 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
DEBUG 20:00:11 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
DEBUG 20:00:11 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
DEBUG 20:00:11 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
DEBUG 20:00:11 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelControllerArguments".
DEBUG 20:00:11 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\IsGrantedListener::onKernelControllerArguments".
INFO 20:00:11 php Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
INFO 20:00:11 php Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
INFO 20:00:11 php Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
INFO 20:00:11 php Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
INFO 20:00:11 php Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
INFO 20:00:11 php Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
INFO 20:00:11 php Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
INFO 20:00:11 php Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
INFO 20:00:11 php Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
INFO 20:00:11 php Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
INFO 20:00:11 php Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
INFO 20:00:11 php Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
INFO 20:00:11 php Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
INFO 20:00:11 php Deprecated: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead

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()
     (src/AppBundle/Controller/AppController.php:250)atAppBundle\Controller\AppController->partnerAction()
     (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)