Forum Replies Created

Viewing 1 replies (of 1 total)
  • I am getting this error too. Here is an explanation of the cause and how I will attempt to resolve it until a patch is released.

    The method create_album in BPMediaAlbumimporter class does not match the signature of the same method in the BPMediaImporter class. This mismatch causes a fatal error (E_COMPILE_ERROR) that halts the PHP script execution.

    To correct this error, ensure that the declaration of the create_album method in the BPMediaAlbumimporter class exactly matches the declaration in the BPMediaImporter class, including the order of parameters and their default values.

    To fix the error, adjust the BPMediaAlbumimporter::create_album method to match the parent class/interface:

    function create_album($album_name = 'Imported M…', $author_id = 1)

    Something like that. Test in dev before deploying.

    Steps to edit a file

    1. Open the File: Navigate to /nas/content/live/[domainname]/wp-content/plugins/buddypress-media/app/importers/BPMediaAlbumimporter.php.
    2. Find the Method: Go to line 225 (or nearby, depending on the code) where the create_album method is defined.
    3. Adjust the Signature: Change the method signature to match the parent class, ensuring the order and default values of the parameters align with the BPMediaImporter class.
    4. Test the Changes: After making the changes, test to ensure that the plugin functions as expected and the error does not occur.
    • This reply was modified 8 months, 1 week ago by toledogeeks.
Viewing 1 replies (of 1 total)