Closed (fixed)
Project:
Views XML Backend
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2021 at 14:52 UTC
Updated:
24 Mar 2023 at 21:09 UTC
Jump to comment: Most recent
Comments
Comment #3
fredonia_webteam commentedI am testing this patch in Drupal 9.2.7. Receiving a few errors.
Error: Call to undefined function file_scan_directory() in views_xml_backend_cron() (line 25 of /code/web/modules/views_xml_backend/views_xml_backend.module)
#0 [internal function]: views_xml_backend_cron()
#1 /code/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(392): call_user_func_array('views_xml_backe...', Array)
#2 /code/web/core/lib/Drupal/Core/Cron.php(250): Drupal\Core\Extension\ModuleHandler->invoke('views_xml_backe...', 'cron')
#3 /code/web/core/lib/Drupal/Core/Cron.php(136): Drupal\Core\Cron->invokeCronHandlers()
#4 /code/web/core/lib/Drupal/Core/ProxyClass/Cron.php(75): Drupal\Core\Cron->run()
#5 /code/web/core/modules/automated_cron/src/EventSubscriber/AutomatedCron.php(65): Drupal\Core\ProxyClass\Cron->run()
#6 [internal function]: Drupal\automated_cron\EventSubscriber\AutomatedCron->onTerminate(Object(Symfony\Component\HttpKernel\Event\TerminateEvent), 'kernel.terminat...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#7 /code/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(142): call_user_func(Array, Object(Symfony\Component\HttpKernel\Event\TerminateEvent), 'kernel.terminat...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#8 /code/vendor/symfony/http-kernel/HttpKernel.php(100): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object(Symfony\Component\HttpKernel\Event\TerminateEvent), 'kernel.terminat...')
#9 /code/vendor/stack/builder/src/Stack/StackedHttpKernel.php(32): Symfony\Component\HttpKernel\HttpKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\LocalRedirectResponse))
#10 /code/web/core/lib/Drupal/Core/DrupalKernel.php(687): Stack\StackedHttpKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\LocalRedirectResponse))
#11 /code/web/index.php(22): Drupal\Core\DrupalKernel->terminate(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\LocalRedirectResponse))
#12 {main}
Comment #4
fredonia_webteam commentedUpdate on above error – Error on cron run prevents cron from completing.
If you need any further testing, I'd be glad to try an updated patch!
Comment #5
ironsizide commentedThe "File cache directory either cannot be created or is not writable." was the result of me not using the correct variable name when updating that part of the code. Fixing this revealed another deprecated function in need of replacement, which is now replaced.
Cron will now run - missed a deprecated function replacement there, and that's been replaced.
Comment #6
fredonia_webteam commentedThe update in #4 is working without any errors.
PHP 7.4 & MariaDB 10.4, D9.2
Comment #7
gonzalo2683 commentedHello, the possibility of being the maintainer of the module is open, if any of you feel capable, it would be good to become so, because I have seen the MR for 3 months and there is no one to take charge.
The url:
https://www.drupal.org/project/views_xml_backend/issues/3237208
Comment #10
rjjakes commentedMerged into 8.x-1.x