Skip to content

PHP7, Fatal error: "break" not in the loop, imdbsearch.class.php #98

@thizmo

Description

@thizmo

Hi,

made an upgrade to latest opendb (git) and changed to PHP7.

Problem:
After the upgrade, the imdbsearch got Error 500 in Browser and messages from subject in the log.

Solution:
(Quick fix only, while i am not a programmer)

  • Make a copy of the file
  • Find the two lines with "break" in the imdbsearch.class.php file
  • Replace it with "return false" (found as a solution on stackoverflow.com)
  • Reload the browser.

After that, everything worked as expected so far.
Yet i haven't fully testet everything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions