Error Since My Hosting Service Moved me to New Server

Unexpected error: PHP Startup: Unable to load dynamic library ‘/opt/cpanel/ea-php56/root/usr/lib64/php/modules/pgsql.so’ - libpq.so.5: cannot open shared object file: No such file or directory in Unknown on line 0

InMotion Hosting moved my sites to a new server. My other sites were unaffected, but all my Backlight Galleries produce this error. I can’t lo into Backlight to change any settings

Site is http://lukemiller.photos

Probably a misconfiguration with the server.
See this:

Particularly the section on Module Errors. Some have had luck with the number 3 suggestion in this section.

You can also look through this forum search result and see if anything there helps:

https://discourse.theturninggate.net/search?expanded=true&q=Unexpected%20error%3A%20PHP%20Startup

If none of that solves the problem, then @Ben will need to take a look.

Tried different PHP versions without correcting the problem. The only PHP Option set was to allow HTTP uploads. Disabling it had no effect. Will post error message to InMotion support.

Did you try changing that file mentioned in item 3 in the Module Errors section of the document I linked to?

That worked! pages display properly now. Is there still something InMotion needs to correct?

I don’t know, but @Ben might.

Hi @Luke_Miller, the underlying error is probably inconsequential. It’s better if they fix it, but there should be no harm to your site if they don’t.

Thanks Rod and Ben. I’ll see what inMotion has to say.

InMotion got back to me:

I found an error log in in trinitykg.org/galleries that show a similar error going back to last year. What does Blacklight want the permissions set at. Is it 644 for the files and 755 for directories? What version of PHP should this CMS run on?

[26-Jul-2020 17:58:48 UTC] PHP Warning: require_once(./…/backlight/framework/Framework.php): failed to open stream: No such file or directory in /home/trini104/public_html/galleries/lib.php on line 48
[26-Jul-2020 17:58:48 UTC] PHP Fatal error: require_once(): Failed opening required ‘./…/backlight/framework/Framework.php’ (include_path=’.:/opt/cpanel/ea-php56/root/usr/share/pear’) in /home/trini104/public_html/galleries/lib.php on line 48
[26-Jul-2020 20:29:45 UTC] PHP Warning: require_once(./…/backlight/framework/Framework.php): failed to open stream: No such file or directory in /home/trini104/public_html/galleries/lib.php on line 48
[26-Jul-2020 20:29:45 UTC] PHP Fatal error: require_once(): Failed opening required ‘./…/backlight/framework/Framework.php’ (include_path=’.:/opt/cpanel/ea-php56/root/usr/share/pear’) in /home/trini104/public_html/galleries/lib.php on line 48
[26-Jul-2020 23:31:09 UTC] PHP Warning: require_once(./…/backlight/framework/Framework.php): failed to open stream: No such file or directory in /home/trini104/public_html/galleries/lib.php on line 48
[26-Jul-2020 23:31:09 UTC] PHP Fatal error: require_once(): Failed opening required ‘./…/backlight/framework/Framework.php’ (include_path=’.:/opt/cpanel/ea-php56/root/usr/share/pear’) in /home/trini104/public_html/galleries/lib.php on line 48
[28-Jul-2020 19:05:58 UTC] PHP Warning: require_once(./…/backlight/framework/Framework.php): failed to open stream: No such file or directory in /home/trini104/public_html/galleries/lib.php on line 48
[28-Jul-2020 19:05:58 UTC] PHP Fatal error: require_once(): Failed opening required ‘./…/backlight/framework/Framework.php’ (include_path=’.:/opt/cpanel/ea-php56/root/usr/share/pear’) in /home/trini104/public_html/galleries/lib.php on line 48
[29-Jul-2020 22:20:25 UTC] PHP Warning: require_once(./…/backlight/framework/Framework.php): failed to open stream: No such file or directory in /home/trini104/public_html/galleries/lib.php on line 48
[29-Jul-2020 22:20:25 UTC] PHP Fatal error: require_once(): Failed opening required ‘./…/backlight/framework/Framework.php’ (include_path=’.:/opt/cpanel/ea-php56/root/usr/share/pear’) in /home/trini104/public_html/galleries/lib.php on line 48
[30-Jul-2020 16:17:31 UTC] PHP Warning: require_once(./…/backlight/framework/Framework.php): failed to open stream: No such file or directory in /home/trini104/public_html/galleries/lib.php on line 48
[30-Jul-2020 16:17:31 UTC] PHP Fatal error: require_once(): Failed opening required ‘./…/backlight/framework/Framework.php’ (include_path=’.:/opt/cpanel/ea-php56/root/usr/share/pear’) in /home/trini104/public_html/galleries/lib.php on line 48
[03-Aug-2020 20:04:08 UTC] PHP Warning: require_once(./…/backlight/framework/Framework.php): failed to open stream: No such file or directory in /home/trini104/public_html/galleries/lib.php on line 48
[03-Aug-2020 20:04:08 UTC] PHP Fatal error: require_once(): Failed opening required ‘./…/backlight/framework/Framework.php’ (include_path=’.:/opt/cpanel/ea-php56/root/usr/share/pear’) in /home/trini104/public_html/galleries/lib.php on line 48

Hi @Luke_Miller, you usually shouldn’t need to set permissions on Backlight’s files. A well-configured host should set these to the right permissions as files are uploaded by FTP and created by PHP.
If they need to fix permissions, then 644 for files and 755 for directories should work.
The directory of backlight/data and any galleries directories you have need to be writable by your web server. This usually requires no changes to the configuration on shared hosting. If your host is repairing permissions on an existing site that have been altered for some reason, then they need to make sure that the complete contents of backlight/data and any galleries directories are writable by the web server.

We support any version of PHP from 5.4 and upwards (currently tested to version 8). In general the higher the better, as the oldest versions can have security issues, and the newer versions are more performant. We only advise to change to a lower version if the host has broken something in a newer installation of PHP (usually things like missing PHP modules, but other issues crop up due to misconfiguration on the host’s part).

The errors you’ve shared are caused by your galleries directory includes files that belong to Backlight 1 but you’re using Backlight 4. Assuming you aren’t intending to keep using Backlight 1, the fix for this is to log into the Backlight admin, and click on “Update Album Files” under “Special Links” on the main Backlight admin landing page.

I hope that helps.