Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2020-01-21 04:29:21

christian-berlin
Member
From: Berlin
Registered: 2016-11-24
Posts: 35
Website

Problem after move backlight to a new Server

Hi!

I have run Backlight2 in the past on my sevrer and everything was fine. No I install a new Server and move the Backlight installation. I make the following steps:
- Install the webserver
- aktivate letsencrypt for the server
- install a new backlight to look, if everything is ok
- then I copy the old server file to the new server (I remove the test installation before)
- I update the webserver settings  (change from http to https)
- I change the same settings in LR

The result is now, that the Web server is running and works as before.
https://www.gosslar.homedns.org/

But If I try up update some files via Lightroom, I receive the folloing error (sorry for german)
error in LR

If I look on the webserver into the backlight log files I see these:

[20-Jan-2020 18:47:33] TRACE: decodeEntities before: Array(    [id] => 94801    [source] => lightroom    [publisher_root_id] => 1    [parent_id] =>     [type] => album    [slug] => homepage    [breadcrumb] =>     [title] => homepage    [description] =>     [template] => 46    [page_copy] =>     [page_copy_placement] => above    [sidebar_copy] =>     [sidebar_copy_placement] => above    [tray2_copy] =>     [tray2_copy_placement] => above    [enable_video] => no    [video_id] =>     [cover_image] =>     [items_per_page] => 2    [enable_maps] => no    [enable_password] => no    [username] =>     [password] => enc_75524c9be060dbf2d7fbc2db35bddac7    [enable_cart] => no    [pricing_scheme] =>     [enable_crg] => no    [crg_feedback_profile_id] =>     [crg_client_mode] =>     [visibility] => public    [ordering] => lightroom    [has_user_order] => yes    [hide_from_autoindex] => no    [hide_from_search] => no    [show_breadcrumbs] => yes    [needs_first_visit] => no    [created] => 2016-12-22 18:32:18    [modified] => 2018-12-29 15:09:45    [top_level_gallery_directory] => homepage    [top_level_gallery_path] =>     [top_level_gallery_title] => Homepage    [show_breadcrumb_for_children] => no)
[20-Jan-2020 18:47:33] TRACE: decodeEntities after: Array(    [id] => 94801    [source] => lightroom    [publisher_root_id] => 1    [parent_id] =>     [type] => album    [slug] => homepage    [breadcrumb] =>     [title] => homepage    [description] =>     [template] => 46    [page_copy] =>     [page_copy_placement] => above    [sidebar_copy] =>     [sidebar_copy_placement] => above    [tray2_copy] =>     [tray2_copy_placement] => above    [enable_video] => no    [video_id] =>     [cover_image] =>     [items_per_page] => 2    [enable_maps] => no    [enable_password] => no    [username] =>     [password] => enc_75524c9be060dbf2d7fbc2db35bddac7    [enable_cart] => no    [pricing_scheme] =>     [enable_crg] => no    [crg_feedback_profile_id] =>     [crg_client_mode] =>     [visibility] => public    [ordering] => lightroom    [has_user_order] => yes    [hide_from_autoindex] => no    [hide_from_search] => no    [show_breadcrumbs] => yes    [needs_first_visit] => no    [created] => 2016-12-22 18:32:18    [modified] => 2018-12-29 15:09:45    [top_level_gallery_directory] => homepage    [top_level_gallery_path] =>     [top_level_gallery_title] => Homepage    [show_breadcrumb_for_children] => no)
[20-Jan-2020 18:47:33] TRACE: returning: {"album":{"id":"94801","source":"lightroom","publisher_root_id":"1","parent_id":"","type":"album","slug":"homepage","breadcrumb":"","title":"homepage","description":"","template":"46","page_copy":"","page_copy_placement":"above","sidebar_copy":"","sidebar_copy_placement":"above","tray2_copy":"","tray2_copy_placement":"above","enable_video":"no","video_id":"","cover_image":"","items_per_page":"2","enable_maps":"no","enable_password":"no","username":"","password":"enc_75524c9be060dbf2d7fbc2db35bddac7","enable_cart":"no","pricing_scheme":"","enable_crg":"no","crg_feedback_profile_id":"","crg_client_mode":"","visibility":"public","ordering":"lightroom","has_user_order":"yes","hide_from_autoindex":"no","hide_from_search":"no","show_breadcrumbs":"yes","needs_first_visit":"no","created":"2016-12-22 18:32:18","modified":"2018-12-29 15:09:45","top_level_gallery_directory":"homepage","top_level_gallery_path":"","top_level_gallery_title":"Homepage","show_breadcrumb_for_children":"no"},"setup":{"itemsPerPage":"100","passwordEnabled":"yes","renditions":{"rendition":[{"maxHeight":"960","maxWidth":"1440","renditionPath":"photos","resizeType":"wh","quality":0.69,"colorSpace":"sRGB","sharpening":"on","sharpeningMedia":"screen","sharpeningLevel":2},{"maxHeight":"192","maxWidth":"192","renditionPath":"thumbnails","resizeType":"wh","quality":0.69}]},"outlets":{"outlet":[{"name":"photo_title","value":"{Title}"},{"name":"photo_caption","value":"{DD}.{MM}.{YYYY} {HH}:{MIN}:{SS} - {Exposure} - {FocalLengthMM} - ISO{ISO} - {Lens} - {Filename}"}]}},"thumbnails":[{"value":"thumbnails\/20101016_2467.jpg","title":"20101016_2467.jpg"},{"value":"thumbnails\/20111002_8448.jpg","title":"20111002_8448.jpg"},{"value":"thumbnails\/20111013_9043.jpg","title":"20111013_9043.jpg"},{"value":"thumbnails\/20120305_5161.jpg","title":"20120305_5161.jpg"},{"value":"thumbnails\/20120516_8176.jpg","title":"20120516_8176.jpg"},{"value":"thumbnails\/20120909_4247.jpg","title":"20120909_4247.jpg"},{"value":"thumbnails\/20130211_6845.jpg","title":"20130211_6845.jpg"},{"value":"thumbnails\/20130214_7612.jpg","title":"20130214_7612.jpg"},{"value":"thumbnails\/20130720_1543.jpg","title":"20130720_1543.jpg"},{"value":"thumbnails\/20130721_1558_HDR.jpg","title":"20130721_1558_HDR.jpg"},{"value":"thumbnails\/20130908_1348_7d.jpg","title":"20130908_1348_7d.jpg"},{"value":"thumbnails\/20130923_4899.jpg","title":"20130923_4899.jpg"},{"value":"thumbnails\/20140503_1273_v1.jpg","title":"20140503_1273_v1.jpg"},{"value":"thumbnails\/20140511_1467.jpg","title":"20140511_1467.jpg"},{"value":"thumbnails\/20140515_2005.jpg","title":"20140515_2005.jpg"},{"value":"thumbnails\/20140516_2122_HDR.jpg","title":"20140516_2122_HDR.jpg"},{"value":"thumbnails\/20140519_2341.jpg","title":"20140519_2341.jpg"},{"value":"thumbnails\/20140820_4664.jpg","title":"20140820_4664.jpg"},{"value":"thumbnails\/20141014_5975_v1.jpg","title":"20141014_5975_v1.jpg"},{"value":"thumbnails\/20150118_7441.jpg","title":"20150118_7441.jpg"},{"value":"thumbnails\/20150125_7576.jpg","title":"20150125_7576.jpg"},{"value":"thumbnails\/20150403_1262.jpg","title":"20150403_1262.jpg"},{"value":"thumbnails\/20150404_1433.jpg","title":"20150404_1433.jpg"},{"value":"thumbnails\/20150406_2079.jpg","title":"20150406_2079.jpg"},{"value":"thumbnails\/20150408_2451.jpg","title":"20150408_2451.jpg"},{"value":"thumbnails\/20151024_0952.jpg","title":"20151024_0952.jpg"},{"value":"thumbnails\/20160109_1807.jpg","title":"20160109_1807.jpg"},{"value":"thumbnails\/20160328_3215.jpg","title":"20160328_3215.jpg"},{"value":"thumbnails\/20160424_01033.jpg","title":"20160424_01033.jpg"},{"value":"thumbnails\/20160424_3879.jpg","title":"20160424_3879.jpg"},{"value":"thumbnails\/20160429_4900-HDR.jpg","title":"20160429_4900-HDR.jpg"},{"value":"thumbnails\/20160429_4905-HDR.jpg","title":"20160429_4905-HDR.jpg"},{"value":"thumbnails\/20160502_5527.jpg","title":"20160502_5527.jpg"},{"value":"thumbnails\/20160511_01831.jpg","title":"20160511_01831.jpg"},{"value":"thumbnails\/20160511_6783.jpg","title":"20160511_6783.jpg"},{"value":"thumbnails\/20160517_7825.jpg","title":"20160517_7825.jpg"},{"value":"thumbnails\/20160517_7856.jpg","title":"20160517_7856.jpg"},{"value":"thumbnails\/20160517_7880.jpg","title":"20160517_7880.jpg"},{"value":"thumbnails\/20160518_7930.jpg","title":"20160518_7930.jpg"},{"value":"thumbnails\/20160903_0361_7dII.jpg","title":"20160903_0361_7dII.jpg"},{"value":"thumbnails\/20160918_1772.jpg","title":"20160918_1772.jpg"},{"value":"thumbnails\/20161028_2385.jpg","title":"20161028_2385.jpg"},{"value":"thumbnails\/20161101_2964.jpg","title":"20161101_2964.jpg"},{"value":"thumbnails\/20170106_0685.jpg","title":"20170106_0685.jpg"},{"value":"thumbnails\/20170219_1526.jpg","title":"20170219_1526.jpg"},{"value":"thumbnails\/20170227_2841.jpg","title":"20170227_2841.jpg"},{"value":"thumbnails\/20170227_2946.jpg","title":"20170227_2946.jpg"},{"value":"thumbnails\/20170302_3601.jpg","title":"20170302_3601.jpg"},{"value":"thumbnails\/20170302_3612.jpg","title":"20170302_3612.jpg"},{"value":"thumbnails\/20170302_3794.jpg","title":"20170302_3794.jpg"},{"value":"thumbnails\/20171115_6437_5dIV.jpg","title":"20171115_6437_5dIV.jpg"}],"status":"success","version":"4.0.0"}
[20-Jan-2020 18:47:35] TRACE: path: /srv/www/vhosts/gosslar_homedns_org/htdocs/homepage||/homepage
[20-Jan-2020 18:47:35] TRACE: fileSize: 338026
[20-Jan-2020 18:47:35] TRACE: photoId: 94801_60572
[20-Jan-2020 18:47:35] TRACE: existingPhotoId: 94801_60572
[20-Jan-2020 18:47:35] TRACE: filename: 20140820_4664.jpg
[20-Jan-2020 18:47:35] TRACE: $isVirtualCopy: 
[20-Jan-2020 18:47:35] TRACE: $_FILES destFilename: 20140820_4664.jpg
[20-Jan-2020 18:47:35] TRACE: Final destFilename: 20140820_4664.jpg
[20-Jan-2020 18:47:35] TRACE: $requiredRotation0
[20-Jan-2020 18:47:35] ERROR: Call to undefined function ImageCreateFromjpeg()|#0 /srv/www/vhosts/gosslar_homedns_org/htdocs/backlight/modules/module-publisher/application/helpers/ImageResizer.php(36): ImageResizer->createImageSource()#1 /srv/www/vhosts/gosslar_homedns_org/htdocs/backlight/modules/module-publisher/application/delegates/PublisherDelegate.php(829): ImageResizer->__construct('/tmp/phpt496Gb')#2 /srv/www/vhosts/gosslar_homedns_org/htdocs/backlight/modules/module-publisher/application/delegates/PublisherDelegate.php(578): PublisherDelegate->moveImageFiles(Array, Array, Array, '/srv/www/vhosts...', '20140820_4664.j...', false)#3 /srv/www/vhosts/gosslar_homedns_org/htdocs/backlight/modules/module-publisher/application/controllers/ApiController.php(455): PublisherDelegate->uploadRendition(94801, Array)#4 /srv/www/vhosts/gosslar_homedns_org/htdocs/backlight/modules/module-framework/controllers/Controller.php(56): ApiController->uploadRendition()#5 /srv/www/vhosts/gosslar_homedns_org/htdocs/backlight/modules/module-framework/models/Dispatchable.php(136): Controller->dispatch(Array)#6 /srv/www/vhosts/gosslar_homedns_org/htdocs/backlight/modules/module-framework/Framework.php(73): Dispatchable->dispatch()#7 /srv/www/vhosts/gosslar_homedns_org/htdocs/backlight/index.php(32): Framework->route()#8 {main}|URL: /backlight/index.php

