New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

srcnotfound - Bad path with piwigo in subdir #46

Closed
jcz1 opened this Issue Feb 3, 2015 · 8 comments

Comments

Projects
None yet
2 participants
@jcz1

jcz1 commented Feb 3, 2015

My piwigo installation is in foto subdir. Full path is www.some.com/foto/.

When i uploaded mp4 video, i see thumbnail and i am able to download mp4 file. But player shows srcnotfound error message even after synchronization. In apache i found this error:

File does not exist: /data/www/www.some.com/upload

... with missing /foto/ directory. I created symlink:

/data/www/www.some.com/upload -> foto/upload

and it works. Probably there is a bug in path selection.

@xbgmsharp

This comment has been minimized.

Show comment
Hide comment
@xbgmsharp

xbgmsharp Feb 18, 2015

Owner

Thanks for the feedback.
Upload video play correctly for me. Please send the process to reproduce the issue.
Did you attach the upload to a virtual album? to a sub album?

Owner

xbgmsharp commented Feb 18, 2015

Thanks for the feedback.
Upload video play correctly for me. Please send the process to reproduce the issue.
Did you attach the upload to a virtual album? to a sub album?

@jcz1

This comment has been minimized.

Show comment
Hide comment
@jcz1

jcz1 Feb 18, 2015

maybe problem with "clean urls"?

from src (public part of gallery):
<a href="../../../upload/2015/02/03/20150213154455-3919abaa.mp4...

and gallery-video URL:
http://myweb.tld/gallery/picture/9251-moviename/category/675-subalbumname

my config:
$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'id-file';

jcz1 commented Feb 18, 2015

maybe problem with "clean urls"?

from src (public part of gallery):
<a href="../../../upload/2015/02/03/20150213154455-3919abaa.mp4...

and gallery-video URL:
http://myweb.tld/gallery/picture/9251-moviename/category/675-subalbumname

my config:
$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'id-file';

@jcz1

This comment has been minimized.

Show comment
Hide comment
@jcz1

jcz1 Feb 18, 2015

btw it is in subalbum in virtual album

jcz1 commented Feb 18, 2015

btw it is in subalbum in virtual album

@xbgmsharp

This comment has been minimized.

Show comment
Hide comment
@xbgmsharp

xbgmsharp Feb 18, 2015

Owner

Thanks, I will check on subalbum in virtual album.

Owner

xbgmsharp commented Feb 18, 2015

Thanks, I will check on subalbum in virtual album.

@xbgmsharp

This comment has been minimized.

Show comment
Hide comment
@xbgmsharp

xbgmsharp Feb 19, 2015

Owner

I try adding the following scenario.
With default config set:

  • a manually import video in a subalbum of an album and it works fine.
  • a upload video in a virtual subalbum of a virtual album and it works fine.

With your config set (got an hard time with .htaccess):

  • a manually import video in a subalbum of an album and it does not works. Same error.
  • a upload video in a virtual subalbum of a virtual album and it does not works. Same error.
  • a manually import video in a album and it does not works. Same error.
  • a upload video in a virtual album and it does not works. Same error.

Now that I'm able to reproduce the issue, I will try to find a work around.
The fun part if that the poster get display fine.

Owner

xbgmsharp commented Feb 19, 2015

I try adding the following scenario.
With default config set:

  • a manually import video in a subalbum of an album and it works fine.
  • a upload video in a virtual subalbum of a virtual album and it works fine.

With your config set (got an hard time with .htaccess):

  • a manually import video in a subalbum of an album and it does not works. Same error.
  • a upload video in a virtual subalbum of a virtual album and it does not works. Same error.
  • a manually import video in a album and it does not works. Same error.
  • a upload video in a virtual album and it does not works. Same error.

Now that I'm able to reproduce the issue, I will try to find a work around.
The fun part if that the poster get display fine.

@jcz1

This comment has been minimized.

Show comment
Hide comment
@jcz1

jcz1 Feb 19, 2015

Thx for tests. What about URL with "$piwigoroot/upload/..." instead of "../../.." path? I don't know about $piwigoroot but probably there is some internal variable, because there is configuration to override.

jcz1 commented Feb 19, 2015

Thx for tests. What about URL with "$piwigoroot/upload/..." instead of "../../.." path? I don't know about $piwigoroot but probably there is some internal variable, because there is configuration to override.

xbgmsharp added a commit that referenced this issue Feb 20, 2015

@xbgmsharp

This comment has been minimized.

Show comment
Hide comment
@xbgmsharp

xbgmsharp Feb 20, 2015

Owner

The patch are generated via get_gallery_home_url() and get_absolute_root_url().
Those are PWG function.

I commit a fixed.
Please test and feedback.

Owner

xbgmsharp commented Feb 20, 2015

The patch are generated via get_gallery_home_url() and get_absolute_root_url().
Those are PWG function.

I commit a fixed.
Please test and feedback.

@jcz1

This comment has been minimized.

Show comment
Hide comment
@jcz1

jcz1 Feb 21, 2015

It's ok now. Thanks for you work.

jcz1 commented Feb 21, 2015

It's ok now. Thanks for you work.

@jcz1 jcz1 closed this Feb 21, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment