Skip to content
New issue

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

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

Already on GitHub? # to your account

PHP error after AvantSearch 4.0 install #8

Open
jefke-glider opened this issue Oct 1, 2024 · 0 comments
Open

PHP error after AvantSearch 4.0 install #8

jefke-glider opened this issue Oct 1, 2024 · 0 comments

Comments

@jefke-glider
Copy link

I installed the AvantSearch module from github, the latest edition (4.0). My Omeka Classic is 3.1.1 (I know, this needs an update)and my PHP is version 7.4.3. When I edit an item, I get this error :

PHP Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /var/www/omeka-3.1.1/plugins/AvantSearch/models/SearchPdf.php on line 168,...
I checked the code, and there is a union operator, which requires PHP 8. I patched it locally, ( removed the |string part), but mayb there is a better way to make it php 7 compatible again.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant