Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jetpack CRM Contact page: Importing .csv contact file failed but with different error messages depending on the server environment #39559

Open
franzaurus opened this issue Sep 27, 2024 · 1 comment
Labels
[Platform] Simple [Plugin] CRM Issues about the Jetpack CRM plugin [Pri] High [Status] Priority Review Triggered The guild in charge of triage has been notified of this issue in Slack Triaged [Type] Bug When a feature is broken and / or not performing as intended

Comments

@franzaurus
Copy link

Impacted plugin

CRM

Quick summary

Importing contact from a .csv file failed, but with different error messages. The error happened in a local and a live/Instawp hosting environment suggesting a relation to the server environment. These are tested against two .csv files downloaded from the Jetpack kb sample file, and a file exported from the manually added contacts. Testing with a series of older Jetpack CRM files results in the same error messages. This affected Jetpack CRM 6.4.4 – 6.4.1

Steps to reproduce

Download sample file

  1. Get the .csv file from the Jetpack CRM kb site: https://kb.jetpackcrm.com/knowledge-base/what-should-my-csv-be-formatted-like/] Jetpack CRM_ Example CSV Import File - Contacts.csv

  2. From the contacts drop-down menu on the Contact page select Import

  3. Choose and upload the selected .csv file

  4. Notice the error message

OR

  1. Manually add contacts on the Contacs page
  2. From the contacts drop-down menu on the page select Export
  3. Without deselecting any fields, click Export
  4. Import the resulting .csv file to another Jetpack CRM installation
    exported-Contacts-27-09-2024_4-32-am.csv
  5. Notice the error message

A clear and concise description of what you expected to happen.

Both .csv files are valid and correctly formatted, especially the exported version because it was generated from the Jetpack CRM contacts page. It should have passed the step:1 Upload. Or it generated a bogus file.

What actually happened

The error messages
error-upload-cvs-on-localwp

From the Local wp environment: “There was an error processing your CSV file. Please try again.”

error-upload-cvs-on-hosting

From the Instawp envinment: “Your file is not a correctly-formatted CSV file. Please check your file format. If you continue to have issues please contact support.”

Impact

One

Available workarounds?

No and the platform is unusable

If the above answer is "Yes...", outline the workaround.

No response

Platform (Simple and/or Atomic)

Simple, Self-hosted

Logs or notes

Environment
Local wp
WP 6.6.2
Jetpack CRM 6.4.4 and backwards 6.4.3 – 6.4.1
Classic theme Twenty Twenty
No other plugins installed

Hosting (InstaWP)
WP 6.6.2
Jetpack CRM 6.4.4 and backwards 6.4.3 – 6.4.1
Block theme Twenty Twenty-Four
No other plugins installed

@franzaurus franzaurus added [Type] Bug When a feature is broken and / or not performing as intended Needs triage Ticket needs to be triaged labels Sep 27, 2024
@github-actions github-actions bot added [Plugin] CRM Issues about the Jetpack CRM plugin [Status] Priority Review Triggered The guild in charge of triage has been notified of this issue in Slack [Platform] Simple [Pri] High labels Sep 27, 2024
@Robertght
Copy link

📌 REPRODUCTION RESULTS

  • Tested on local using Studio – Replicated but with different message.
  • Tested on Atomic – Could Not Replicate
  • Replicable outside of Dotcom – Yes

📌 FINDINGS/SCREENSHOTS/VIDEO
Using Studio this is the error:

Fatal error: Uncaught TypeError: feof(): Argument #1 ($stream) must be of type resource, bool given in /var/www/html/wp-content/plugins/zero-bs-crm/includes/ZeroBSCRM.CSVImporter.php:255 Stack trace: #0 /var/www/html/wp-content/plugins/zero-bs-crm/includes/ZeroBSCRM.CSVImporter.php(255): feof(false) #1 /var/www/html/wp-content/plugins/zero-bs-crm/includes/ZeroBSCRM.CSVImporter.php(314): jpcrm_csvimporter_lite_preflight_checks(1) #2 /var/www/html/wp-content/plugins/zero-bs-crm/includes/ZeroBSCRM.CSVImporter.php(133): zeroBSCRM_CSVImporterLitehtml_app() #3 /var/www/html/wp-includes/class-wp-hook.php(324): zeroBSCRM_CSVImporterLitepages_app('') #4 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array) #5 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /var/www/html/wp-admin/admin.php(259): do_action('admin_page_zero...') #7 {main} thrown in /var/www/html/wp-content/plugins/zero-bs-crm/includes/ZeroBSCRM.CSVImporter.php on line 255
There has been a critical error on this website. Please check your site admin email inbox for instructions.

📌 ACTIONS

  • Triaged

@Robertght Robertght added Triaged and removed Needs triage Ticket needs to be triaged labels Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Platform] Simple [Plugin] CRM Issues about the Jetpack CRM plugin [Pri] High [Status] Priority Review Triggered The guild in charge of triage has been notified of this issue in Slack Triaged [Type] Bug When a feature is broken and / or not performing as intended
Projects
Development

No branches or pull requests

2 participants