Upgrade to 10.7 uploading

33 views
Skip to first unread message

Philip Panelli

unread,
Feb 10, 2026, 5:00:59 PMFeb 10
to ResourceSpace
Hi , 

I was wondering if anyone had any suggestions.  I had an installation running Resource Space 10.4 on Rocky linux 8.10 ,  PHP 8.2  was working fine.  Upgraded to 10.7 there was an error in the code pulled down from svn. I corrected it I'll post the line number content as a follow up. I'm unable to upload files.  No previews are being made.  Based on the debug the file is being uploaded and being found.  Can anyone point me in the direction of where the code branches to do the encode for the filestore and where the preview images get made. Existing data seems to be ok , new data says offline so I don't think the copy operation is working.  


Thank you for any hints. 


Phil

Philip Panelli

unread,
Feb 18, 2026, 2:43:23 PMFeb 18
to ResourceSpace
Hi Everyone, 

On my configuration (Rocky Linux 8.10, PHP version 8.2.30) immediately after following the upgrade instructions I receive the below message.  The revision from svn update is : 28273

PHP Fatal error:  Uncaught Error: Undefined constant "PASSWORD_ARGON2ID" in /var/www/html/include/config.default.php:1166
Stack trace:
#0 /include/boot.php(61): include()
#1 /html/index.php(3): include('...')
#2 {main} thrown in /include/config.default.php on line 1166

Placing single quotes around  the 'PASSWORD_ARGON2ID'  brings the system back online. Existing system resources are unaffected and everything seems to function normally until attempting to add new resources.  The upload looks like it completes however no preview images are produced and the system rolls over to entering meta-data. Once the meta-data is entered the resource appears offline. 


The installation check comes back normal for my installation.  I have disabled php-apcu and experienced no discernable performance impact.  After turning on the debugging : 

2026-02-18 19:38:22 [ps_query] returning cached data (source: /var/www/html/filestore/tmp/querycache/schema_c4851c8b65ed9f888128114bf870ffd7_d883a791cf138cf00ada8419c301fb6d.json)
2026-02-18 19:38:22 upload_batch - received file from user 'admin',  filename: 'Quote No. 10526-B.pdf'
2026-02-18 19:38:22 upload_batch - processing. Looking for file at /var/www/html/filestore/tmp/tus/upload_86d1b3f6cec85e9ca0247967ad61f47cd5f4051ae5004920f5ed0a58dd3a96b6/UXVvdGUgTm8uIDEwNTI2LUI=.pdf
2026-02-18 19:38:22 SQL: SELECT ref AS value FROM resource_type  Parameters: []
2026-02-18 19:38:22 [ps_query] returning cached data (source: /var/www/html/filestore/tmp/querycache/schema_a3ff2081f15a9af37f0257ff0dea0886_2ceef5067453c4c05715ff4d04441314.json)

The file appears to make it into the tmp folder. 

I'm switching to Xdebug to step through the code. 


Thanks everyone !

Dan Huby

unread,
Feb 19, 2026, 7:13:33 AM (14 days ago) Feb 19
to ResourceSpace
Hi Phillip,

Putting quotes around the missing constant is not a correct fix - that will probably have broken your password hashing (it is possibly falling back to something weaker).

If that constant isn't defined then PHP is missing Argon 2 support. You may be running PHP <8.0 or it is missing the module. Try:
sudo apt install libargon2-1
sudo apt install php8.2-common

Is everything OK on your Installation Check page?

Dan



Philip Panelli

unread,
Feb 19, 2026, 9:46:11 AM (14 days ago) Feb 19
to ResourceSpace
HI Dan, 

Thanks for responding.  I did the above to be able to run the installation check otherwise it's and immediate failure and no response.  Once quoted the system runs and the prior data is visible.  Php version is 8.2.30.  I don't see an argon specific test.  I think I can change the environment to remi packages to get argon.  I'll reset the php package management and give it another go . 

Thank you , 

Phil

Philip Panelli

unread,
Feb 19, 2026, 11:16:14 AM (13 days ago) Feb 19
to ResourceSpace
Hi Dan, 

So a subsequent set of tests did not change the behavior with the uploads not producing  thumbnails or actually coping the file into the filestore.  I pushed everything to php 8.4.18. The argon 2 library is installed.   php -r "echo PASSWORD_ARGON2ID;"  from the command line yields : argon2id as a response .  It appears the hashing support is present.  Uploads still don't work.  

Die Library

ResourceSpace version

SVN /releases/10.7 10.7 r28273

Filestore

Write access to /var/www/html/filestore

OK

Slideshow

Write access to filestore/system/slideshow_8eaa95c5ff69b4d

OK

Inline code signing


OK

Blocked browsing of 'filestore' directory (http://xxx.xxx.com/filestore)

OK

Last scheduled task execution (days)

Never

WARNING

Relevance matching will not be effective and periodic e-mail reports will not be sent. Ensure is executed at least once daily via a cron job or similar.


Web Server

Server platform

Apache/2.4.37 (Rocky Linux)

MySQL server

MySQL version

10.3.39-MariaDB  (client-encoding: latin1) (database-encoding: latin1)

OK

PHP

PHP version

8.4.18  (config: /etc/php.ini)

OK

Large file support (64 bit platform)

OK

PHP.INI value for 'memory_limit'

200M

OK

PHP.INI value for 'post_max_size'

100M

OK

PHP.INI value for 'upload_max_filesize'

100M

OK

PHP timezone is the same as the one MySQL uses

WARNING: PHP timezone is "UTC" and MySQL timezone is "EST"

php-apcu

5.1.28

OK

php-curl

8.4.18

OK

php-dom

20031129

OK

php-gd

8.4.18

OK

php-intl

8.4.18

OK

php-json

8.4.18

OK

php-mbstring

8.4.18

OK

php-mysqli

8.4.18

OK

php-xml

8.4.18

OK

php-zip

1.22.7

OK

PHP extensions

Core PDO Phar Reflection SPL SimpleXML Zend OPcache apcu bz2 calendar cgi-fcgi ctype curl date dom exif fileinfo filter ftp gd gettext hash iconv imap intl json ldap libxml mbstring mysql mysqli mysqlnd openssl pcre pdo_mysql pdo_sqlite random session sockets sodium sqlite3 standard tokenizer xml xmlreader xmlwriter xsl zip zlib


ResourceSpace External Dependencies

ImageMagick

Version: ImageMagick 6.9.13-25 Q16 x86_64 18639 https://legacy.imagemagick.org

OK

Ghostscript

GPL Ghostscript 9.27 (2019-04-04)

OK

FFmpeg

Not installed

ExifTool

FAIL:
'/exiftool' not found


pdftotext

pdftotext version 20.11.0

OK

php-ldap

OK


I see from your above comment's you used apt for the package manager so debian based.  What is you development reference platform and version please? 

I'll try to migrate this installation to that platform and have another go. 

Thank you , 

Phil

Dan Huby

unread,
Feb 20, 2026, 3:40:25 AM (13 days ago) Feb 20
to resour...@googlegroups.com

You should check your Apache error log for clues.

--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.com
---
You received this message because you are subscribed to a topic in the Google Groups "ResourceSpace" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/resourcespace/9fW6b2AXxSE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to resourcespac...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/resourcespace/c9f6c92c-cb1a-45c9-9fb9-582a8205c245n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages