Error 500 Internal Server Error

GET https://afyaone.beasoft.tech/fr/prendre-rendez-vous

Exceptions

Access to property 'consultationType' is not allowed.

Exception

RuntimeException

  1. #[Pure]
  2. public function __get($key)
  3. {
  4. if (!in_array($key, self::ALLOWED_MAGIC_GET, true)) {
  5. throw new RuntimeException("Access to property '$key' is not allowed.");
  6. }
  7. return $this->$key ?? null;
  8. }
  1. throw new NoSuchPropertyException(\sprintf('Can\'t get a way to read the property "%s" in class "%s".', $property, $class));
  2. }
  3. }
  4. }
  5. $result[self::VALUE] = $object->$name;
  6. if (isset($zval[self::REF]) && $access->canBeReference()) {
  7. $result[self::REF] = &$object->$name;
  8. }
  9. }
  1. $zval = [
  2. self::VALUE => $objectOrArray,
  3. ];
  4. if (\is_object($objectOrArray) && (false === strpbrk((string) $propertyPath, '.[?') || $objectOrArray instanceof \stdClass && property_exists($objectOrArray, $propertyPath))) {
  5. return $this->readProperty($zval, $propertyPath, $this->ignoreInvalidProperty)[self::VALUE];
  6. }
  7. $propertyPath = $this->getPropertyPath($propertyPath);
  8. $propertyValues = $this->readPropertiesUntil($zval, $propertyPath, $propertyPath->getLength(), $this->ignoreInvalidIndices);
  1. }
  2. private function getPropertyValue(object|array $data, PropertyPathInterface $propertyPath): mixed
  3. {
  4. try {
  5. return $this->propertyAccessor->getValue($data, $propertyPath);
  6. } catch (PropertyAccessException $e) {
  7. if (\is_array($data) && $e instanceof NoSuchIndexException) {
  8. return null;
  9. }
  1. {
  2. if (null === $propertyPath = $form->getPropertyPath()) {
  3. throw new AccessException('Unable to read from the given form data as no property path is defined.');
  4. }
  5. return $this->getPropertyValue($data, $propertyPath);
  6. }
  7. public function setValue(object|array &$data, mixed $value, FormInterface $form): void
  8. {
  9. if (null === $propertyPath = $form->getPropertyPath()) {
  1. public function getValue(object|array $data, FormInterface $form): mixed
  2. {
  3. foreach ($this->accessors as $accessor) {
  4. if ($accessor->isReadable($data, $form)) {
  5. return $accessor->getValue($data, $form);
  6. }
  7. }
  8. throw new AccessException('Unable to read from the given form data as no accessor in the chain is able to read the data.');
  9. }
  1. foreach ($forms as $form) {
  2. $config = $form->getConfig();
  3. if (!$empty && $config->getMapped() && $this->dataAccessor->isReadable($data, $form)) {
  4. $form->setData($this->dataAccessor->getValue($data, $form));
  5. } else {
  6. $form->setData($config->getData());
  7. }
  8. }
  9. }
in vendor/symfony/form/Form.php -> mapDataToForms (line 321)
  1. $this->lockSetData = false;
  2. // Compound forms don't need to invoke this method if they don't have children
  3. if (\count($this->children) > 0) {
  4. // Update child forms from the data (unless their config data is locked)
  5. $this->config->getDataMapper()->mapDataToForms($viewData, new \RecursiveIteratorIterator(new InheritDataAwareIterator($this->children)));
  6. }
  7. if ($dispatcher->hasListeners(FormEvents::POST_SET_DATA)) {
  8. $event = new PostSetDataEvent($this, $modelData);
  9. $dispatcher->dispatch($event, FormEvents::POST_SET_DATA);
in vendor/symfony/form/Form.php -> setData (line 410)
  1. // Guarantee that the *_SET_DATA events have been triggered once the
  2. // form is initialized. This makes sure that dynamically added or
  3. // removed fields are already visible after initialization.
  4. if (!$this->defaultDataSet) {
  5. $this->setData($this->config->getData());
  6. }
  7. return $this;
  8. }
in vendor/symfony/form/FormBuilder.php -> initialize (line 171)
  1. $form->add($child->setAutoInitialize(false)->getForm());
  2. }
  3. if ($this->getAutoInitialize()) {
  4. // Automatically initialize the form if it is configured so
  5. $form->initialize();
  6. }
  7. return $form;
  8. }
  1. /**
  2. * @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)
  3. */
  4. public function create(string $type = FormType::class, mixed $data = null, array $options = []): FormInterface
  5. {
  6. return $this->createBuilder($type, $data, $options)->getForm();
  7. }
  8. /**
  9. * @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)
  10. */
  1. if ($formType === null) {
  2. $formType = FormType::class;
  3. }
  4. return $this->formFactory->create($formType, $this->formData, $options);
  5. }
  6. /**
  7. * Creates all steps from the given configuration.
  8. * @param array $stepsConfig
in vendor/craue/formflow-bundle/Form/FormFlow.php -> createFormForStep (line 773)
  1. /**
  2. * {@inheritDoc}
  3. */
  4. public function createForm() {
  5. $form = $this->createFormForStep($this->currentStepNumber);
  6. if ($this->expired && $this->hasListeners(FormFlowEvents::FLOW_EXPIRED)) {
  7. $this->dispatchEvent(new FlowExpiredEvent($this, $form), FormFlowEvents::FLOW_EXPIRED);
  8. }
FormFlow->createForm() in src/Controller/Frontend/Patient/MainController.php (line 63)
  1. // return $this->redirectToRoute('app_security_authentication_login');
  2. // }
  3. $appointment = new Appointment();
  4. $flow->bind($appointment);
  5. $form = $flow->createForm();
  6. if ($flow->isValid($form)) {
  7. $flow->saveCurrentStepData($form);
  8. if ($flow->nextStep()) {
in vendor/symfony/http-kernel/HttpKernel.php -> appointmentBooking (line 183)
  1. $this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
  2. $controller = $event->getController();
  3. $arguments = $event->getArguments();
  4. // call controller
  5. $response = $controller(...$arguments);
  6. // view
  7. if (!$response instanceof Response) {
  8. $event = new ViewEvent($this, $request, $type, $response, $event);
  9. $this->dispatcher->dispatch($event, KernelEvents::VIEW);
  1. $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2. $this->requestStack->push($request);
  3. $response = null;
  4. try {
  5. return $response = $this->handleRaw($request, $type);
  6. } catch (\Throwable $e) {
  7. if ($e instanceof \Error && !$this->handleAllThrowables) {
  8. throw $e;
  9. }
  1. if (!$this->handlingHttpCache) {
  2. $this->resetServices = true;
  3. }
  4. try {
  5. return $this->getHttpKernel()->handle($request, $type, $catch);
  6. } finally {
  7. --$this->requestStackSize;
  8. }
  9. }
  1. ) {
  2. }
  3. public function run(): int
  4. {
  5. $response = $this->kernel->handle($this->request);
  6. if (Kernel::VERSION_ID >= 60400) {
  7. $response->send(false);
  8. if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app = $app(...$args);
  2. exit(
  3. $runtime
  4. ->getRunner($app)
  5. ->run()
  6. );
require_once('/home/u879680891/domains/beasoft.tech/public_html/afyaone/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. use App\Kernel;
  3. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  4. return function (array $context) {
  5. return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  6. };

Logs

Level Channel Message
INFO 14:00:13 deprecation User Deprecated: The Liip\ImagineBundle\Templating\FilterTrait trait is deprecated since version 2.7 and will be removed in 3.0; use Twig instead.
{
    "exception": {}
}
INFO 14:00:13 deprecation User Deprecated: The Liip\ImagineBundle\Templating\FilterExtension class is deprecated since version 2.7 and will be removed in 3.0; configure "liip_imagine.twig.mode" to "lazy" instead.
{
    "exception": {}
}
INFO 14:00:13 request Matched route "_profiler".
{
    "route": "_profiler",
    "route_parameters": {
        "_route": "_profiler",
        "_controller": "web_profiler.controller.profiler::panelAction",
        "token": "689a25"
    },
    "request_uri": "https://afyaone.beasoft.tech/_profiler/689a25",
    "method": "GET"
}
INFO 14:00:13 deprecation User Deprecated: Support for MySQL < 8 is deprecated and will be removed in DBAL 5 (AbstractMySQLDriver.php:75 called by AbstractDriverMiddleware.php:32, https://github.com/doctrine/dbal/pull/6343, package doctrine/dbal)
{
    "exception": {}
}

Stack Trace

RuntimeException
RuntimeException:
Access to property 'consultationType' is not allowed.

  at src/Model/Entity/AbstractEntity.php:203
  at App\Model\Entity\AbstractEntity->__get()
     (vendor/symfony/property-access/PropertyAccessor.php:431)
  at Symfony\Component\PropertyAccess\PropertyAccessor->readProperty()
     (vendor/symfony/property-access/PropertyAccessor.php:102)
  at Symfony\Component\PropertyAccess\PropertyAccessor->getValue()
     (vendor/symfony/form/Extension/Core/DataAccessor/PropertyPathAccessor.php:97)
  at Symfony\Component\Form\Extension\Core\DataAccessor\PropertyPathAccessor->getPropertyValue()
     (vendor/symfony/form/Extension/Core/DataAccessor/PropertyPathAccessor.php:48)
  at Symfony\Component\Form\Extension\Core\DataAccessor\PropertyPathAccessor->getValue()
     (vendor/symfony/form/Extension/Core/DataAccessor/ChainAccessor.php:35)
  at Symfony\Component\Form\Extension\Core\DataAccessor\ChainAccessor->getValue()
     (vendor/symfony/form/Extension/Core/DataMapper/DataMapper.php:50)
  at Symfony\Component\Form\Extension\Core\DataMapper\DataMapper->mapDataToForms()
     (vendor/symfony/form/Form.php:321)
  at Symfony\Component\Form\Form->setData()
     (vendor/symfony/form/Form.php:410)
  at Symfony\Component\Form\Form->initialize()
     (vendor/symfony/form/FormBuilder.php:171)
  at Symfony\Component\Form\FormBuilder->getForm()
     (vendor/symfony/form/FormFactory.php:32)
  at Symfony\Component\Form\FormFactory->create()
     (vendor/craue/formflow-bundle/Form/FormFlow.php:970)
  at Craue\FormFlowBundle\Form\FormFlow->createFormForStep()
     (vendor/craue/formflow-bundle/Form/FormFlow.php:773)
  at Craue\FormFlowBundle\Form\FormFlow->createForm()
     (src/Controller/Frontend/Patient/MainController.php:63)
  at App\Controller\Frontend\Patient\MainController->appointmentBooking()
     (vendor/symfony/http-kernel/HttpKernel.php:183)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:193)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/home/u879680891/domains/beasoft.tech/public_html/afyaone/vendor/autoload_runtime.php')
     (public/index.php:5)