View Issue Details

IDProjectCategoryView StatusLast Update
0005721Composr alpha bug reports[Composr] downloadspublic2024-05-01 00:52
ReporterAdam EdingtonAssigned ToPatrick Schmalstig 
SeverityMinor-bug 
Status resolvedResolutionfixed 
Summary0005721: 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 0000006 ($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') 0000002 sources/crud_module.php(508): Standard_crud_module->__edit() 0000003 sources/zones.php(785): Standard_crud_module->run() 0000004 sources/site.php(1486): load_module_page('cms/pages/modul...', 'cms_downloads') 0000005 sources/site.php(1101): request_page('cms_downloads', true, 'cms', NULL, false, true) 0000006 cms/index.php(59): do_site() 0000007 {main} thrown in sources/downloads2.php on line 382
TagsNo tags attached.
Sponsorship open

Activities

admin

2024-05-01 00:52

administrator   ~0008724

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   ~0008725

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

hotfix-5721, 2024-05-01 12am.tar (65,024 bytes)

admin

2024-05-01 00:52

administrator   ~0008726

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