Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

single datafieldset in config file gives "Not an ARRAY reference" error #464

Closed
u-fischer opened this issue Dec 7, 2023 · 3 comments
Closed
Labels
Bug fixedindev userfeedback Waiting for user feedback
Milestone

Comments

@u-fischer
Copy link

I was trying to change some bib fields with biber's tool mode using a datafieldset and got the error Not an ARRAY reference.

As an example. With this config file

<?xml version="1.0" encoding="UTF-8"?>
<config>
<output_fieldcase>title</output_fieldcase>
<datafieldset name="field">
    <member fieldtype="field"/>
</datafieldset>
  <sourcemap>
    <maps datatype="bibtex" level="user">
      <map map_overwrite="1" map_foreach="field">
        <map_step map_field_set="$MAPLOOP" map_null="1"/>
      </map>
    </maps>    
</sourcemap>
</config>

running biber --tool --configfile biber-test.conf test.bib outputs

Not an ARRAY reference at C:\Users\NILILA~1\AppData\Local\Temp\par-4e696c696c616e6432303230\cache-96d297aa7563e182b1dd640f406e913a11204801\inc\lib/Biber/Config.pm line 405.

Everything works fine if I add a second arbitrary datafieldset:

<?xml version="1.0" encoding="UTF-8"?>
<config>
<output_fieldcase>title</output_fieldcase>
<datafieldset name="blub">
</datafieldset>
<datafieldset name="field">
    <member fieldtype="field"/>
</datafieldset>
  <sourcemap>
    <maps datatype="bibtex" level="user">
      <map map_overwrite="1" map_foreach="field">
        <map_step map_field_set="$MAPLOOP" map_null="1"/>
      </map>
    </maps>    
</sourcemap>
</config>
@plk
Copy link
Owner

plk commented Dec 8, 2023

I think I know what this is - will fix shortly.

plk added a commit that referenced this issue Dec 8, 2023
@plk
Copy link
Owner

plk commented Dec 8, 2023

Should be fixed in DEV and updated DEV binaries on SF.

@plk plk added Bug userfeedback Waiting for user feedback fixedindev labels Dec 9, 2023
@plk plk added this to the 2.20 milestone Dec 9, 2023
@plk
Copy link
Owner

plk commented Apr 18, 2024

2.20 is now released

@plk plk closed this as completed Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug fixedindev userfeedback Waiting for user feedback
Projects
None yet
Development

No branches or pull requests

2 participants