View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
5721 | Composr alpha bug reports | downloads | public | 2024-04-24 04:10 | 2024-05-01 00:52 |
Reporter | Adam Edington | Assigned To | PDStig | ||
Priority | normal | Severity | minor | ||
Status | resolved | Resolution | fixed | ||
Summary | 5721: Error changing title of Download page due to no image being uploaded or provided by default | ||||
Description | PHP 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 | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Attached Files | |||||
Sponsorship open | |||||
|
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. |
|
Fixed in Git commit 2d2966dae8 (https://gitlab.com/composr-foundation/composr/commit/2d2966dae8 - link will become active once code pushed to GitLab) |
|
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/). |
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 |