View Issue Details

IDProjectCategoryView StatusLast Update
5721Composr alpha bug reportsdownloadspublic2024-05-01 00:52
ReporterAdam Edington Assigned ToPDStig  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Summary5721: Error changing title of Download page due to no image being uploaded or provided by default
DescriptionPHP ERROR [1] Uncaught TypeError: edit_download_category(): Argument 6 ($rep_image) must be of type string, null given, called in cms/pages/modules/cms_downloads.php on line 1118 and defined in sources/downloads2.php:382 Stack trace: #0 cms/pages/modules/cms_downloads.php(1118): edit_download_category(1, 'Downloads', 1, '', '!--:)abcUNLIKEL...', NULL, '', '', 1713930420) #1 sources/crud_module.php(1732): Module_cms_downloads_cat->edit_actualisation('1') 2 sources/crud_module.php(508): Standard_crud_module->__edit() 3 sources/zones.php(785): Standard_crud_module->run() 4 sources/site.php(1486): load_module_page('cms/pages/modul...', 'cms_downloads') 5 sources/site.php(1101): request_page('cms_downloads', true, 'cms', NULL, false, true) 6 cms/index.php(59): do_site() 7 {main} thrown in sources/downloads2.php on line 382
TagsNo tags attached.
Attach Tags
Attached Files
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

admin

2024-05-01 00:52

administrator   ~8724

Automated response: Editing a download category results in error if not changing rep image

When editing a download category, if the rep image is not being changed, an error is thrown. This was because edit_download_category was expecting a string for $rep_image when it should have also allowed null for do not change.

admin

2024-05-01 00:52

administrator   ~8725

Fixed in Git commit 2d2966dae8 (https://gitlab.com/composr-foundation/composr/commit/2d2966dae8 - link will become active once code pushed to GitLab)

admin

2024-05-01 00:52

administrator   ~8726

A hotfix (a TAR of files to upload) has been uploaded to this issue. These files are made to the latest intra-version state (i.e. may roll in earlier fixes too if made to the same files) - so only upload files newer than what you have already. If there are files in a hot-fix that you don't have then they probably relate to addons that you don't have installed and should be skipped. Always take backups of files you are replacing or keep a copy of the manual installer for your version, and only apply fixes you need. These hotfixes are not necessarily reliable or well supported. Not sure how to extract TAR files to your Windows computer? Try 7-zip (http://www.7-zip.org/).

Issue History

Date Modified Username Field Change
2024-04-24 04:10 Adam Edington New Issue
2024-04-24 04:12 Adam Edington Summary Error changing title of Download page => Error changing title of Download page due to no image being uploaded or provided by default