I've had Gallery installed and working perfectly for aprox. 3 months. Seemingly out of the blue, I'm getting this error:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE> Fatal error: Call to undefined function: canread() in /home/zzzmarcus/www/gallery/photo/classes/User.php on line 90
</TD></TR></TABLE><!-- BBCode End -->
I have not changed anything or even uploaded new photos in the last week or so. Any suggestions as to what might cause this are much appreciated.
Thank you.
Posts: 7994
3 months means that you are probably running an old version of Gallery. Start by upgrading to v1.3.1.
What's the URL to your Gallery?
Posts: 4
http://www.silverfish.cc/gallery/photo/index.php
I plan on upgrading, but in the meantime, I'd like to get this working.
Thanks for your help.
Posts: 4
Okay... I upgraded and that solved the problem. I have no idea what caused it in the first place, but alas, it is fixed.
I love this program. It's awesome.
Posts: 8
Well I am getting a similar error -- I hope someone can help me. I also have a couple of questions.
When my gallery was originally set up, the person that set it up, created two versions of the gallery, the embedded and non-embedded one. Well, the non-embedded has the login for the admin and the embedded doesn't.
How do I get the login on the embedded one, and get rid of the non-embedded version?
The non-embedded version is on again, off again with this error:
Fatal error: Call to a member function on a non-object in /var/www/html/modules/Photo_Gallery/classes/Album.php on line 685
Now I looked at the code, and this is what it is and it looks fine:
function numHidden() {
$cnt = 0;
for ($i = 1; $i <= $this->numPhotos(1); $i++) {
$photo = $this->getPhoto($i);
if ($photo->isHidden()) { <--------- this is where line 685 is
$cnt++;
Can someone please help me? Please email me asap if you have an answer:
. This gallery is very large and used every day.
So, if anyone can answer about the fatal error, and also how to get the login code enabled for the embedded version I would be forever grateful! Thanks!
Posts: 7994
What is the embedded one actually embedded in? (eg PostNuke, PHP-Nuke, Geeklog etc)
I looked at your site but it was not obvious.
In embedded mode, Gallery uses the outer application for authentication so I can't help you until I know more about your configuration.
You've got an older version of Gallery there. It looks like v1.2.5 -- you should upgrade to v1.3 as we've introduced fixes in the code that will resolve this (and a lot of other) issues.
Posts: 1
I have the same error, just like the topic starter. Also i didn't change anything, very strange. Upgrading the gallery is a possiblity but is not the answer. Is there annybody who can fix the problem?
im running v1.2.5
Fatal error: Call to undefined function: canread() in /home/virtual/site23/fst/var/www/html/fotos/gallery/classes/User.php on line 90
Posts: 3473
I really doubt you'll be able to get support for 1.2.5. Most of us providing help here have not been here that long, and as the fix is as simple as upgrading, I don't think it makes much sense to ask Bharat to spend time on it.