backdrop-contrib / biblio

Manage and display lists of scholarly publications. Import from Zotero.
GNU General Public License v2.0
0 stars 5 forks source link

Enabling the biblio module makes all pages in my system yield an error #22

Open gwolf opened 4 months ago

gwolf commented 4 months ago

Hello, I am in the process of converting a Drupal7 site to Backdrop. I did most of the heavy-lifting using the D2B migrate module. Only after doing so, I learnt the Biblio module was available for Backdrop as well, and installed it. However, after enabling the module, all web pages yielded an erorr: array_diff_key(): Argument #1 ($array) must be of type array, null given» I don't see any errors or messages logged to the nginx log. The system log report reports:

TypeError: array_diff_key(): Argument #1 ($array) must be of type array, null given en array_diff_key() (línea 12 de /var/www/backdrop_backdrop.gwolf.org/modules/biblio/biblio.tokens.inc).

Please suggests how should I proceed!

gwolf commented 4 months ago

Just noted that, prior to the request that caused the error message to the system log I quoted, I also got a PHP warning:

Warning: Trying to access array offset on value of type bool en biblio_token_info() (línea 12 de /var/www/backdrop_backdrop.gwolf.org/modules/biblio/biblio.tokens.inc).

Same line of the other message.

klonos commented 3 months ago

Hey @gwolf 👋🏼 ...as per the comments from others in the Zulip thread you started, this problem should be fixed in the dev version. Please try the dev version of the module, by downloading it from https://github.com/backdrop-contrib/biblio/archive/refs/heads/1.x-2.x.zip, and remember to report back if that fixes it for you.