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

Collective Access 2.0.3: Image upload not working #1685

Open
rvgulik66 opened this issue Jan 13, 2025 · 2 comments
Open

Collective Access 2.0.3: Image upload not working #1685

rvgulik66 opened this issue Jan 13, 2025 · 2 comments

Comments

@rvgulik66
Copy link

Configuration:
System: Windows 11 Wamp Server 3.3.7 PHP 8.2.26 Collective access 2.0.3
I am testing 2.0.3 on my local system.
The first thing I noticed is that image upload (media representations --> add representation) does not seem to work.
I can use either of the two available methods (First upload the media to the import directory or select files from a folder) and select an image.
After saving ther is no new image added.
I have checked the table ca_object_representations.
There is no new record for the selected image.

The error log says:
2025-01-13 15:44:13 - WARN --> Undefined variable $xrow_id [F:\wamp64\www\CA20rc1a\app\lib\BaseModel.php:6698]
2025-01-13 15:44:13 - WARN --> preg_match(): Compilation failed: PCRE2 does not support \F, \L, \l, \N{name}, \U, or \u at offset 25 [F:\wamp64\www\CA20rc1a\app\helpers\utilityHelpers.php:5031]
2025-01-13 15:44:13 - WARN --> preg_match(): Compilation failed: unrecognized character follows \ at offset 24 [F:\wamp64\www\CA20rc1a\app\helpers\utilityHelpers.php:5031]

Could it be related to a windows/WAMP setup?

collectiveaccess added a commit that referenced this issue Jan 14, 2025
@collectiveaccess
Copy link
Owner

There's a possible fix for this in the dev/php8 branch. The change is here: 1148ac9

Can you test?

@rvgulik66
Copy link
Author

I have added the two lines to utilityHelpers.php, crleared the cache and tried.
The error codes look the same (the line numbers changed in utilityHelpsers.php):
2025-01-14 11:55:10 - WARN --> Undefined variable $xrow_id [F:\wamp64\www\CA20rc1a\app\lib\BaseModel.php:6698]
2025-01-14 11:55:10 - WARN --> preg_match(): Compilation failed: PCRE2 does not support \F, \L, \l, \N{name}, \U, or \u at offset 25 [F:\wamp64\www\CA20rc1a\app\helpers\utilityHelpers.php:5033]
2025-01-14 11:55:10 - WARN --> preg_match(): Compilation failed: unrecognized character follows \ at offset 24 [F:\wamp64\www\CA20rc1a\app\helpers\utilityHelpers.php:5033]

Stil no new image loaded.

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

No branches or pull requests

2 participants