Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.


If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping


Answers may be delayed for posts that do not include sufficient information.

Problem with UTF-8 metadata.....and php 7.3?

After upgrading to php 7.3 I've been slogging through getting things running again (running git/develop) (Most of the problems I've run into are with continue; changing into: continue 2; in switches)

After many many many many hours (for some reason I get an error 500 with no error log entry...sometimes...othertimes it worked. Not easy to trace this through) I have found that images with utf-8 metadata explode and crash preg_match("!^\X+$!", $vm_v) in function caSanitizeArray() in /app/helper/utilityHelpers.php ~ line 2183.

My "fix" is to add right before:
// if UTF-8 we must convert it....otherwire preg_match() explodes!
if (preg_match("//u", $string)) { $vm_v=mb_convert_encoding($vm_v,"ASCII");}

This seems like a hack.

Any ideas?
Thanks

Comments

  • typo: that should be if (preg_match("//u", $vm_v)) { $vm_v=mb_convert_encoding($vm_v,"ASCII");}

Sign In or Register to comment.