Support » Plugin: Document Gallery » PHP 8.1 compatible?

  • webmasterdistrict10nia


    Hello, while updating our site from PHP 7.4FastGCI to PHP 8.0Fast GCI, errors were found in Document Gallery that prevented the update from finishing. Have others reported issues with it? I am not a tech person, so I am looking for suggestions to remedy the situation.
    Thank you,
    [ email deleted ]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @webmasterdistrict10nia

    The plugin looks abandoned, I don’t think the authors will read this thread.

    I had the same problem with PHP 8.

    You can fix it by moving DG_Gallery::init(); to the bottom of the file in document-gallery-3/inc/class-gallery.php. It works for me after moving that line of code to the bottom.

    Thanks @giuse, that edit fixed the issue on PHP 8 for my website as well.

    You are welcome @scshca. I’m happy that it was useful.

    Thread Starter webmasterdistrict10nia


    Jose, where do I find that code in order to move it? I am not an IT guy but have friends that are and are willing to help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.