Hello everybody.
After upgrade to 7.13.1 when I save the Product, I get white screen and error message:
[SECURITY] Invalid ext AOS_Products Uploaded image file: : ‘’.
[FATAL] AOS_Products save - Invalid image file ext : ‘’.
[FATAL] Exception handling in /opt/lampp/htdocs/sugarcrm/include/MVC/Controller/SugarController.php:397
[FATAL] Exception in Controller: Invalid request
But the Product doesn’t have any picture When I try to add one, I get an error too.
Any idea?
My configuration: Apache/2.4.54 (Ubuntu), PHP/7.4.33, MariaDB/10.4.27
1 Like
inlog
2 February 2023 10:17
#2
Hello
Same error on 8.2.3
Did you find a solution?
I don’t use pictures. Therefore, until I find a solution, I disabled the lines:
if (!has_valid_image_extension('AOS_Products Uploaded image file: ’ . $imageFileName , $imageFileName)) {
LoggerManager::getLogger()->fatal(“AOS_Products save - Invalid image file ext : ‘$imageFileName’.”);
throw new RuntimeException(‘Invalid request’);
}
in file sugarcrm/modules/AOS_Products/AOS_Products.php. For me it works…
4 Likes
Hello, I´ve got the same error on my Version 7.13.1
Sugar Version 6.5.25 (Build 344)
Dear krzaychoos, can you please let me know how to “disable” that lines?
I tried commenting with “//” but with no luck.
Thanks!
1 Like
krzaychoos:
*/
Worked like a charm, thanks a lot!
/*
if (!has_valid_image_extension('AOS_Products Uploaded image file: ’ . $imageFileName , $imageFileName)) {
LoggerManager::getLogger()->fatal(“AOS_Products save - Invalid image file ext : ‘$imageFileName’.”);
throw new RuntimeException(‘Invalid request’);
}
*/
3 Likes
same error here 7.13.1. Does anyone know if a fix is planned for the next release and if the bug is known during development? I only see workarounds here at the moment.
I see that bug is known. Look here:
opened 04:28PM - 01 Feb 23 UTC
Type:Bug
Priority:Important
Area: Module
<!--- Please be aware that as of the 31st January 2022 we no longer support 7.10… .x.
New issues referring to 7.10.x will only be valid if applicable to 7.12.x and above.
If your issue is still applicable in 7.12.x, please create the issue following the template below -->
#### Issue
When trying to create a new product, putting in only the required data causes the CRM to go to a white screen. The only way to prevent this from happening is to add an image to the product
#### Expected Behavior
The CRM should not white screen and should continue with the creation of a product
#### Actual Behavior
The CRM White screens and the product is not created
#### Possible Fix
#### Steps to Reproduce
1. Go to Products
2. Create a new product, only filling in the required fields
3. Attempt to Save
#### Context
#### Your Environment
* SuiteCRM Version used: 7.13.1
* Browser name and version: Version 109.0.5414.119 (Official Build) (64-bit)
* Environment name and version MySQL, PHP 7.4
* Operating System and version: Ubuntu 22.04.1 LTS
1 Like
BUG: Products module functionality · Issue #9926 · salesagility/SuiteCRM · GitHub
There is work around.
If you select image save will work. Image is not required but at this moment if you don’t select image you get blank page on save.
Hi @kraychoos
with my case. must disable more than, included :: $imageFileName = $_FILES[‘uploadimage’][‘name’] ?? ‘’;
/***
$imageFileName = $_FILES['uploadimage']['name'] ?? '';
if (!has_valid_image_extension('AOS_Products Uploaded image file: ' . $imageFileName , $imageFileName)) {
LoggerManager::getLogger()->fatal("AOS_Products save - Invalid image file ext : '$imageFileName'.");
throw new RuntimeException('Invalid request');
}
***/
This image issue saving 's solved! (7.12.9 and 7.13.1)
Thank you !
pgr
27 February 2023 11:44
#11
This is the solution (not just a workaround, but a fix):
committed 03:21PM - 21 Feb 23 UTC
1 Like