?
avatar ketihar
ketihar
13 Feb 2017

Steps to reproduce the issue

1.Create article.
2.Create custom field type gallery
3.On article gallery field select one folder to show the images, for example sampledata
4.Open article on frontend

Expected result

Article with photo gallery

Actual result

Error message without gallery

System information (as much as possible)

7.0.10
Web Server Apache/2.4.23 (Win64) PHP/7.0.10
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 3.7.0-beta1 Beta [ Amani ] 2-February-2017 18:53 GMT
Joomla! Platform Version Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36screen shot 2017-02-13 at 18 30 37

Additional comments

avatar ketihar ketihar - open - 13 Feb 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Feb 2017
avatar obuisard
obuisard - comment - 14 Feb 2017

The solution is to change (line 71 in beta 2):
$localPath = str_replace(JPATH_ROOT . '/' . $root . '/', '', $file);
with
$localPath = str_replace(JPATH_ROOT . DIRECTORY_SEPARATOR . $root . DIRECTORY_SEPARATOR, '', $file);

avatar zero-24
zero-24 - comment - 14 Feb 2017

Can you send that changes as PR against staging?

avatar wilsonge wilsonge - change - 14 Feb 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-02-14 13:18:40
Closed_By wilsonge
avatar wilsonge wilsonge - close - 14 Feb 2017

Add a Comment

Login with GitHub to post a comment