Public sharing broken in 4.5.3
Sharing a folder in 4.5.3 by URL gives me the following link:
https://slmmr.net/oc/public.php?service=files&t=086c16e18d9b7b34fda9f788ab178116
This gives these errors:
Warning: Cannot modify header information - headers already sent by (output started at /home/slmmr/public_html/oc/apps/files_sharing/public.php:236) in /home/slmmr/public_html/oc/lib/template.php on line 165
Warning: Cannot modify header information - headers already sent by (output started at /home/slmmr/public_html/oc/apps/files_sharing/public.php:236) in /home/slmmr/public_html/oc/lib/template.php on line 166
Warning: Cannot modify header information - headers already sent by (output started at /home/slmmr/public_html/oc/apps/files_sharing/public.php:236) in /home/slmmr/public_html/oc/lib/template.php on line 164
Warning: Cannot modify header information - headers already sent by (output started at /home/slmmr/public_html/oc/apps/files_sharing/public.php:236) in /home/slmmr/public_html/oc/lib/template.php on line 165
Warning: Cannot modify header information - headers already sent by (output started at /home/slmmr/public_html/oc/apps/files_sharing/public.php:236) in /home/slmmr/public_html/oc/lib/template.php on line 166
Warning: Cannot modify header information - headers already sent by (output started at /home/slmmr/public_html/oc/apps/files_sharing/public.php:236) in /home/slmmr/public_html/oc/lib/template.php on line 164
Warning: Cannot modify header information - headers already sent by (output started at /home/slmmr/public_html/oc/apps/files_sharing/public.php:236) in /home/slmmr/public_html/oc/lib/template.php on line 165
Warning: Cannot modify header information - headers already sent by (output started at /home/slmmr/public_html/oc/apps/files_sharing/public.php:236) in /home/slmmr/public_html/oc/lib/template.php on line 166
Warning: Cannot modify header information - headers already sent by (output started at /home/slmmr/public_html/oc/apps/files_sharing/public.php:236) in /home/slmmr/public_html/oc/lib/template.php on line 164
Warning: Cannot modify header information - headers already sent by (output started at /home/slmmr/public_html/oc/apps/files_sharing/public.php:236) in /home/slmmr/public_html/oc/lib/template.php on line 165
Warning: Cannot modify header information - headers already sent by (output started at /home/slmmr/public_html/oc/apps/files_sharing/public.php:236) in /home/slmmr/public_html/oc/lib/template.php on line 166
Note that when I click the link on the top left to the shared folder, from the shared folder page while not logged in, I get this link and the page works as expected:
https://slmmr.net/oc/public.php?service=files&t=086c16e18d9b7b34fda9f788ab178116&path=%2F
@schiesbn @MTGap @icewind1991 Can you have a look?
i got the same or - at least - a smiliar problem like ERamseth.
when i share a folder in my OC 4.5.3 per link and i open the share-link, i get this:
http://www.kingpic.net/uploads/unbenannt5ulo4gg4.png
this is NOT caused by my custom theme. i activated the default OC-theme and got the same errors...
for me personal it's no big thing, but my buddies are getting crazy and afraid, when loading pages w/ error flooding...
maybe the solution is to update to 4.5.4, but my last updates were a real torture (VicDeo knows what i'm talking about...)
problem still exists... (current version: OC 4.5.4)
push
push
@abstractmodel within your screenshot there is this filter input field. This indicates you have the app 'simple file filter' installed.
As 3rdparty apps can have impact on the core functionality I'd like to ask you to disable them.
In addition: please let us know which apps you have enabled.
THX
@ERamseth @Joni-Lover Feel free to follow the instructions above. THX
@DeepDiver1975 the screenshot is from version 4.5.3. in this version simple file filter was compatible.
after the update to 4.5.4, the app SFF wasn't compatible any longer... but the problem still exists in version 4.5.4, even w/o SFF... :(
@abstractmodel Hmm - any other 3rdparty apps installed?
in my installation - no and the problem still exists in version 4.5.4 too
@DeepDiver1975 let me show you this: http://www.abload.de/img/ocaoeqq.jpg
as i can see, everything should be official OC..? and Joni-Lover got the same problem...
THX
http://www.kingpic.net/show/screen_shot_2012-12-12_at_19_20_34.png
THX @Joni-Lover @abstractmodel but I still cannot reproduce this.
Can you send me a shared link from your installations? THX
@DeepDiver1975 i have sent you an e-mail. please have a look...
DeepDiver1975 gave me the tip, to add "php_flag display_errors off" to my .htaccess.
so, i added this comand and now there are no errors showing any more, in shared folder-pages...
(at least, i hope "php_flag display_errors off" was the comand, because i'm now @ work and can't look into my .htaccess to be sure, that it was THIS comand...)
but this workaround does not solve the problem, it does only hide the errors... maybe one day there will be a "real" solution. but for now - i'm glad, thank you! :)
Just to describe the problem a bit more in details: There is a warning about an undefined index in share.php (hidden on the screenshots - but one can see it in the sources). Due to the web server configuration PHP errors and warnings are not written to the error log but to the screen. (Afaik - this is a setting you usually use in development mode only - no idea why hosters go for this)
Because the PHP errors and warnings are written to the output buffer too early we get all these 'headers already sent' errors.
Setting php_flag display_errors off in .htaccess disables writting errors to the screen.
The root cause will be fixed soon. And we should add a comment to the .htaccess about this.
okay, thank you!
for my understanding, after the fix, we can remove the php-flag from .htaccess?
hmmm - you can remove the flag until you face the next php warning ;-)
we will see... :))
thanks for now - looking forward to receive the fix... ;)
This is the root cause - patch will follow
[error] [client 127.0.0.1] PHP Notice: Undefined index: dir in /home/thomas/Development/PhpStorm/core/apps/files/templates/index.php on line 35, referer: http://localhost/owncloud-phpstorm/public.php?service=files&t=ab99e759931369ef72d9f62040d1e530
[error] [client 127.0.0.1] PHP Stack trace:, referer: http://localhost/owncloud-phpstorm/public.php?service=files&t=ab99e759931369ef72d9f62040d1e530
[error] [client 127.0.0.1] PHP 1. {main}() /home/thomas/Development/PhpStorm/core/public.php:0, referer: http://localhost/owncloud-phpstorm/public.php?service=files&t=ab99e759931369ef72d9f62040d1e530
[error] [client 127.0.0.1] PHP 2. require_once() /home/thomas/Development/PhpStorm/core/public.php:20, referer: http://localhost/owncloud-phpstorm/public.php?service=files&t=ab99e759931369ef72d9f62040d1e530
[error] [client 127.0.0.1] PHP 3. OC_Template->fetchPage() /home/thomas/Development/PhpStorm/core/apps/files_sharing/public.php:260, referer: http://localhost/owncloud-phpstorm/public.php?service=files&t=ab99e759931369ef72d9f62040d1e530
[error] [client 127.0.0.1] PHP 4. OC_Template->_fetch() /home/thomas/Development/PhpStorm/core/lib/template.php:372, referer: http://localhost/owncloud-phpstorm/public.php?service=files&t=ab99e759931369ef72d9f62040d1e530
[error] [client 127.0.0.1] PHP 5. include() /home/thomas/Development/PhpStorm/core/lib/template.php:408, referer: http://localhost/owncloud-phpstorm/public.php?service=files&t=ab99e759931369ef72d9f62040d1e530