An error has been encountered, please enable debugging to view the error

CGI ERROR
==========================================
Error Message       : Error loading required libraries.
Check that they exist.
Reason: Can't call method "prepare" on an undefined value at gallery.cgi line 62.

Script Location     : gallery.cgi
Perl Version        : 5.016003

Form Variables
-------------------------------------------
display             : rg117
gallery             : reception-flowers
page                : o36m9v8wxj

Environment Variables
-------------------------------------------
CONTEXT_DOCUMENT_ROOT: /home/brid2231/public_html/cgi-bin/
CONTEXT_PREFIX      : /cgi-bin/
DOCUMENT_ROOT       : /home/brid2231/public_html
GATEWAY_INTERFACE   : CGI/1.1
HTTPS_CA_FILE       : /etc/tls/pki/certs/
HTTP_ACCEPT         : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_ENCODING: br,gzip
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.5
HTTP_CONNECTION     : Keep-Alive
HTTP_HOST           : bridesinbloom.com.au
HTTP_IF_MODIFIED_SINCE: Sat, 19 Sep 2020 16:01:32 GMT
HTTP_USER_AGENT     : CCBot/2.0 (https://commoncrawl.org/faq/)
PATH                : /usr/local/bin:/usr/bin:/bin
QUERY_STRING        : display=rg117&gallery=reception-flowers&page=o36m9v8wxj
REDIRECT_QUERY_STRING: display=rg117&gallery=reception-flowers&page=o36m9v8wxj
REDIRECT_STATUS     : 200
REDIRECT_URL        : /gallery/reception-flowers/o36m9v8wxj/rg117/
REMOTE_ADDR         : 18.213.192.104
REMOTE_PORT         : 47626
REQUEST_METHOD      : GET
REQUEST_SCHEME      : http
REQUEST_URI         : /gallery/reception-flowers/o36m9v8wxj/rg117/
SCRIPT_FILENAME     : /home/brid2231/public_html/cgi-bin/cart/custom/gallery.cgi
SCRIPT_NAME         : /cgi-bin/cart/custom/gallery.cgi
SCRIPT_URI          : http://bridesinbloom.com.au/gallery/reception-flowers/o36m9v8wxj/rg117/
SCRIPT_URL          : /gallery/reception-flowers/o36m9v8wxj/rg117/
SERVER_ADDR         : 103.29.216.104
SERVER_ADMIN        : webmaster@bridesinbloom.com.au
SERVER_NAME         : bridesinbloom.com.au
SERVER_PORT         : 80
SERVER_PROTOCOL     : HTTP/1.1
SERVER_SIGNATURE    : 
SERVER_SOFTWARE     : Apache
TZ                  : Australia/Sydney
UNIQUE_ID           : X72gB-EgFC-rp8WGgnYbPgAAARU