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

Search only works first time #776

Closed
whisperdancer opened this issue Dec 18, 2018 · 2 comments
Closed

Search only works first time #776

whisperdancer opened this issue Dec 18, 2018 · 2 comments
Labels
bug Something isn't working needs info Not enough information provided

Comments

@whisperdancer
Copy link

whisperdancer commented Dec 18, 2018

⚠ Please report only issues corresponding to the contacts app for Nextcloud ⚠

Migration and CardDAV issues belong in the server repo!
https://github.com/nextcloud/server/issues

If you have any questions, head over to https://help.nextcloud.com/c/apps/contacts


Describe the bug

A clear and concise description of what the bug is.
Search only works the first time. Subsequent searches do not work. Nothing happens. It's totally dead.

To Reproduce
Steps to reproduce the behavior:
Click on Contacts within Nextcloud top menu to go to Contacts app. Immediately click on Search Icon and enter contact to search for. It works and returns the results of the search as expected. Now, search for a different Contact and nothing happens.

Expected behavior
Expect to see updated results for each new search.

Actual behavior
Nothing happens. Just dead after first search. As a workaround I have to reload the contacts app from the nextcloud menu to do a new search. This is cumbersome as it takes a few seconds to load all the contacts. Once the contacts are initially loaded I should be able to search for them, manipulate them, etc without the need to constantly reload them.

Screenshots
If applicable, add screenshots to help explain your problem.

Server configuration

Operating system: Windows, Linux, MacOS...
Windows 10

Web server: Nginx...

Database: MariaDB

PHP version: 7.2

Nextcloud version: (see Nextcloud admin page)
15

Contacts version: (see Nextcloud apps page)
3.0 (newest update)

Updated from an older Nextcloud or fresh install:
Updated from 14.0.0.4

Signing status:

Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
No errors have been found.

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
  - activity: 2.8.2
  - admin_audit: 1.5.0
  - bookmarks: 0.14.3
  - calendar: 1.6.4
  - cloud_federation_api: 0.1.0
  - comments: 1.5.0
  - contacts: 3.0.0
  - dav: 1.8.0
  - federatedfilesharing: 1.5.0
  - federation: 1.5.0
  - files: 1.10.0
  - files_pdfviewer: 1.4.0
  - files_sharing: 1.7.0
  - files_texteditor: 2.7.0
  - files_trashbin: 1.5.0
  - files_versions: 1.8.0
  - files_videoplayer: 1.4.0
  - gallery: 18.2.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.3.0
  - nextcloud_announcements: 1.4.0
  - notifications: 2.3.0
  - oauth2: 1.3.0
  - previewgenerator: 2.0.0
  - provisioning_api: 1.5.0
  - serverinfo: 1.5.0
  - sharebymail: 1.5.0
  - systemtags: 1.5.0
  - tasks: 0.9.8
  - theming: 1.6.0
  - twofactor_backupcodes: 1.4.1
  - twofactor_nextcloud_notification: 1.0.1
  - twofactor_totp: 2.1.0
  - updatenotification: 1.5.0
  - workflowengine: 1.5.0
Disabled:
  - accessibility
  - encryption
  - files_external
  - firstrunwizard
  - password_policy
  - support
  - survey_client
  - twofactor_rcdevsopenotp
  - user_external
  - user_ldap


**Nextcloud configuration:**

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your instance's installation folder

