Problem/Motivation

Error: Call to undefined function Drupal\hacked\system_retrieve_file() in Drupal\hacked\HackedProjectWebFilesDownloader->fileGet() (line 100 of /home/***/www/web/modules/contrib/hacked/src/HackedProjectWebFilesDownloader.php).

Issue fork hacked-3528956

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

proweb.ua created an issue. See original summary.

techmantejas made their first commit to this issue’s fork.

techmantejas’s picture

Assigned: Unassigned » techmantejas

Can you please describe how to reproduce this error?

techmantejas’s picture

Assigned: techmantejas » Unassigned

techmantejas changed the visibility of the branch 3528956-call-to-undefined to hidden.

proweb.ua’s picture

drupal 11.1.6
PHP 8.3.22

after click /admin/reports/hacked
batch error:

An error has occurred.
Continue to the error page

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /en/batch?id=131&op=do_nojs&op=do
StatusText: error
ResponseText: The website encountered an unexpected error. Try again later.

logs:

Error: Call to undefined function Drupal\hacked\system_retrieve_file() in Drupal\hacked\HackedProjectWebFilesDownloader->fileGet() (line 100 of /home/***/www/web/modules/contrib/hacked/src/HackedProjectWebFilesDownloader.php).

proweb.ua’s picture

Issue summary: View changes
standingtall’s picture

system_retrieve_file is removed from Drupal 11 hence the error. Currently this module is incompatible with Drupal 11.

https://www.drupal.org/project/hacked/issues/3541702

ivnish’s picture

Version: 8.x-2.0-beta6 » 8.x-2.x-dev
Assigned: Unassigned » ivnish

  • ivnish committed d08a0a4a on 8.x-2.x
    Issue #3528956 by ivnish, proweb.ua: Call to undefined function Drupal\...
ivnish’s picture

Assigned: ivnish » Unassigned
Status: Active » Fixed
vitaliyb98’s picture

In this issue FileExists::Replace was added, but not added import class in use section. This cause error: Error: Class "Drupal\hacked\FileExists" not found in Drupal\hacked\HackedProjectWebFilesDownloader->fileGet().

Fixed this problem in: https://www.drupal.org/project/hacked/issues/3542434

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.