What is the Problem, what shall I forgot furing the installation (maybe a php module?) and how can I fix it.
What I also see in LR is, that the link to the borwser (library view, on the top right) the link is to the old adress, which I enter as lokal address like 192.168.xxx. But these is not working for the https access and I change the setting in LR in the plugin and the API check works fine then.

Some server SW Infos:
- Centos 81
- Apache 2.4
- PHP Version 7.2.11
- Backlight version: 2.0.13
- all Backlight modules are updated
- LR Plugin 4.0.10.0
the installed php modules (liste by blacklight, sqlite3 and pdo_sqlite are listed bold)

Installed PHP Modules:
Core
date
libxml
openssl
pcre
zlib
filter
hash
Reflection
SPL
session
standard
cgi-fcgi
bz2
calendar
ctype
curl
dom
exif
fileinfo
ftp
gettext
iconv
json
PDO
Phar
SimpleXML
sockets
sqlite3
tokenizer
xml
xmlwriter
xsl
pdo_sqlite
wddx
xmlreader
zip

Thanks for help, I hope the problem can be fixed. Otherwise I must create a new website and export all the football pictures again (~80000 pics).
Christian

Offline

#2 2020-01-21 04:56:35

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Problem after move backlight to a new Server

Hi Christian, you need to install or enable the php GD extension.

Offline

#3 2020-01-21 05:26:18

christian-berlin
Member
From: Berlin
Registered: 2016-11-24
Posts: 35
Website

Re: Problem after move backlight to a new Server

Hi Ben!

I am always excited about the help here. Thanks a lot, these was the problem. Now it works.

Christian

Offline

#4 2020-01-21 06:45:14

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Problem after move backlight to a new Server

I’m glad that solved it. I recently added a check and helpful message for GD on the uploads page. It’s not yet in our released code.  Not much use for you, unfortunately, but it should help others in the future.  GD is a pretty standard module that shared hosts provide, so it's rare that it's not installed.

Offline

Board footer

Powered by FluxBB