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

Error TypeError: strpos(): Argument #1 ($haystack) must be of type string, bool given #2060

Open
ConvarDeutschland opened this issue Aug 17, 2023 · 1 comment
Labels
Projects

Comments

@ConvarDeutschland
Copy link

ConvarDeutschland commented Aug 17, 2023

In the Log there is a message:

TypeError: strpos(): Argument #1 ($haystack) must be of type string, bool given

Attached the detail from the log file:

{
  "reqId": "1Pw5JrdqMqz2qlSAdlWN",
  "level": 3,
  "time": "2023-08-17T10:50:02+02:00",
  "remoteAddr": "",
  "user": "--",
  "app": "core",
  "method": "",
  "url": "--",
  "message": "Error while running background job (class: OCA\\Bookmarks\\BackgroundJobs\\CrawlJob, arguments: )",
  "userAgent": "--",
  "version": "27.0.2.1",
  "exception": {
    "Exception": "TypeError",
    "Message": "strpos(): Argument #1 ($haystack) must be of type string, bool given",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/nextcloud/lib/private/Security/RemoteHostValidator.php",
        "line": 64,
        "function": "strpos"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Http/Client/Client.php",
        "line": 190,
        "function": "isValid",
        "class": "OC\\Security\\RemoteHostValidator",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Http/Client/Client.php",
        "line": 225,
        "function": "preventLocalAddress",
        "class": "OC\\Http\\Client\\Client",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/bookmarks/lib/Service/Previewers/DefaultBookmarkPreviewer.php",
        "line": 74,
        "function": "get",
        "class": "OC\\Http\\Client\\Client",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/bookmarks/lib/Service/Previewers/DefaultBookmarkPreviewer.php",
        "line": 56,
        "function": "fetchImage",
        "class": "OCA\\Bookmarks\\Service\\Previewers\\DefaultBookmarkPreviewer",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/bookmarks/lib/Service/BookmarkPreviewer.php",
        "line": 97,
        "function": "getImage",
        "class": "OCA\\Bookmarks\\Service\\Previewers\\DefaultBookmarkPreviewer",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/bookmarks/lib/Service/CrawlService.php",
        "line": 107,
        "function": "getImage",
        "class": "OCA\\Bookmarks\\Service\\BookmarkPreviewer",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/bookmarks/lib/BackgroundJobs/CrawlJob.php",
        "line": 54,
        "function": "crawl",
        "class": "OCA\\Bookmarks\\Service\\CrawlService",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/public/BackgroundJob/Job.php",
        "line": 81,
        "function": "run",
        "class": "OCA\\Bookmarks\\BackgroundJobs\\CrawlJob",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php",
        "line": 103,
        "function": "start",
        "class": "OCP\\BackgroundJob\\Job",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php",
        "line": 93,
        "function": "start",
        "class": "OCP\\BackgroundJob\\TimedJob",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/cron.php",
        "line": 152,
        "function": "execute",
        "class": "OCP\\BackgroundJob\\TimedJob",
        "type": "->"
      }
    ],
    "File": "/var/www/html/nextcloud/lib/private/Security/RemoteHostValidator.php",
    "Line": 64,
    "message": "Error while running background job (class: OCA\\Bookmarks\\BackgroundJobs\\CrawlJob, arguments: )",
    "exception": {},
    "CustomMessage": "Error while running background job (class: OCA\\Bookmarks\\BackgroundJobs\\CrawlJob, arguments: )"
  }
}

Desktop (please complete the following information):

  • OS: Linux Manjaro
  • Browser: Chrome

Server (please complete the following information):

  • OS: [Debian 12
  • HTTP server: Apache 2.4
  • Database: mysql Version: 10.11.3
  • PHP version: 8.2
  • Nextcloud version: 27.0.2
  • Bookmarks app version: 13.0.1
@github-actions github-actions bot added this to Backlog in Bookmarks Aug 17, 2023
@github-actions
Copy link

Hello 👋

Thank you for taking the time to open this issue with the bookmarks app. I know it's frustrating when software
causes problems. You have made the right choice to come here and open an issue to make sure your problem gets looked at
and if possible solved.
I'm Marcel and have been maintaining this software the last few years. I currently work for Nextcloud but maintain this app
in my free time, because it is not an official Nextcloud product. My day job at Nextcloud is pretty awesome but sadly leaves me with
less time for side projects like this one than I used to have.
I still try to answer all issues and if possible fix all bugs here, but it sometimes takes a while until I get to it.
Until then, please be patient.
Note also that GitHub is a place where people meet to make software better together. Nobody here is under any obligation
to help you, solve your problems or deliver on any expectations or demands you may have, but if enough people come together we can
collaborate to make this software better. For everyone.
Thus, if you can, you could also look at other issues to see whether you can help other people with your knowledge
and experience. If you have coding experience it would also be awesome if you could step up to dive into the code and
try to fix the odd bug yourself. Everyone will be thankful for extra helping hands!
One last word: If you feel, at any point, like you need to vent, this is not the place for it; you can go to the forum,
to twitter or somewhere else. But this is a technical issue tracker, so please make sure to
focus on the tech and keep your opinions to yourself. (Also see our Code of Conduct. Really.)

I look forward to working with you on this issue
Cheers 💙

@marcelklehr marcelklehr moved this from Backlog to Triaging in Bookmarks Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Triaging
Bookmarks
Triaging
Development

No branches or pull requests

1 participant