Error: Call to undefined function "file save data"

Created on 1 August 2024, 6 months ago

Problem/Motivation

I tested it. Tested with Olivero, Bootstrap 5, Barrio themes and drupal 10.3.1.
Here are the logs.

Warning encountered during installation:
It does not give a warning during manual installation, but the error encountered when installing with drush is as follows.

Error encountered during testing:

Error: Call to undefined function file_save_data() in Drupal\radar\Form\RadarModalForm->ajaxSubmitForm() (line 264 of /var/www/html/test/web/modules/contrib/radar/src/Form/RadarModalForm.php)
#0 [internal function]: Drupal\radar\Form\RadarModalForm->ajaxSubmitForm()
#1 /var/www/html/test/web/core/lib/Drupal/Core/Form/FormAjaxResponseBuilder.php(69): call_user_func_array()
#2 /var/www/html/test/web/core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php(112): Drupal\Core\Form\FormAjaxResponseBuilder->buildResponse()
#3 [internal function]: Drupal\Core\Form\EventSubscriber\FormAjaxSubscriber->onException()
#4 /var/www/html/test/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#5 /var/www/html/test/vendor/symfony/http-kernel/HttpKernel.php(239): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#6 /var/www/html/test/vendor/symfony/http-kernel/HttpKernel.php(91): Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
#7 /var/www/html/test/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle()
#8 /var/www/html/test/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
#9 /var/www/html/test/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#10 /var/www/html/test/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
#11 /var/www/html/test/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
#12 /var/www/html/test/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#13 /var/www/html/test/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\page_cache\StackMiddleware\PageCache->handle()
#14 /var/www/html/test/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#15 /var/www/html/test/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#16 /var/www/html/test/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
#17 /var/www/html/test/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
#18 /var/www/html/test/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#19 {main}
🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @pearls
  • First commit to issue fork.
  • Merge request !1Fixed undefined function → (Merged) created by Unnamed author
  • Status changed to Needs review 6 months ago
  • 🇮🇳India sarwan_verma

    Hi,
    I have resolved the 'undefined function' issue and created MR! 1.
    Kindly review and verify.
    Thanks.

  • Status changed to RTBC 6 months ago
  • Patch is OK. It worked.
    +1 RTBC for patch.

    By the way,
    The block configuration warning is still there during installation.
    It would be better to have a report system and a read.me file.
    Currently, image (File System) and message (watchdog log) are in separate places.Maybe view integration or radar entity structure would work for a better report system.
    Thanks for effort and support.Good luck

Production build 0.71.5 2024