Andrew Fletcher published: 3 August 2022 1 minute read
Replicate
Replicate the bug in your local environment.
Check
Check - do you have the latest version of the contrib module? In case the issue has already been identified and resolved.
A quick check of the issue list for the contrib module.
Nothing.
Document notes
Read through the log files to understand where the bug is located. Devel module is a must for a backend dev to help resolve issues like this one. Ensure Symfony var-dumper or Kint is running. Data is gold here and a time saver.
Armed with data, you will have a great idea of what has gone wrong - so time to fix the bug.
Test. Test. Test.
All working... Create a patch so any future updates don't have the same issue. Also, let the contrib module authors know about the issue via normal git processes.
Related articles
Andrew Fletcher
•
18 Mar 2024
Notice: Only variables should be passed by reference in load_view_block_content()
Working through the following errorNotice: Only variables should be passed by reference in load_view_block_content() (line 391 of /var/www/vhosts/{domain}/httpdocs/themes/custom/{theme}/{theme}.theme.theme)If you want to read the full error, scroll to the bottom in Appendix. The related...
Andrew Fletcher
•
15 Mar 2024
Symfony\Component\HttpKernel\Exception\BadRequestHttpException: Input value "f" contains a non-scalar value
Using Drupal 10, VIews, Solr and Facets has post upgrade to version 10, created the following issueSymfony\Component\HttpKernel\Exception\BadRequestHttpException: Input value "f" contains a non-scalar value. in Symfony\Component\HttpKernel\HttpKernel->handle() (line 83 of...
Andrew Fletcher
•
15 Mar 2024
Could not apply patch! Skipping
Attempting to apply a patch in Drupal 10.2.4 that had been working until this version. Now I'm seeing the following errorCould not apply patch! Skipping. The error was: The process "patch '-p1' --no-backup-if-mismatch -d '/Users/andrewfletcher/Sites/codebales/modules/contrib/facets' <...