mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Excel and Word (.xlsx and .docx) document upload not working #5301
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#5301
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shubham-pawar on GitHub (Jan 31, 2025).
Issue
I had the same problem with SuiteCRM 7.14.1
Using php 7.4: no problem, the upload is OK
Using php 8.2: upload not working. PHP error:
PHP Fatal error: Uncaught ValueError: version_compare(): Argument #3 ($operator) must be a valid comparison operator in /home/…/…/…/vendor/zf1/zend-xml/library/Zend/Xml/Security.php:172
Possible Fix
Line 172 is: version_compare(PHP_VERSION, ‘5.6’, ‘gte’)
In fact, ‘gte’ is not correct.
In php 8.2, the only correct parameters are: < , lt , <= , le , > , gt , >= , ge , == , = , eq , != , <>,‘ne’
(See PHP: version_compare - Manual)
So I replaced line 172 by: version_compare(PHP_VERSION, ‘5.6’, ‘>=’)
and upload was OK
Steps to Reproduce the Issue
Context
No response
Version
7.14
What browser are you currently using?
Chrome
Browser Version
130.0
Environment Information
PHP 8.2
Operating System and Version
Ubuntu 22.04
@SuiteBot commented on GitHub (Jan 31, 2025):
This issue has been mentioned on SuiteCRM. There might be relevant details there:
https://community.suitecrm.com/t/excel-and-word-xlsx-and-docx-document-upload-not-working/85231/18
@pgorod commented on GitHub (Jan 31, 2025):
That's in 3rd party code...
https://github.com/zf1/zend-xml/issues/2
... which looks very unmaintained 😓