Problem with Slide Show, PHP code warning

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
evi
 
 
Posts: 4
Joined: Fri Nov 03, 2023 5:08 pm

Problem with Slide Show, PHP code warning

Post by evi »

I am using WWB v. 18.4.0
Slide Show - Type: lightbox gallery Lightbox: fancybox
Datasource: Get images from a folder on the server

The image-files has no exif-data, so i get a PHP-warning: Warning: Undefined array key "ImageDescription"
and output to the page stops.
In the php-file i see:

Code: Select all

$title = trim($exif['ImageDescription']);
and i wants to change i to:

Code: Select all

$title = trim(isset($exif['ImageDescription']) ? $exif['ImageDescription'] : ''); 
to prevent the warning.
How can i do this without manual edit after each time i upload ?
User avatar
Pablo
 
Posts: 23617
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Problem with Slide Show, PHP code warning

Post by Pablo »

There is currently no option to change this directly in the software.
But I will consider this for future development.
Post Reply