Images don't show. Get the following Error.
|
calbert
Joined: 2009-09-03
Posts: 12 |
Posted: Thu, 2009-09-03 13:05
|
|
This is a new install of 3.0 just downloaded it today. I get the following error. So here's the error: File: system/core/Kohana.php, line: 841 * modules/gallery/controllers/file_proxy.php [57]: Kohana::show_404( ) * File_Proxy_Controller->__call( Beach_House, Array * system/core/Kohana.php [291]: ReflectionMethod->invokeArgs( File_Proxy_Controller Object [input] => Input Object ) ) * system/core/Event.php [209]: Kohana::instance( ) * system/core/Bootstrap.php [55]: Event::run( Array * index.php [85]: require( system/core/Bootstrap.php ) Any help on fixing this would be great.. |
|
| Login or register to post comments |

Posts: 12
Here is my spec's
Apache version 2.2.13 (Unix)
PHP version 5.2.9
MySQL version 5.0.81-community-log
Architecture x86_64
Operating system Linux
Posts: 18451
Please upgrade to an Experimental version
FAQ: How do I upgrade?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 12
OK that seems to have done nothing ..
It did change the scroll over menu at the top of the screen...
system/core/Kohana.php, line: 841
And here's how we got there:
* modules/gallery/controllers/file_proxy.php [57]:
Kohana::show_404( )
*
File_Proxy_Controller->__call( Beach_House, Array
(
[0] => index_08.jpg
)
)
* system/core/Kohana.php [291]:
ReflectionMethod->invokeArgs( File_Proxy_Controller Object
(
[uri] => URI Object
(
)
[input] => Input Object
(
[use_xss_clean:protected] => 1
[magic_quotes_gpc:protected] => 1
[ip_address] =>
)
)
, Array
(
[0] => Beach_House
[1] => Array
(
[0] => index_08.jpg
)
)
)
* system/core/Event.php [209]:
Kohana::instance( )
* system/core/Bootstrap.php [55]:
Event::run( Array
(
[0] => Kohana
[1] => instance
)
)
* index.php [86]:
require( system/core/Bootstrap.php )
Posts: 12
Any thoughts on how to fix this??
Posts: 12544
Could you PM me a link to your site with login details?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 12
OK so that problem is due to permissions. If I shut off view-ability for guests, then nobody can see the images, I've noticed some others have problems with this but I have not seen an answer on how to fix it.
Could it be due to the cpanel I host with?
Posts: 12544
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 12
done ...
Posts: 12544
so what exactly are you doing when you get this error? If you set permissions so that nobody can view images, then right now you should be getting a "Dang something when wrong" page if you try to access an image. But I'm not able to duplicate this.
O.k. Something is strange. Since you only have 1 photo in there I suggest getting the latest code and starting new:
http://codex.gallery2.org/Gallery3:Upgrading
Just delete what you and start new.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 12
What I am doing is going into permissions and shutting off the view-ability to guests, that for some reason shuts off my ability ( as admin ) to see the images as well as any registered users.
I Have installed fresh ( including dropping the databases) 3 times today.
Posts: 6329
Ok, this is the classic hallmark of a problem with the way our .htaccess-based permission system redirects requests through the PHP permission checker. Typically this means that something is going wrong under the covers with mod_rewrite or (if you're using it this way) PHP-as-CGI. Tracking down these issues would be good for everybody but it's a very intensive process because there are so many variables. Any chance that I can log onto your system directly and perform some investigations? If so, PM me here in the forums or me at
with details. Thanks!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!
Posts: 12
I can't give you access to the ftp account, it's a shared account and there are 15 customer sites on there as well as this one. I can give you access to the gallery account if that helps.
Posts: 6329
Unfortunately, that won't be enough. I need to look under the covers to see what's going wrong with mod_rewrite's interaction with the proxy code. Oh well, somebody will be able to reproduce this problem and give me enough access to sort it out.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!
Posts: 12
Had anybody else had a update to this thread, run into the same problem.
Posts: 12544
calbert, please post a link to phpinfo
FAQ: How do I create a phpinfo page?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 18451
No need for access to the whole server...Please setup a temporary account that only has access the installed G3. That should alleviate any of your security concerns.
Send the info to bharat and he will get round to finding the issue.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 5
Hi all,
I have just installed v3.0 b3 and have similar problems. can create albums, but when i upload an image i get teh following error in /var/logs
2009-09-21 14:48:55 -05:00 --- error: Uncaught Kohana_404_Exception: The page you requested, file_proxy/.album.jpg?m=1253561714, could not be found. in file
system/core/Kohana.php on line 841
@Bharat, if you need login send me a PM
cheers, Frank
Posts: 12544
Looks like your host doesn't allow for hidden files. Who is your host?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 5
hi nivekiam,
my host is hostgator
cheers,
Frank
Posts: 12
my host is hostgator as well
Posts: 12544
Looks like that not only has hostgator started enforcing their 50,000 file limit they also don't allow hidden files. You'll not be able to use G3 at hostgator for the time being. Until either they change their policy or we change G3, but it's not going to happen for the first release.
Or find a different host.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 5
Ok, thanx for the explanation.
Pitty that g3 AND hostgator do not match...they are quit big(2.000.000+ domains) and will probably host a lot of potential G3 users....
Also pitty for myself as I thought to have found a descend hoster and a very nice piece of software called G3!
cheers,
Frank
Posts: 5
FYI
Hostgator is investigating this issue as i have created a case for this.
They want to be sure that imagenames starting with a '.' causes this issue.
keep you informed
cheers,
Frank
Posts: 5
positive update ! it works !
Hostgator support did not have issues uploading images 2 days ago....
yesterday i had some strange issues with ajax, error messages in javaconsole like " $ not defined"
uploading on Vista with ie8 > no problem!
uploading on xp:
ff3.5.5 > still server error
ie7 > works
chrome > works
i have the feeling that network/provider errors is causing these problems, as all is working fine today.
let's see tomorrow...
I appreciate the support from hostgator
Posts: 12544
Test something for us. In the .htaccess that ships with G3 you'll see lines like this:
# <IfModule mod_rewrite.c> # RewriteEngine On # RewriteBase / # RewriteCond %{REQUEST_FILENAME} !-f # RewriteCond %{REQUEST_FILENAME} !-d # RewriteRule ^(.*)$ index.php?kohana_uri=$1 [QSA,PT,L] # RewriteRule ^$ index.php?kohana_uri=$1 [QSA,PT,L] # </IfModule>Try uncommenting them and changing the rewritebase if you have G3 installed in a sub-directory of your site:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /gallery3/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?kohana_uri=$1 [QSA,PT,L] RewriteRule ^$ index.php?kohana_uri=$1 [QSA,PT,L] </IfModule>Do the images show now?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 1
Hi nivekiam,
I am having the same problem, I see the following in the log:
error: Uncaught Kohana_404_Exception: The page you requested, file_proxy/[path to file], could not be found. in file system/core/Kohana.php on line 841
I tried the mod_rewrite configuration you suggested but it doesn't seem to change the behaviour. Like others if I grant 'Everyone' view access to the album everything starts working fine.
I am running on a Centos 5 on a XEN VPS with Apache 2.2 and php 5.2, I have root access so can re-configure anything I need to if that helps.
In my Apache configuration I have the following:
<Directory "[path to gallery3 directory]">
AllowOverride All
</Directory>
Hope that helps,
Andi
Posts: 12544
I think it may be 2 fold, but I need to test a bit more.
Rename any directory you have to match your URLs (internet address) and I'm betting things start working.
http://gallery.menalto.com/node/91413#comment-322243
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 12544
ticket created:
https://sourceforge.net/apps/trac/gallery/ticket/812
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 12544
It's been fixed. Upgrade to the latest experimental code:
http://codex.gallery2.org/Gallery3:Upgrading
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here