{
"system": {
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"localhost",
"example.com"
],
"datadirectory": "REMOVED SENSITIVE VALUE",
"overwrite.cli.url": "https://example.com",
"dbtype": "mysql",
"version": "15.0.0.10",
"dbname": "REMOVED SENSITIVE VALUE",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"instanceid": "REMOVED SENSITIVE VALUE",
"activity_expire_days": 14,
"auth.bruteforce.protection.enabled": false,
"blacklisted_files": [
".htaccess",
"Thumbs.db",
"thumbs.db"
],
"cron_log": true,
"enable_previews": true,
"enabledPreviewProviders": [
"OC\Preview\PNG",
"OC\Preview\JPEG",
"OC\Preview\GIF",
"OC\Preview\BMP",
"OC\Preview\XBitmap",
"OC\Preview\Movie",
"OC\Preview\PDF",
"OC\Preview\MP3",
"OC\Preview\TXT",
"OC\Preview\MarkDown"
],
"filesystem_check_changes": 0,
"filelocking.enabled": "true",
"htaccess.RewriteBase": "/",
"integrity.check.disabled": false,
"knowledgebaseenabled": false,
"logfile": "/var/nc_data/nextcloud.log",
"loglevel": 0,
"logtimezone": "America/Los_Angeles",
"log_rotate_size": 104857600,
"maintenance": false,
"memcache.local": "\OC\Memcache\APCu",
"memcache.locking": "\OC\Memcache\Redis",
"overwriteprotocol": "https",
"preview_max_x": 1024,
"preview_max_y": 768,
"preview_max_scale_factor": 1,
"redis": {
"host": "REMOVED SENSITIVE VALUE",
"port": 0,
"timeout": 0
},
"quota_include_external_storage": false,
"share_folder": "/Shares",
"skeletondirectory": "",
"theme": "",
"trashbin_retention_obligation": "auto, 7",
"updater.release.channel": "stable",
"mail_smtpmode": "smtp",
"mail_smtpauthtype": "LOGIN",
"mail_from_address": "REMOVED SENSITIVE VALUE",
"mail_domain": "REMOVED SENSITIVE VALUE",
"mail_smtpauth": 1,
"mail_smtphost": "REMOVED SENSITIVE VALUE",
"mail_smtpport": "465",
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE",
"mail_smtpsecure": "ssl",
"twofactor_enforced": "true",
"twofactor_enforced_groups": [],
"twofactor_enforced_excluded_groups": []
}
}

or

Client configuration

Browser: Firefox Quantum 64

Operating system:
Rasperian Stretch

CardDAV-clients:

Logs

Web server error log

Insert your webserver log here

Nextcloud log

data/nextcloud.log

Insert your Nextcloud log here

Browser log

How to access your browser console (Click to expand)

Chrome

  • Press either CTRL + SHIFT + J to open the “console” tab of the Developer Tools.
  • Alternative method:
    1. Press either CTRL + SHIFT + I or F12 to open the Developer Tools.
    2. Click the “console” tab.

Safari

  • Press CTRL + ALT + I to open the Web Inspector.
  • See Chrome’s step 2. (Chrome and Safari have pretty much identical dev tools.)

IE9

  1. Press F12 to open the developer tools.
  2. Click the “console” tab.

Firefox

  • Press CTRL + SHIFT + K to open the Web console (COMMAND + SHIFT + K on Macs).
  • or, if Firebug is installed (recommended):
    1. Press F12 to open Firebug.
    2. Click on the “console” tab.
      Source map error: TypeError: NetworkError when attempting to fetch resource. Resource URL: https://example.com/apps/contacts/js/contacts.js?v=195bed76-0 Source Map URL: contacts.js.map[Learn More]
      TypeError: "p.elm.getBoundingClientRect is not a function"
      TypeError: "t.getAttribute is not a function"
      TypeError: "p.elm is undefined"
      TypeError: "t is undefined"

Opera

  1. Press CTRL + SHIFT + I to open Dragonfly.
  2. Click on the “console” tab.
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...
@nextcloud-bot nextcloud-bot added the needs info Not enough information provided label Dec 18, 2018
@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #664 (Add search), #314 (Saved searches), #142 (Move search field), #557 (info button within the quick contact search doesn't work), and #313 (Advanced search strings).

@skjnldsv
Copy link
Member

skjnldsv commented Dec 18, 2018

Duplicate of #770

@skjnldsv skjnldsv marked this as a duplicate of #772 Dec 18, 2018
@skjnldsv skjnldsv marked this as a duplicate of #770 Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs info Not enough information provided
Projects
None yet
Development

No branches or pull requests

3 participants